Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 14:49:54 -0200
From:      Thiago Damas <tdamas@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   if_bridge hangs ifconfig
Message-ID:  <f8e3d83f0601260849h6b39cbb2v@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
  Hi,
  I'm having some problems using if_bridge, in FreeBSD 6.0 RELEASE.
  I have the following situation:
vr0: flags=3D8943<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=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3D8<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=3D8041<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=3D3<LEARNING,DISCOVER>

  Now, I want to change the member vr0 of bridge0 to xl0 (for backup purpos=
es):
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f8e3d83f0601260849h6b39cbb2v>