Subject: Re: [cube@cubidou.net: Re: Moving ethfoo in the main tree]
To: Hubert Feyrer <hubert@feyrer.de>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 12/13/2004 14:10:36
--zCKi3GIZzVBPywwA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 13, 2004 at 01:57:34PM +0100, Hubert Feyrer wrote:
> On Mon, 13 Dec 2004, Quentin Garnier wrote:
> >I confirm it works as expected.  And this is a case where using the
> >cloning device is less useful:  creating the bridge and ethfoo
> >interfaces beforewards is much simpler.
>=20
> What do you mean, create beforeward - is there something like "ifconfig=
=20
> ethfoo0 create" that I then bind to my (say) first instance of=20
> qemu explicitly?

Yes.  I did exactly this:

ifconfig ethfoo0 create
ifconfig ethfoo1 create
ifconfig bridge0 create
brconfig bridge0 add ethfoo0 add ethfoo1 up
ifconfig ethfoo0 172.16.17.18 up
ifconfig ethfoo1 up
qemu -tun-fd 3 -hda wd0 3<> /dev/ethfoo0
qemu -tun-fd 3 -hda wd1 3<> /dev/ethfoo1

See the fd trick to bind qemu to a specific ethfoo interface.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"Commala-come-five! / Even when the shadows rise!
To see the world and walk the world / Makes ya glad to be alive."
Susannah's Song, The Dark Tower VI, Stephen King, 2004.

--zCKi3GIZzVBPywwA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQb2UzNgoQloHrPnoAQLZJggAkH35507hmaoCiBpInwebNdN0/mRBIHiV
tp8k4WbEi/3a2LU74vRTG1hIRomm1d+G2HW8POkJPjc+l9dXLpYvREaVds/11fp+
1epDayNVgMAYu2aOXW9lCllDZJibVBwYIPGddyCjWGWBk2fWA4sGthgGmurqzQDN
rmPmQQy59WbvsaeyE6ekHQdMarw4P9yimf6DUzzDQ16k2/DZbMHRwYK9ZOjzc2t/
Blf66EZf9dptpn10DNWkuHkX7IG6tKCtZo1LWKKxRz36BBI3fFVP/fIAc95dkPLq
c0NcjbVtmlC43xCaeVAKPh0DjdODwaYIDHnOxXMAIqgN/cvR1voARg==
=YFAm
-----END PGP SIGNATURE-----

--zCKi3GIZzVBPywwA--