From owner-freebsd-net@freebsd.org Sun Jul 22 18:37:22 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40F5D1052A0F for ; Sun, 22 Jul 2018 18:37:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CE1797FC53 for ; Sun, 22 Jul 2018 18:37:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9082B1052A0E; Sun, 22 Jul 2018 18:37:21 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DB131052A0D for ; Sun, 22 Jul 2018 18:37:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 195377FC50 for ; Sun, 22 Jul 2018 18:37:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6769A207E0 for ; Sun, 22 Jul 2018 18:37:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6MIbKwJ085161 for ; Sun, 22 Jul 2018 18:37:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6MIbKEh085160 for net@FreeBSD.org; Sun, 22 Jul 2018 18:37:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 229957] [epair] MAC addresses all the same, no randomness Date: Sun, 22 Jul 2018 18:37:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: ipfilter, regression, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2018 18:37:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229957 --- Comment #4 from O. Hartmann --- (In reply to Eugene Grosbein from comment #1) epair(4) interfaces are created in /etc/jail.conf within the "common" porti= on of the config file via [...] exec.prestart=3D ""; exec.prestart+=3D "ifconfig ${if_vnet} create"; exec.prestart+=3D "ifconfig ${if_vnet}a ether ${epair_ether_base}:0= a"; exec.prestart+=3D "ifconfig ${if_vnet}b ether ${epair_ether_base}:0= b"; exec.prestart+=3D "ifconfig ${if_vnet}b up"; exec.prestart+=3D "ifconfig ${if_home_bridge} addm ${if_vnet}b up"; [...] Each jail definition has a set of variables comprising ${if_vnet} from lite= rals "epairXXX" and then in the prestart section a and b.=20 ${epair_ether_base} is set to something "hand-randomised", means I try to g= ive each epair a distinguished MAC after I ran into these problems. So accordin= g to your question, epairs are created as walking through a for-loop, creating e= ach epair and put the a-part into the vnet jail and going on with the next. I f= ind this way much more convenient than creating all necessary epairs at once and putting them afterwards into vnet. --=20 You are receiving this mail because: You are the assignee for the bug.=