Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2012 14:49:42 +0200
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        Denny Schierz <linuxmail@4lin.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: FB9-stable: bridge0 doesn't come up via rc
Message-ID:  <4F156E66.8050108@gmail.com>
In-Reply-To: <B32E0931-9FF3-4A44-A9FB-85655684217E@4lin.net>
References:  <B32E0931-9FF3-4A44-A9FB-85655684217E@4lin.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Denny Schierz wrote:
> 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"

Remember that rc.conf is a pure shell script. The line above overwrites 
one with "addm bge0 up".

> 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.

Use igconfig_bridge0_alias0.

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

-- 
Sphinx of black quartz judge my vow.



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