From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 23:20:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 503B0106564A for ; Wed, 4 Feb 2009 23:20:14 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from maisel-gw.enst-bretagne.fr (maisel-gw.enst-bretagne.fr [192.44.76.8]) by mx1.freebsd.org (Postfix) with ESMTP id D097D8FC0C for ; Wed, 4 Feb 2009 23:20:13 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 12A3C19BFB; Thu, 5 Feb 2009 00:20:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at resel.fr Received: from maisel-gw.enst-bretagne.fr ([127.0.0.1]) by localhost (mercure.adm.maisel.enst-bretagne.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WPkIDrLB4oZ8; Thu, 5 Feb 2009 00:20:07 +0100 (CET) Received: from chameau.maisel.enst-bretagne.fr (chameau.maisel.enst-bretagne.fr [172.22.209.241]) (Authenticated sender: fperrin) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 3626E19BF9; Thu, 5 Feb 2009 00:20:07 +0100 (CET) Received: by chameau.maisel.enst-bretagne.fr (Postfix, from userid 1001) id 76FC7B8BB; Thu, 5 Feb 2009 00:20:06 +0100 (CET) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= To: Glen Barber Organization: =?utf-8?Q?R=C3=A9seau?= des =?utf-8?B?w4lsw6h2ZXM=?= References: <863aeunkj0.fsf@chameau.maisel.enst-bretagne.fr> <4ad871310902041036m32ed57c5qd1f56329be37013b@mail.gmail.com> <86eiydn8yv.fsf@chameau.maisel.enst-bretagne.fr> <4ad871310902041426o6ea672b8ubcf1a5a1efb105e3@mail.gmail.com> Date: Thu, 05 Feb 2009 00:20:06 +0100 In-Reply-To: <4ad871310902041426o6ea672b8ubcf1a5a1efb105e3@mail.gmail.com> (Glen Barber's message of "Wed, 4 Feb 2009 17:26:06 -0500") Message-ID: <864oz9n61l.fsf@chameau.maisel.enst-bretagne.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: Multiple MAC on a single (physical) interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 23:20:14 -0000 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] for the "bug" that appeared in 4.6, along with quite a lot of details, and [2] for an = ack to the fact that it is still in 7-stable. --=20 Fred