(no subject)
From: Justin Searle at 015 (JWSearle_at_itt-tech.edu)
Date: 12/31/04
- Previous message: jose isaias cabrera: "Re: xdm modprobe: Can't locate module char-major-13"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'debian-user@lists.debian.org'" <debian-user@lists.debian.org> Date: Fri, 31 Dec 2004 03:25:31 -0500
The networking init script is hanging and reporting the following error when
bringing down br0 (bridge device via bridge-utils, for those who don't
know):
unregister_netdevice: waiting for br0 to become free. Usage count = 1
This is occuring when "brctl delbr br0" is ran from the
/etc/network/if-post-down.d/bridge script. However, this only occurs if run
by ifupdown framework, and only while using 2.6.9 kernel. And when they
break, it seems to be something about bringing the interface full down
("ifdown br0" as opposed to "ifconfig br0 down"). I have tried disabling
the bridge scripts and just have ifupdown bring down the br0 interface, but
brctl would still hang when bringing down br0.
The only way I cat get it to work is by running "ifconfig br0 down" and
"brctl delbr br0" by hand before using "/etc/init.d/networking stop" or
"ifdown -a". This successfully brings down the bridge. I can then do a
"/etc/init.d/networking stop" to bring down everything else.
I have verified this on two different machines, running different hardware.
Both work fine with 2.6.8 kernel, but break on the 2.6.9 kernel. So, is
this a bug for the kernel-source-2.6.9, bridge-utils, or ifupdown? The
versions I am using are all current sarge and sid packages.
My original br0 entry in /etc/network/interfaces that crashes:
iface br0 inet static
address 192.168.1.200
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth1 eth2
My current automated workaround is to add those two lines mentioned above to
the "stop" and "restart" sections of the /etc/init.d/networking script just
about the "ifdown -a" lines. And to change my br0 entry to:
iface br0 inet static
address 192.168.1.200
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth1 eth2
down ifconfig eth1 down
down ifconfig eth2 down
These last two entries are needed since the if-post-down.d/bridge script
doesn't get ran when there are no active bridge interfaces.
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: jose isaias cabrera: "Re: xdm modprobe: Can't locate module char-major-13"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Wireless to wired bridge: apparently not going to work?
... into the equivalent of an $80 wireless adapter. ... brctl addif br0 eth0
... The bridge then gets an IP. ... I can ping the internets ... (comp.os.linux.networking) - Re: Emulating multiple nics with one
... #ifdef DEBUG ... printf("ioctl SETNOCSUM error on interface #%d\n", ...
# Bridge a group of TAP interfaces with an ethernet interface ... brctl addbr br0
... (comp.os.linux.networking) - ifupdown locking up when bringing down bridge devices
... bringing down br0 (bridge device via bridge-utils, ... This is occuring when
"brctl delbr br0" is ran from the ... it seems to be something about bringing the interface
full down ... These last two entries are needed since the if-post-down.d/bridge script
... (Debian-User) - Re: bridge and ip adresses forwarding
... bridge is between firewall and local lan. ... I added alias for br0 -
and configured address 192.168.2.100. ... But the bridge is not accepting theese packets
- it forwards them like all other packets. ... The bridge acts like a logical ethernet switch
and by default forwards ethernet packets based upon their destination MAC address, not their embedded
destination IP address. ... (comp.os.linux.networking) - Re: kernel hangs when trying to remove a bridge
... by the brctl command to remove the bridge. ... waiting for br0
to become free. ... Usage count = 1 ... (Linux-Kernel)