Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2007 11:29:34 +1300
From:      Andrew Thompson <thompsa@freebsd.org>
To:        rmkml <rmkml@free.fr>
Cc:        freebsd-net@freebsd.org
Subject:   Re: ifconfig bridge0 without module not work ?
Message-ID:  <20070307222934.GF54828@heff.fud.org.nz>
In-Reply-To: <Pine.LNX.4.64.0703072232180.1317@npre.npre.pbz>
References:  <Pine.LNX.4.64.0703072232180.1317@npre.npre.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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