if_bridge hangs ifconfig

Thiago Damas tdamas at gmail.com
Thu Jan 26 08:49:57 PST 2006


  Hi,
  I'm having some problems using if_bridge, in FreeBSD 6.0 RELEASE.
  I have the following situation:
vr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::20f:eaff:fea4:a2f5%vr0 prefixlen 64 scopeid 0x4
        ether 00:0f:ea:a4:a2:f5
        media: Ethernet autoselect (10baseT/UTP)
        status: active

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::260:8ff:fe3b:56de%xl0 prefixlen 64 scopeid 0x2
        ether 00:60:08:3b:56:de
        media: Ethernet 10baseT/UTP (10baseT/UTP <half-duplex>)
        status: active

  So, I created a bridge0 interface using "ifconfig bridge0 create ;
ifconfig bridge0 addm vr0"
bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
        inet 10.5.1.24 netmask 0xffffff00
        ether ac:de:48:d1:3f:f1
        priority 32768 hellotime 2 fwddelay 15 maxage 20
        member: vr0 flags=3<LEARNING,DISCOVER>

  Now, I want to change the member vr0 of bridge0 to xl0 (for backup purposes):
  ifconfig bridge0 deletem vr0 (it hangs here)
  ifconfig bridge0 addm xl0

  When using the command "ifconfig bridge0 deletem vr0", its hangs,
and sometimes show the error:
vr0: refusing to decrement non-positive refcount 0for interface flag 256

  In this machine, I'm using ipfw too, with rules like this:
ipfw add 1 pipe 1 ip from any to any via bridge0 in
ipfw add 2 pipe 2 ip from any to any via bridge0 out
ipfw pipe 1 config bw 1Mbit/s
ipfw pipe 2 config bw 1Mbit/s
ipfw add 50 check-state
...
...

  I tried to do a flush of these rules before "ifconfig bridge0
deletem vr0", but this doesnt worked.

  Someone already have this problem and can help me?


Thiago


More information about the freebsd-hackers mailing list