Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2009 23:16:56 +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 13:36:05 -0500")
References:  <> <>

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

>                      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.


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