Date: Mon, 31 Jan 2011 06:00:06 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Bridge Interface Members Message-ID: <4D464FE6.7060200@infracaninophile.co.uk> In-Reply-To: <AANLkTi=RR71DLU2xdbZuMSO2JU4uh8uRXKLP45VYDdh1@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 30/01/2011 16:49, Carl Chave wrote:
> Trying to configure a bridge interface with two member interfaces,
> fxp0 and re0. Configuring the interface from scratch manually works
> fine but when I add config entries to rc.conf the two member
> interfaces aren't added at boot. Bridge0 is created it just doesn't
> have any members. From the serial console I can manually add the two
> member interfaces and everything is fine but obviously I'd like it to
> work without manual intervention. Any ideas?
>
> Here's my rc.conf entries:
>
> cloned_interfaces="bridge0"
> ifconfig_bridge0="addm fxp0 addm re0"
> ifconfig_fxp0="up"
> ifconfig_re0="up"
> ifconfig_bridge0="inet 10.0.1.2 netmask 255.255.255.0 up"
>
> Any ideas?
Yes. You overwrite your first ifconfig_bridge0 setting with the second
one. These are shell variable initializations, not executable statements.
There are various ways to fix the problem. Try this for example:
replace the second ifconfig_bridge0 line with:
ipv4_addrs_bridge0="10.0.1.2/24"
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew@infracaninophile.co.uk Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1GT+4ACgkQ8Mjk52CukIxYjACdFL4+k9Vy9YrdCAYIXGMWxNhy
tGcAn3kEXtcqgCE9ZUjbKAuSrdC4OgdE
=m7UQ
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D464FE6.7060200>
