Hi Susers, I am running with laptop in two networks. In one I use static IP configuration and the other it's dynamic. I have to change manually (ifconfig, route, resolve.conf,...) Do you have any clever script to quickly switch between dynamic and static? Pep Serrano <pep@serrano.net> http://pep.serrano.net PGP Public Key Fingerprint: 8534 A441 2AD8 AF16 926C FD42 C5D1 1F94
No need for tricks (as long as your lan card is PCMCIA). The pcmcia manager recognizes SCHEME's which you can pass to it from Lilo. For example, in my lilo.conf I have: image = /boot/vmlinuz root = /dev/hda6 label = home append = "SCHEME=home" # image = /boot/vmlinuz root = /dev/hda6 label = work append = "SCHEME=work" As you notice, both entries use the same kernel and the only difference is the SCHEME name passed. Then in your /etc/pcmcia/network.opts you can add additional entries corresponding to the SCHEME names: case "$ADDRESS" in work,*,*,*) ... ;; home,*,*,*) ... ;; Etc. Each entry in this case can be set to have different IPs (either static or DHCP), nfs mounts, default gateways, name servers, etc. If you take a look in the network.opts file and the comments in it, you will figure it out. I hope this helps. -- Avi --On Tuesday, January 23, 2001 06:14:57 AM -0800 Pep <pep@serrano.net> wrote:
Hi Susers,
I am running with laptop in two networks. In one I use static IP configuration and the other it's dynamic.
I have to change manually (ifconfig, route, resolve.conf,...)
Do you have any clever script to quickly switch between dynamic and static?
Pep Serrano <pep@serrano.net> http://pep.serrano.net PGP Public Key Fingerprint: 8534 A441 2AD8 AF16 926C FD42 C5D1 1F94
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- Avi Schwartz Get a Life, avi@CFFtechnologies.com Get Linux!
participants (2)
-
Avi Schwartz
-
Pep