From owner-freebsd-jail@freebsd.org Sat May 14 13:20:06 2016 Return-Path: Delivered-To: freebsd-jail@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 E637FB39C8A for ; Sat, 14 May 2016 13:20:06 +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 mx1.freebsd.org (Postfix) with ESMTPS id B5E9B1D3F for ; Sat, 14 May 2016 13:20:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u4EDK6vX083968 for ; Sat, 14 May 2016 13:20:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 206012] jail(8): Cannot assign link-local IPv6 address to a jail Date: Sat, 14 May 2016 13:20:06 +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: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: s.biberhofer@spherical-elephant.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2016 13:20:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206012 Sascha Biberhofer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |s.biberhofer@spherical-elep | |hant.com --- Comment #2 from Sascha Biberhofer = --- Just to add to this: It _is_ possible to assign a link-local IPv6 address to a jail. But you hav= e to use the interface's scope identifier to do so, i.e. instead of writing something like ip6.addr =3D "lo1|fe80::dead:beef/64"; you need to use=20 ip6.addr =3D "lo1|fe80:X::dead:beef/64"; where X is the scope-id of your interface. This number does depend - as far= as I can tell - on the order in which the kernel creates the interfaces, so you either have to take a wild guess or take a look at the ouput of ifconfig, w= hich prints the scopeid of any IPv6-address assigned to it: inet6 fe80::dead:beef%lo1 prefixlen 64 scopeid 0x5 It would be really nice if this hack wasn't necessary, i.e. if the system w= ould do this either by itself, or if there was a reliable way to get the scope-i= d of an interface without having to guess. As it stands right now, using scope-i= ds to assign link-local addresses works, but might break on reboot if a new interface is added. --=20 You are receiving this mail because: You are the assignee for the bug.=