From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 26 16:49:56 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1B1416A422 for ; Thu, 26 Jan 2006 16:49:56 +0000 (GMT) (envelope-from tdamas@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08F0A43D45 for ; Thu, 26 Jan 2006 16:49:55 +0000 (GMT) (envelope-from tdamas@gmail.com) Received: by nproxy.gmail.com with SMTP id l37so21513nfc for ; Thu, 26 Jan 2006 08:49:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aM0VL73cYOncQpEJVMRErlzh1ULyNK7xKmf0lKl83DfODetBZGQQEBmlvSJYBZZnv2TyK4665jqeQMSfqkvOYyOt7hlC0F9YzAz4gzx9XWxFKmjNdaaXh/BnjrRWKVB7ZKH8UdqMD/gfobNH2taOfuH4ahnj+XAJb/sE3rUBUFA= Received: by 10.48.239.6 with SMTP id m6mr73366nfh; Thu, 26 Jan 2006 08:49:54 -0800 (PST) Received: by 10.48.210.7 with HTTP; Thu, 26 Jan 2006 08:49:54 -0800 (PST) Message-ID: Date: Thu, 26 Jan 2006 14:49:54 -0200 From: Thiago Damas To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: if_bridge hangs ifconfig X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 16:49:57 -0000 Hi, I'm having some problems using if_bridge, in FreeBSD 6.0 RELEASE. I have the following situation: vr0: flags=3D8943 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 mtu 1500 options=3D8 inet6 fe80::260:8ff:fe3b:56de%xl0 prefixlen 64 scopeid 0x2 ether 00:60:08:3b:56:de media: Ethernet 10baseT/UTP (10baseT/UTP ) status: active So, I created a bridge0 interface using "ifconfig bridge0 create ; ifconfig bridge0 addm vr0" bridge0: flags=3D8041 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 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