Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: FB9-stable: bridge0 doesn't come up via rc

5 views
Skip to first unread message

Stefan Esser

unread,
Jan 17, 2012, 8:23:18 AM1/17/12
to
Am 17.01.2012 12:57, schrieb Denny Schierz:
> hi,
>
> I have problems starting the bridge via rc.d:
>
> rc.conf:
>
> cloned_interfaces="bridge0"
> ifconfig_bge0="up"
> ifconfig_bridge0="addm bge0 up"
> ifconfig_bridge0="inet 192.168.1.0 netmask 255.255.255.0 up"

You forgot that rc.conf does not contain commands, but only variable
assignments. The latter of the last two lines overwrites the value
set in the former.

You may want to replace the first of these two lines by:

autobridge_bridge0="bge0" # add further interfaces as required

The parameter holds a space separated list and may include wild-cards
(e.g. "bge0 ixp*").

> defaultrouter="192.168.1.254"
> gateway_enable="YES"
>
> It doesn't work. After reboot I have to set up:
>
> ifconfig bridge0 addm bge0
>
> then it works.

Yes, as explained above ...

> Also a problem: "/etc/rc.d/netif stop" doesn't destroy bridge0 and
> "/etc/rc.d/netif start" gives errors, because bridge exists already.

This will be fixed if you use "autobridge" as explained above. See
/etc/rc.d/bridge for details.

Regards, STefan
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stabl...@freebsd.org"

Denny Schierz

unread,
Jan 18, 2012, 2:15:09 AM1/18/12
to

Am 17.01.2012 um 14:23 schrieb Stefan Esser:

> You forgot that rc.conf does not contain commands, but only variable
> assignments. The latter of the last two lines overwrites the value
> set in the former.

ah, ok, that wasn't clear for me. I tried several combinations, so I try it again. Thanks a lot @Stefan and @Volodymyr

cu denny_______________________________________________
0 new messages