Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 11:06:24 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Cc:        rc@freebsd.org
Subject:   Re: ifconfig_foo0 syntax
Message-ID:  <20051028180624.GB17096@odin.ac.hmc.edu>
In-Reply-To: <86ll0d4mtk.fsf@xps.des.no>
References:  <86ll0d4mtk.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 28, 2005 at 06:40:23PM +0200, Dag-Erling Sm=F8rgrav wrote:
> I've been having trouble with a bridge interface.  It seemed logical
> to me to do
>=20
> cloned_interfaces=3D"bridge0"
> ifconfig_bridge0=3D"addm foo0 addm bar0 inet 10.0.0.1/24"
>=20
> but ifconfig(8) does not accept "inet" after "addm".
>=20
> (perhaps I should have put the inet bit at the front?)
>=20
> In any case, I came up with a patch that allows me to do
>=20
> ifconfig_bridge0=3D"addm foo0; addm bar0; inet 10.0.0.1/24"
>=20
> which translates into three different ifconfig invocations.
>=20
> there's probably a better / cleaner way to do this...

In addition to Yar's comments, I'll be committing a patch from Philipp
Wuensche which adds a new ipv4_addrs_<ifn> variable that you could use
to set the IPv4 address even if the ordering issue wasn't resolvable.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDYmifXY6L6fI4GtQRAv5NAKCF6z9Xzwt/F/AeaOv/3o2iC2FQUgCbBBQf
2rVBMl+hx7cQgsPTi65cZUI=
=UcoF
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--



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