Date: Tue, 2 Jun 2009 11:50:21 -0500 From: Brooks Davis <brooks@FreeBSD.org> To: Bruce Simpson <bms@incunabulum.net> Cc: Doug Barton <dougb@FreeBSD.org>, svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Brooks Davis <brooks@FreeBSD.org>, src-committers@FreeBSD.org Subject: Re: svn commit: r193199 - head/etc Message-ID: <20090602165021.GB15552@lor.one-eyed-alien.net> In-Reply-To: <4A25491B.4030406@incunabulum.net> References: <200906010537.n515bDou065357@svn.freebsd.org> <4A23E6E4.7020506@incunabulum.net> <20090602152741.GB14685@lor.one-eyed-alien.net> <4A25466F.40504@incunabulum.net> <20090602153719.GD14685@lor.one-eyed-alien.net> <4A25491B.4030406@incunabulum.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 02, 2009 at 04:45:31PM +0100, Bruce Simpson wrote: > Brooks Davis wrote: >> ... >>> On boot time I instantiate a tap0 instance from cloned_interfaces=3D"..= " in=20 >>> /etc/rc.conf, and then use ifconfig_tap0=3D"..." to clone the MAC addre= ss=20 >>> on the tap instance from the internal Ethernet port, as there is no oth= er=20 >>> way of uniquely identifying the client for an automated bootstrap. >>>=20 >>> This happens from within a flash image. >>> =20 >>=20 >> I see nothing related to network_interfaces here... >> =20 >=20 > I did explicitly name them there, so there would be no automated DHCP set= up=20 > of any interfaces, even if hot-plugged. Perhaps I am thinking of=20 > cloned_interfaces=3D""... cloned_interfaces is different and will definiterly remain since you've got to create them some how. They get created early and thus end up on the list. Also, there's no need to worry about hot plugged interfaces getting margically configured to do dhcp. For the system to do something with an interface they following must be true: - It makes it in to the list of interfaces some how - It actually exists or is create early in the process via cloned_interfaces, gif_interfaces, etc - The ifconfig_<if> variable is set (I think i can be "", but "up" is alwasy a good choice if you just want a stub. - The ifconfig_<if> variable must not contain the NOAUTO keyword. If all of those things are true, the interface will be configured at startup or on insert. Otherwise, it won't be. -- Brooks --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJVhMXY6L6fI4GtQRApe1AJsHLDUnOuRO7u2e2Zmxzy1sPpUNbgCgv9bQ q+ijmhO3CtYSRKQRlC+ZNFs= =VfQC -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090602165021.GB15552>