[Bug 876829] Re: Oneiric's ifupdown breaks ip aliases

Patrick Domack 876829 at bugs.launchpad.net
Mon Oct 24 13:27:38 UTC 2011


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
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/876829

Title:
  Oneiric's ifupdown breaks ip aliases

Status in “ifupdown” package in Ubuntu:
  Triaged
Status in “ifupdown” source package in Oneiric:
  Triaged
Status in “ifupdown” source package in Precise:
  Triaged
Status in “ifupdown” package in Debian:
  New

Bug description:
  Using the following /etc/network/interfaces file doesn't create the ip
  alias, when the same file works fine in natty and lower:

  auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet static
  address 192.168.122.201
  netmask 255.255.255.0
  broadcast 192.168.122.255
  gateway 192.168.122.1

  auto eth0:0
  iface eth0:0 inet static
  address 10.102.0.200
  netmask 255.255.255.0
  broadcast 10.102.0.255

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: ifupdown 0.7~alpha5.1ubuntu5
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  ApportVersion: 1.23-0ubuntu3
  Architecture: amd64
  Date: Mon Oct 17 16:15:53 2011
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
  SourcePackage: ifupdown
  UpgradeStatus: Upgraded to oneiric on 2011-08-16 (62 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/876829/+subscriptions




More information about the foundations-bugs mailing list