Hello, after upgrading from kernel 2.4 to 2.6 (2.6.8 sarge and 2.6.15 etch) i have a problem with virtual interfaces (e.g. eth0:1) in /etc/network/interfaces with mapping-scripts.
When i define 2 virtual interfaces the first run of ifup -a stopps directly after calling the mapping-script for the first interface(the interface is not up). Running ifup -a the second time the first interface will be up, but it stopps directly after calling the mapping script for the second interface. and so on Example: Interfaces (eth0, eth1, eth0:1, eth0:2) auto eth0 ... auto eth1 ... auto eth0:1 mapping eth0:1 script /config/bin/get-config map fw1 eth0:1-fw1 map fw2 eth0:1-fw2 iface eth0:1-fw1 inet static address 192.168.26.1 netmask 255.255.255.0 iface eth0:1-fw2 inet static address 192.168.26.2 netmask 255.255.255.0 auto eth0:2 mapping eth0:2 script /config/bin/get-config map fw1 eth0:2-fw1 map fw2 eth0:2-fw2 iface eth0:2-fw1 inet static address 172.20.1.2 netmask 255.255.0.0 iface eth0:2-fw2 inet static address 172.20.1.3 netmask 255.255.0.0 ... Calling ifup -a the first time, the script is envoked for eth0, eth1 und eth0:1. ifup stopps directly after calling the script for eth0:1. Second run: fw2:~# ifup -a -v Running mapping script /config/bin/get-config on eth0:1 Configuring interface eth0:1=eth0:1-fw2 (inet) run-parts --verbose /etc/network/if-pre-up.d ifconfig eth0:1 192.168.26.2 netmask 255.255.255.0 up run-parts --verbose /etc/network/if-up.d run-parts: executing /etc/network/if-up.d/mountnfs run-parts: executing /etc/network/if-up.d/ntpdate run-parts: executing /etc/network/if-up.d/openvpn run-parts: executing /etc/network/if-up.d/sendmail Running mapping script /config/bin/get-config on eth0:2 <- why does ifup stopps? fw2:~# Third run: fw2:~# ifup -a -v Running mapping script /config/bin/get-config on eth0:2 Configuring interface eth0:2=eth0:2-fw2 (inet) run-parts --verbose /etc/network/if-pre-up.d ifconfig eth0:2 172.20.1.3 netmask 255.255.0.0 broadcast 172.20.255.255 up run-parts --verbose /etc/network/if-up.d run-parts: executing /etc/network/if-up.d/mountnfs run-parts: executing /etc/network/if-up.d/ntpdate run-parts: executing /etc/network/if-up.d/openvpn run-parts: executing /etc/network/if-up.d/sendmail fw2:~# The mapping script returns a constand value (for test). How can i use a mapping script with kernel 2.6 and virtual interfaces? Thanks Andreas