Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2017 12:51:07 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        "Giulio Ferro" <auryn@zirakzigil.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Duplicate MAC addresses in VNET epair interaces
Message-ID:  <88F0318C-ADB5-4EC3-9308-613ED7F2DAA7@lists.zabbadoz.net>
In-Reply-To: <afe0bb6d-135c-0ce9-d344-3d83144ff56e@zirakzigil.org>
References:  <472069af-0f9d-d830-064b-2d984a5774ae@zirakzigil.org> <8B1A6A6C-4280-4B96-9D60-FC9E7EEE2222@lists.zabbadoz.net> <afe0bb6d-135c-0ce9-d344-3d83144ff56e@zirakzigil.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14 Feb 2017, at 9:26, Giulio Ferro wrote:

> Hi Bjoern, thanks for your reply...
>
> the idea is sound, but unfortunately setting the mac address of the 
> epair interface
> inside the jail doesn't work:
>
> ifconfig epair0b ether ether 02:ff:e0:00:00:0b
> ifconfig: can't set link-level netmask or broadcast

Two “ether”s there but I assume that’s a copy and paste issue?


>
> I've tried manually, in the rc.conf file 
> (ifconfig_epair0b="ether..."), and in the /etc/start_if.epair0b file,
> but neither of these three ways actually work to set the mac address 
> of the epair interface within the jail.
>
> On the other hand, no problem setting the mac of epair in the host...

And that’s what you should do.  Despite epairs being virtual 
interfaces, think of them as hardware that you are only “loaning” to 
the vnet-jail but don’t want the jail to mess with all the hw 
settings.

And you probably want to change the ether addresses on both ends anyway.

/bz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88F0318C-ADB5-4EC3-9308-613ED7F2DAA7>