Bug#679954: ifdown on virtual interface takes down other virtual interface on the same subnet

July 02nd, 2012 - 01:00 pm ET by H.Watnou | Report spam
Package: ifupdown
Version: 0.6.10

If more virtual interfaces are defined with the same subnet, taking the
first down with ifdown seems to take them all down.

An example.
# cat /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.13
netmask 255.255.255.0

auto eth0:0
iface eth0:0 inet static
address 192.168.1.11
netmask 255.255.255.0

auto eth0:1
iface eth0:1 inet static
address 192.168.1.12
netmask 255.255.255.0

So eth0 is in a different subnet from eth0:0 and eth0:1 and the latter
two are in exactly the same subnet. Make sure everything is up.

# /etc/init.d/networking restart
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:f0:74:73
inet addr:10.10.10.13 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef0:7473/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9580 errors:0 dropped:0 overruns:0 frame:0
TX packets:5840 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11324732 (10.8 MiB) TX bytes:446804 (436.3 KiB)

eth0:0 Link encap:Ethernet HWaddr 00:0c:29:f0:74:73
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0:1 Link encap:Ethernet HWaddr 00:0c:29:f0:74:73
inet addr:192.168.1.12 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)

When the first virtual interface is brought down, the second is brought
down alongside:

# ifdown eth0:0
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:f0:74:73
inet addr:10.10.10.13 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef0:7473/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9608 errors:0 dropped:0 overruns:0 frame:0
TX packets:5860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11327256 (10.8 MiB) TX bytes:450216 (439.6 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)

Expected behavior would be that eth0:1 would still be up. ifdown eth0:1
does not have the same effect on eth0:0, it stays up.

Debian 6.0.5, kernel 2.6.32-5-amd64.



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Andrew Shadura
July 02nd, 2012 - 02:10 pm ET | Report spam

Hello,

On Mon, 2 Jul 2012 18:52:37 +0200
H.Watnou wrote:

If more virtual interfaces are defined with the same subnet, taking
the first down with ifdown seems to take them all down.



Please try ifupdown 0.7.1 from unstable.

WBR, Andrew






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics