From owner-freebsd-current@FreeBSD.ORG Wed Mar 18 22:54:27 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8711065670 for ; Wed, 18 Mar 2009 22:54:27 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 5A14C8FC08 for ; Wed, 18 Mar 2009 22:54:27 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 92754FF68; Thu, 19 Mar 2009 11:54:26 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ni-ZjAHMHzF2; Thu, 19 Mar 2009 11:54:23 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 19 Mar 2009 11:54:23 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 9CB161142F; Thu, 19 Mar 2009 11:54:22 +1300 (NZDT) Date: Wed, 18 Mar 2009 15:54:22 -0700 From: Andrew Thompson To: Stefan Bethke Message-ID: <20090318225422.GC79077@citylink.fud.org.nz> References: <4C8BEF98-B6EF-4B26-9649-F0666A837230@lassitu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C8BEF98-B6EF-4B26-9649-F0666A837230@lassitu.de> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Current Subject: Re: ifconfig bridge0 does not list bridge data? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 22:54:27 -0000 On Wed, Mar 18, 2009 at 11:47:39PM +0100, Stefan Bethke wrote: > I've just set up a new home router with current. I'm using if_bridge(4) to > bridge an OpenVPN connection to the local ethernet. Although everything > seems to be working fine, ifconfig does not show bridge parameters: > > # ifconfig bridge0 > bridge0: flags=8843 metric 0 mtu > 1500 > ether 3a:30:67:76:af:05 > inet 10.0.0.1 netmask 0xffffffc0 broadcast 10.0.0.63 > > In a VMware sandbox with a 10-day old -current, I get the expected output: > > # ifconfig bridge0 > bridge0: flags=8843 metric 0 mtu > 1500 > ether ca:26:3c:e3:7e:00 > inet 10.0.0.14 netmask 0xffffffc0 broadcast 10.0.0.63 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: em0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > member: tap0 flags=143 > ifmaxaddr 0 port 4 priority 128 path cost 2000000 > > I also have two vlans hanging off em0. > > Any ideas? This means that one of the BRDGGCACHE, BRDGGTO or BRDGPARAM ioctls has failed so bridge_status() in sbin/ifconfig/ifbridge.c exits early (the function that prints the info you are missing). Is it possible your sources are out of sync? If you look at it with kdump then the actual ioctl these are wrapped in is called SIOCGDRVSPEC Andrew