ifdown -a fails with vlans on bonded interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Fix Released
|
High
|
Chris J Arges |
Bug Description
This has been observed in trusty:
ii ifupdown 0.7.47.2ubuntu1 amd64 high level tools to configure network interfaces
VLAN interfaces are unable to be brought down properly with ifdown -a:
$ sudo ifdown -av
run-parts --verbose /etc/network/
run-parts: executing /etc/network/
run-parts: executing /etc/network/
Configuring interface bond0.205=bond0.205 (inet)
run-parts --verbose /etc/network/
run-parts: executing /etc/network/
run-parts: executing /etc/network/
ip -4 addr flush dev bond0.205 label bond0.205
run-parts --verbose /etc/network/
run-parts: executing /etc/network/
run-parts: executing /etc/network/
+ BOND_PARAMS=
+ IFSTATE=
+ [ -f /sys/class/
+ [ ! -f /sys/class/
+ exit
run-parts: executing /etc/network/
Removed VLAN -:bond0.205:-
ip link del bond0.205
Cannot find device "bond0.205"
run-parts --verbose /etc/network/
run-parts: executing /etc/network/
run-parts: executing /etc/network/
+ BOND_PARAMS=
+ IFSTATE=
+ [ -f /sys/class/
+ [ ! -f /sys/class/
+ exit
run-parts: executing /etc/network/
$ ifconfig
bond0 Link encap:Ethernet HWaddr 52:54:00:ae:24:cf
inet addr:192.
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:114 errors:0 dropped:53 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:7630 (7.6 KB) TX bytes:5102 (5.1 KB)
bond0.201 Link encap:Ethernet HWaddr 52:54:00:ae:24:cf
inet addr:192.168.201.10 Bcast:192.
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:42 (42.0 B)
eth0 Link encap:Ethernet HWaddr 52:54:00:ae:24:cf
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:56 errors:0 dropped:53 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3170 (3.1 KB) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 52:54:00:ae:24:cf
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4460 (4.4 KB) TX bytes:5102 (5.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)
We'd expect that all interfaces come down with 'ifdown -a', but we get this error.
[Test Case]
Create a Trusty VM with two network interfaces, or have hardware with two network interfaces.
Change /etc/network/
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet dhcp
bond-slaves none
bond-mode 1
bond-miimon 100
auto bond0.201
iface bond0.201 inet static
address 192.168.201.10
netmask 255.255.255.0
auto bond0.205
iface bond0.205 inet static
address 192.168.205.10
netmask 255.255.255.0
--
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ifupdown 0.7.47.2ubuntu1
ProcVersionSign
Uname: Linux 3.13.0-17-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
Date: Thu Mar 20 18:16:49 2014
ProcEnviron:
TERM=vt102
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ifupdown (Ubuntu Precise): | |
assignee: | nobody → Chris J Arges (arges) |
importance: | Undecided → High |
status: | New → In Progress |
affects: | ifupdown (Debian) → ubuntu |
no longer affects: | ubuntu |
Changed in ifupdown (Ubuntu): | |
assignee: | Andrew Shadura (andrew.sh) → Chris J Arges (arges) |
As a workaround I was able to issue 'ifdown -a' 3 times and all interfaces came down properly. Then 'ifup -a' brought all interfaces back up.