At 05:57 PM 11/29/02 +0100, Ingo Herz wrote: >Now I'm looking for a solution to autoswitch between the eepro100 and >the also builtin wireless lan NIC. What I want is the following:
I asked about this in the past. I don't change locations much, but I do switch between wlan0 and eth0. I looked at the packages you mention. Frankly, I find it easier (to remember how to set it up) editing /etc/network/interfaces when I want to change something. I figure the fewer config files the better. And if you use dhcp everywhere then that's about all there needs to be. You can also look into the "mapping" feature in man interfaces. Anyway, I do automate the switch between eth0 and wlan0 with the pcmcia setup. See /usr/share/doc/pcmcia-cs/FAQ.Debian.gz - I edited /etc/pcmcia/network.opts and added start_fn() and stop_fn() in this section: # This tries to use Debian's network setup in /etc/network/interfaces # if no settings are given higher up in this file. You can delete it # if that isn't desired. is_true $DHCLIENT || \ is_true $PUMP || is_true $BOOTP || is_true $DHCP || \ [ -x /proc/sys/kernel/hotplug ] || \ if [ -z "$IPADDR" -a -f /etc/network/interfaces ] ; then INFO="Debian network setup" start_fn () { log /sbin/ifdown eth0 log /sbin/ifup $1 } stop_fn () { log /sbin/ifdown $1 log /sbin/ifup eth0 } fi I'm sure there are other ways, but that seemed like the most basic approach I could come up with. -- Bill Moseley mailto:[EMAIL PROTECTED]