Hallo,
ich bin stolz auf eine einfache Umschaltung innerhalb /etc/networks/interfaces
mapping eth0 script /bin/grep # map eth0_DHCP map eth0_HOME # map eth0_WORK
iface eth0_DHCP inet dhcp iface eth0_HOME inet static address 192.168.28.5 <snip> iface eth0_WORK inet static address 192.168.10.110 <snip>
-------------------- bernd@bs4:~$ man interfaces ... Each mapping stanza must contain a script definition. The named script is run with the physical interface name as its argument and with the contents of all following "map" lines (without the leading "map") in the stanza provided to it on its standard input. ...
Das oben wird also effektiv zu 'echo "eth0_Home" | grep "eth0"', sprich eth0_HOME.
Bernhard