From owner-freebsd-net@freebsd.org Tue Feb 14 13:13:56 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 3A843CDDAF4 for ; Tue, 14 Feb 2017 13:13:56 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mx1.etoilesoft.fr (mx1.etoilesoft.fr [52.57.51.18]) by mx1.freebsd.org (Postfix) with ESMTP id 03ADF1C2C for ; Tue, 14 Feb 2017 13:13:55 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mx1.etoilesoft.fr (localhost [127.0.0.1]) by mx1.etoilesoft.fr (Postfix) with ESMTP id 7E1939D1A2; Tue, 14 Feb 2017 13:14:24 +0000 (UTC) Received: from [10.1.1.206] (localhost [127.0.0.1]) (Authenticated sender: auryn@zirakzigil.org) by mx1.etoilesoft.fr (Postfix) with ESMTPA id 4BEC89D19F; Tue, 14 Feb 2017 13:14:24 +0000 (UTC) Subject: Re: Duplicate MAC addresses in VNET epair interaces To: "Bjoern A. Zeeb" , "freebsd-net@freebsd.org" References: <472069af-0f9d-d830-064b-2d984a5774ae@zirakzigil.org> <8B1A6A6C-4280-4B96-9D60-FC9E7EEE2222@lists.zabbadoz.net> <88F0318C-ADB5-4EC3-9308-613ED7F2DAA7@lists.zabbadoz.net> From: Giulio Ferro Message-ID: Date: Tue, 14 Feb 2017 14:13:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <88F0318C-ADB5-4EC3-9308-613ED7F2DAA7@lists.zabbadoz.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 13:13:56 -0000 On 14/02/2017 13:51, Bjoern A. Zeeb wrote: > 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? > No, it's just me being stupid and careless... ;) Ok, it works great both in the jail and in the host. I've put the ether address in the /etc/start_if.epairxx files, as I think it should be supposed to be. Thanks a lot for your support! Giulio. > >> >> 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 > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"