On Tue, Jun 17, 2003 at 07:57:35AM -0700, Michael Perry wrote: > You could use schemes. If you peruse the pcmcia-howto that Hinds wrote > for the pcmcia-cs package, he mentions how to setup lilo to boot with > different append statements which launch different network setups. I > have not done this in awhile but I did do it before. I basically > created two schemes in /etc/pcmcia/network.opts called "home" and "work" > with different network setups like dhcp or static IP addresses. I then > added this to my lilo.conf. ...
On Tue, Jun 17, 2003 at 08:57:00AM -0700, Michael Perry wrote: > Its not really difficult to do this with the pcmcia tools. All one does > is create stanzas in /etc/pcmcia/network.opts or even > /etc/pcmcia/wireless.opts and then create append lines in lilo that > launch the schemes. When the system boots the next time it will show > both entries in lilo. ... UGH. Use /etc/network/interfaces: ---------------8<------------------ # Wireless mapping eth1 script /etc/network/ifscheme ######################################################## # Home iface eth1-home inet dhcp wireless_nick foo wireless_mode managed wireless_essid myessid wireless_key 's:"K<wZ' ######################################################## # Friends places iface eth1-friend1 inet dhcp wireless_nick foo wireless_mode managed wireless_essid blah wireless_channel 3 wlan_ng_authtype opensystem iface eth1-friend2 inet static address 192.168.0.113 gateway 192.168.0.1 netmask 255.255.255.0 wireless_nick foo wireless_mode ad_hoc wireless_essid someotheressid wireless_channel 6 ######################################################## # Network stumbling (stop that bloody pump loading) iface wlan0-stumble inet static address 10.0.0.1 netmask 255.255.255.0 wireless_nick foo wireless_mode ad_hoc wireless_essid any wireless_channel 6 --------------8<----------------- See /usr/share/doc/ifupdown/examples/ , and interfaces(5) The script I'm using above, was written by Joey Hess, and can be found at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=154444 (ok, so further reading show's it's in ifupdown-roaming.. shows how often I have needed to think about this setup) Advantages: *) Dont need to piss around with updated .opts files, and manually copying changes. *) All information for all configs is in one place. Disadvantages: *) I cant think of any. Mike. -- Mike Beattie <[EMAIL PROTECTED]> ZL4TXK, IRLP Node 6184 Spock, the women on your planet are logical. No other planet in the galaxy can make that claim. -- Capt. James T. Kirk