Package: ifupdown
Version: 0.6.4-4.8



Problem description: when I use vlan devices I must enshure that the vlandevices are configured last (after their parent ethernet or bond devices) and deconfigured first (before their parrent devices).
if this does not happen the system may hang when rebooting.

This seams not to be possible withe the ifup -a and ifdown -a  commands
because they will use the same order and not the reverse.

I have patched the /etc/init.d/networking as follows:

--- /etc/init.d/networking 2003-11-24 14:43:43.000000000 +0100
+++ /tmp/networking 2005-01-13 23:57:12.000000000 +0100
@@ -82,12 +82,16 @@
echo "NOT deconfiguring network interfaces: network shares still mounted."
else
echo -n "Deconfiguring network interfaces... "
+ for I in `grep ^vlan /etc/network/ifstate | cut -f1 -d=` ; do ifdown $I ; done
+ for I in `grep ^bond /etc/network/ifstate | cut -f1 -d=` ; do ifdown $I ; done
ifdown -a
echo "done."
fi
;;
force-reload|restart)
echo -n "Reconfiguring network interfaces... "
+ for I in `grep ^vlan /etc/network/ifstate | cut -f1 -d=` ; do ifdown $I ; done
+ for I in `grep ^bond /etc/network/ifstate | cut -f1 -d=` ; do ifdown $I ; done
ifdown -a
ifup -a
echo "done."



This rather is a hack ... It would be very cool if their would be a configuration option in the config file
like:

auto-up-order ^eth ^tr ^bond ^ppp ^vlan ^lo
auto-down-order ^ppp ^vlan ^bond ^eth0$ ^eth2$ ^eth1$ ^eth ^tr ^lo

which would mach regexes or interface names

Thanks

Manon

Attachment: pgpYUKaWQBYNA.pgp
Description: PGP signature



Reply via email to