From owner-freebsd-net@freebsd.org Tue Feb 14 12:51:13 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1DDACDD05F for ; Tue, 14 Feb 2017 12:51:13 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 85AB21EFC for ; Tue, 14 Feb 2017 12:51:13 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 321E525D3891; Tue, 14 Feb 2017 12:51:11 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 685FCD1F7E7; Tue, 14 Feb 2017 12:51:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 3k95RXNDCtNo; Tue, 14 Feb 2017 12:51:09 +0000 (UTC) Received: from [192.168.124.1] (fresh-tun0-ula.sbone.de [IPv6:fde9:577b:c1a9:4920:2ef0:eeff:fe03:ee34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 14467D1F7E2; Tue, 14 Feb 2017 12:51:08 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Giulio Ferro" Cc: "freebsd-net@freebsd.org" Subject: Re: Duplicate MAC addresses in VNET epair interaces Date: Tue, 14 Feb 2017 12:51:07 +0000 Message-ID: <88F0318C-ADB5-4EC3-9308-613ED7F2DAA7@lists.zabbadoz.net> In-Reply-To: References: <472069af-0f9d-d830-064b-2d984a5774ae@zirakzigil.org> <8B1A6A6C-4280-4B96-9D60-FC9E7EEE2222@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6076) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 12:51:13 -0000 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