Dear friends,

I used to use drakprofile to change the network configuration in my
laptop from my house (conected to muy desktop computer and sharing the
modem-cable conection using ip masquering) and my work (a lan
direct-conection). But drakprofile can't run under 9.0, in fact it has
dissapeared of the distribution :-(

So until today I had to plug-on the computer, and when changing from
home to the work or viceversa I had to star netconf (DrakConf..>
internet conection) and change the ip, gw ...an so on.

But now I have made two script to do that, just I need to run one of
them, the appropriate, (casa -for home- or universidad -for my job-) as
root and immediately i have avaliable the internet. Of course I just
need to run the other the first time after have changed my location.

I have a Toshiba Satellite 4090XCDT with a pcmcia (pc-net compatible)
eth card (eth0).

Those are the script contents:

CASA

ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
route add default gw 192.168.1.1 eth0


UNIVERSIDAD
ifconfig eth0 155.54.0.119 netmask 255.255.240.0 up
route add -net 155.54.0.0 netmask 255.255.240.0 eth0
route add default gw 155.54.1.200 eth0


As I have mentioned in some previous messages about this subject, I
think that for new Mandrake users a program to do that automatically,
similar to drakprofile, could be very interesting; I am not a
programmer, but it seems so simply for one experimented of the Mandrake
team create a front-end for the initial configuration and then for
switching between the 2 or more created profiles.

Is a thing that will be very good for our wonderfull Mandrake.


Francisco Alcaraz
Murcia (Spain)


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to