Date: Thu, 05 Feb 2009 00:20:06 +0100 From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= <frederic.perrin@resel.fr> To: Glen Barber <glen.j.barber@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Multiple MAC on a single (physical) interface Message-ID: <864oz9n61l.fsf@chameau.maisel.enst-bretagne.fr> In-Reply-To: <4ad871310902041426o6ea672b8ubcf1a5a1efb105e3@mail.gmail.com> (Glen Barber's message of "Wed, 4 Feb 2009 17:26:06 -0500") References: <863aeunkj0.fsf@chameau.maisel.enst-bretagne.fr> <4ad871310902041036m32ed57c5qd1f56329be37013b@mail.gmail.com> <86eiydn8yv.fsf@chameau.maisel.enst-bretagne.fr> <4ad871310902041426o6ea672b8ubcf1a5a1efb105e3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Mercredi 4 =C3=A0 23:26, Glen Barber a =C3=A9crit : > A bit of searching for "freebsd rc.conf ifconfig mac address" brought > me to this, in a previous mailing list thread. Not sure if this works > with 'alias'ed interfaces, but worth a shot, I suppose. > > ifconfig_em0=3D"inet 1.2.3.4 netmask 255.0.0.0 ether aa:bb:cc:dd:ee:ff" Actually, this exact syntax won't work because ifconfig can't change both the inet and the ethernet address in one shot (see [1] or [2]), the workaround being : ifconfig_em0=3D"inet 1.2.3.4/8" ifconfig_em0_alias0=3D"ether a:b:c:d:e:f" And, however you take it, it seems that you can't have two MAC addresses on one interface, yet this is what I ultimately want. with the above exemple, the original MAC address of em0 will be overwritten by the new one. [1] <http://www.freebsd.org/cgi/query-pr.cgi?pr=3D41647&cat=3Dbin> for the "bug" that appeared in 4.6, along with quite a lot of details, and [2] <http://www.freebsd.org/cgi/query-pr.cgi?pr=3D123633&cat=3Dbin> for an = ack to the fact that it is still in 7-stable. --=20 Fred
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864oz9n61l.fsf>