This corrects ifup, and almost corrects ifdown.
ifdown still downs the whole interface do to the ip link set dev x down
line, it shouldn't be called on alias interfaces, but that is beyond me
at the moment. Also not sure if the tun up/down could use this code
also. The debian/testbuild file needs to be modified to pass for these
modifications
--- ifupdown-0.7~alpha5.1ubuntu5/ifupdown.nw 2011-09-02 15:50:36.000000000
-0400
+++ ifupdown-0.7~alpha5.1ubuntu5a/ifupdown.nw 2011-10-24 09:23:05.403844445
-0400
@@ -4377,14 +4377,14 @@
up
ip addr add %address%[[/%netmask%]] [[broadcast %broadcast%]] \
- [[peer %pointopoint%]] dev %iface%
+ [[peer %pointopoint%]] dev %iface% label %iface%
ip link set dev %iface% [[mtu %mtu%]] [[address %hwaddress%]] up
[[ ip route add default via %gateway% [[metric %metric%]] dev %iface% ]]
down
[[ ip route del default via %gateway% [[metric %metric%]] dev %iface% 2>&1
1>/dev/null || true ]]
- ip -4 addr flush dev %iface%
+ ip -4 addr flush dev %iface% label %iface%
ip link set dev %iface% down
@
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/876829
Title:
Oneiric's ifupdown breaks ip aliases
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/876829/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs