ifconfig bridge0 without module not work ?

Andrew Thompson thompsa at freebsd.org
Wed Mar 7 22:29:36 UTC 2007


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


More information about the freebsd-net mailing list