From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 22:17:04 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 1A203106567F for ; Wed, 4 Feb 2009 22:17:04 +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 995D88FC24 for ; Wed, 4 Feb 2009 22:17:03 +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 A97E119BFA; Wed, 4 Feb 2009 23:17:02 +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 4vdR395EFifu; Wed, 4 Feb 2009 23:16:56 +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 E41BA19BF9; Wed, 4 Feb 2009 23:16:56 +0100 (CET) Received: by chameau.maisel.enst-bretagne.fr (Postfix, from userid 1001) id 4D7FDB8BB; Wed, 4 Feb 2009 23:16:56 +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> Date: Wed, 04 Feb 2009 23:16:56 +0100 In-Reply-To: <4ad871310902041036m32ed57c5qd1f56329be37013b@mail.gmail.com> (Glen Barber's message of "Wed, 4 Feb 2009 13:36:05 -0500") Message-ID: <86eiydn8yv.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 22:17:05 -0000 Le Mercredi 4 =C3=A0 19:36, Glen Barber a =C3=A9crit : > Forgive me if I am misunderstanding what you are trying to accomplish, > but it appears you just want to have several jails with sevaral IP > addresses. I'm not clear on why you mentioned MAC, as from what I see, > is irrelevant. I want each jail to have a different MAC [1]. Since I live in a level 2 network (i.e. we only do Ethernet switching, and no IP routing), it would be easy to see that the host and its jail(s) are on the same system since they share the same MAC. I want to make the jail appear as a completely different host from the point of vue of the rest of the network. > What you can do is create aliased devices in > rc.conf for your jails: > ifconfig_em0=3D"whatever" > ifconfig_em0_alias0=3D"my settings" > ifconfig_em0_alias1=3D"more settings" Yes, I saw that on the first article on jails I read :-). But packets from alias0 will still have the same MAC as em0, which I don't want. The obvious 'ifconfig em0 ether xx.xx.xx alias' won't work, it replaces em0's MAC. [1] MAC as in Media Access Control aka Ethernet address, we're not discussing mandatory access control. --=20 Fred