Date: Wed, 04 Feb 2009 23:16:56 +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: <86eiydn8yv.fsf@chameau.maisel.enst-bretagne.fr> In-Reply-To: <4ad871310902041036m32ed57c5qd1f56329be37013b@mail.gmail.com> (Glen Barber's message of "Wed, 4 Feb 2009 13:36:05 -0500") References: <863aeunkj0.fsf@chameau.maisel.enst-bretagne.fr> <4ad871310902041036m32ed57c5qd1f56329be37013b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eiydn8yv.fsf>