Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Feb 2009 00:20:06 +0100
From:      =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= <>
To:        Glen Barber <>
Cc:        FreeBSD Questions <>
Subject:   Re: Multiple MAC on a single (physical) interface
Message-ID:  <>
In-Reply-To: <> (Glen Barber's message of "Wed, 4 Feb 2009 17:26:06 -0500")
References:  <> <> <> <>

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 netmask 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_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

[1] <>; for the
"bug" that appeared in 4.6, along with quite a lot of details, and
[2] <>; for an =
to the fact that it is still in 7-stable.


Want to link to this message? Use this URL: <>