unregister_netdevice: waiting for vlan20 to become free

grharry

New Member
May 3, 2010
12
0
1
Hello,

I have created a bridge on the HN,

auto vlan20
iface vlan20 inet manual
address 0.0.0.0
vlan_raw_device eth0

auto vlan80
iface vlan80 inet manual
address 0.0.0.0
vlan_raw_device eth0


auto vmbr0
iface vmbr0 inet static
address 10.176.112.254
netmask 255.255.255.0
bridge_ports vlan20 vlan80
bridge_stp off
bridge_fd 0

however upon reboot I am stuck with a kernel message saying

unregister_netdevice: waiting for vlan20 to become free. Usage count = 1
and reboot never gets completed.
vzctl = 3.0.23-1pve8
kernel =
2.6.24-10-pve
Any help will be appreciated.

PS: Please note also that the vlan scripts in debian + openvz + vzctl are broken and a patch is required
In order for my config to work I had to remove the link
/etc/network/if-up.d/vzifup-post
and replace it with the following script

-----------------------------------------------
#!/bin/sh

exec /usr/sbin/vzifup-post "$IFACE"

Thanks in advance

Regards
Harry



 
Hello,

I have created a bridge on the HN,

auto vlan20
iface vlan20 inet manual
address 0.0.0.0
vlan_raw_device eth0

auto vlan80
iface vlan80 inet manual
address 0.0.0.0
vlan_raw_device eth0


auto vmbr0
iface vmbr0 inet static
address 10.176.112.254
netmask 255.255.255.0
bridge_ports vlan20 vlan80
bridge_stp off
bridge_fd 0

however upon reboot I am stuck with a kernel message saying

unregister_netdevice: waiting for vlan20 to become free. Usage count = 1
and reboot never gets completed.
vzctl = 3.0.23-1pve8
kernel =
2.6.24-10-pve
Any help will be appreciated.

PS: Please note also that the vlan scripts in debian + openvz + vzctl are broken and a patch is required
In order for my config to work I had to remove the link
/etc/network/if-up.d/vzifup-post
and replace it with the following script

-----------------------------------------------
#!/bin/sh

exec /usr/sbin/vzifup-post "$IFACE"

Thanks in advance

Regards
Harry
Hi Harry,
perhaps try following way - i had no trouble with reboots or else:
Code:
auto eth0
iface eth0 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.90
iface eth0.90 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.20
iface eth0.20 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.23
iface eth0.23 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto vmbr0
iface vmbr0 inet static
    address  172.20.1.61
    netmask  255.255.255.0
    gateway  172.20.1.254
    bridge_ports eth0.23
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth0.20
    bridge_stp off
    bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
    bridge_ports eth0.90
    bridge_stp off
    bridge_fd 0

Udo
 
Hi Harry,
perhaps try following way - i had no trouble with reboots or else:
Code:
auto eth0
iface eth0 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.90
iface eth0.90 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.20
iface eth0.20 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.23
iface eth0.23 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto vmbr0
iface vmbr0 inet static
    address  172.20.1.61
    netmask  255.255.255.0
    gateway  172.20.1.254
    bridge_ports eth0.23
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth0.20
    bridge_stp off
    bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
    bridge_ports eth0.90
    bridge_stp off
    bridge_fd 0
Udo

Thanks udo ...
Indeed your config works
However there is a difference, you attach only one vlan to your bridge
After I removed the second one ( vlan80 ) the machine rebooted with no issues ..

The problem is caused when there are 2 vlan devices attached to the bridge ...

Regards
Harry
 
Thanks udo ...
Indeed your config works
However there is a difference, you attach only one vlan to your bridge
After I removed the second one ( vlan80 ) the machine rebooted with no issues ..

The problem is caused when there are 2 vlan devices attached to the bridge ...

Regards
Harry
Hi Harry,
why do you attach several vlans to one bridge?
Take a bridge for each vlan.

Udo
 
Hi Harry,
why do you attach several vlans to one bridge?
Take a bridge for each vlan.

Udo

Vlan20 is attached to Local lan
Vlan80 is atthaced to wpa2 WIFI

I place both on the same bridge in order to make the wpa2 participants present in the local lan area. ( same subnet ) ( dhcp server gateway and fw are all common )

I am sure there are other ways of doing the same but this is what I came up with :-(

I have this working on a non vz env elsewhere.



Regards
Harry
 
I also has this problem under the current 2.6.24-11 kernel with multiple VLAN interfaces on a single bridge. It works okay in 2.6.32-2.