From owner-freebsd-net@FreeBSD.ORG Wed Mar 7 22:29:36 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70BA016A403 for ; Wed, 7 Mar 2007 22:29:36 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 0E5E913C4AC for ; Wed, 7 Mar 2007 22:29:36 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id B29E51CC59; Thu, 8 Mar 2007 11:29:34 +1300 (NZDT) Date: Thu, 8 Mar 2007 11:29:34 +1300 From: Andrew Thompson To: rmkml Message-ID: <20070307222934.GF54828@heff.fud.org.nz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-net@freebsd.org Subject: Re: ifconfig bridge0 without module not work ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 22:29:36 -0000 On Wed, Mar 07, 2007 at 10:42:42PM +0100, rmkml wrote: > Hi, > I have disabled/removed module on kernel, anyone ok, > but when I create bridge0 : > ifconfig bridge0 create > ifconfig: SIOCIFCREATE: Invalid argument > I just added "options BRIDGE" on my kernel conf. > uname -a : 6.2-RELEASE > ok if I add interface manually and bridge work : > sysctl -w net.link.ether.bridge_cfg=em0,em1 > but ifconfig not view bridge0 ! You are mixing up the two bridge drivers. There is the old bridge(4) which is the old you have compiled in and this uses the sysctl interfac e to configure it. Then there is the new bridge driver called if_bridge(4), named as such since 'bridge' was taken. This is the one that uses cloned interfaces which show up in ifconfig and seems to be what you are after. In your kernel config just change "options BRIDGE" to "device if_bridge" and it should all work fine. You can see the differences in each man page. cheers, Andrew