Multiple MAC on a single (physical) interface

Frédéric Perrin frederic.perrin at resel.fr
Wed Feb 4 14:17:05 PST 2009


Le Mercredi 4 à 19:36, Glen Barber a écrit :
> 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="whatever"
> ifconfig_em0_alias0="my settings"
> ifconfig_em0_alias1="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.

-- 
Fred


More information about the freebsd-questions mailing list