From owner-freebsd-questions@freebsd.org Wed Apr 5 21:18:28 2017 Return-Path: Delivered-To: freebsd-questions@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 34A20D30725 for ; Wed, 5 Apr 2017 21:18:28 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 097B5BB4 for ; Wed, 5 Apr 2017 21:18:27 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 2836F623AE for ; Wed, 5 Apr 2017 17:18:26 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A2SgJmBV7oOJ for ; Wed, 5 Apr 2017 17:18:23 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 42E2662355 for ; Wed, 5 Apr 2017 17:18:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1491427103; bh=rVkF4NmfDSVybkPPTRKk8KY6O8L9OeA2lCEKapup19c=; h=Date:Subject:From:To:Reply-To; b=QIg3LtNy7HhAlnVfTPsCbGgN2Ny1xadbAGohn1XMkpuolqOLUmMhAXlq+PEqb/OiB J2/Y043iX08oemdFBx7DYZ1R6uAKOo39PFIXzX+qGpjwkUmAO0Iu9GIWVeqnLOGkhA 1PFu55w1Ghqn6nlJwxlL8ggILydIie1ZbgF0/DVuq9rZS3vUgPzqATLlM1hEexsRqr /O2uWeCqSa9zgr/aPXcQkIPOJcgErJuBgdDa2ZsJCg5sK2DPORIhqQq15Z2lJZF0hC 7/4t5Uzikj7S/l1N2IczCS9eYLnwk3bnHrxsrlLx5HeJqn/DPY/H1h0cqVQZxENVFp DhMkphy4rHdqA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 5 Apr 2017 17:18:23 -0400 Message-ID: <2d8044a2a2d8a5dd0f73d7db03bb962b.squirrel@webmail.harte-lyne.ca> Date: Wed, 5 Apr 2017 17:18:23 -0400 Subject: IPv6 experimentation in jails. From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 21:18:28 -0000 How does one enable and properly configure a working ipv6 i/f on a Freebsd host where the host is presently located on an ipv4 network with no ipv6 gateway? I have tried putting this in /etc/rc.conf ### IPv6 setting ifconfig_em0_ipv6="inet6 accept_rtadv" # Assign address from rtadv rtsold_enable="YES" # enable router solicitation #ipv6_defaultrouter="::00:192.168.209.1" # Support for IPv6 on router ipv6_defaultrouter="::ff:192.168.209.1" # No support for IPv6 on router and this in the relevant ezjail config: export jail_hllmx18_hostname="hllmx18" export jail_hllmx18_ip="\ lo2|127.0.2.1,\ em0|192.168.209.18,\ em0|192.168.209.118,\ em0|::2" Which results in this: ezjail-admin list STA JID IP Hostname Root Directory --- ---- --------------- ------------------ ------------------- ZR 1 127.0.2.1 hllmx18 /usr/jails/hllmx18 1 em0|192.168.209.18 1 em0|192.168.209.118 1 em0|::2 However, ifconfig shows this: em0: flags=8843 metric 0 mtu 1500 options=4219b ether 00:1c:c0:f2:1f:9e inet 192.168.209.41 netmask 0xffffff00 broadcast 192.168.209.255 inet 192.168.209.33 netmask 0xffffffff broadcast 192.168.209.33 inet 192.168.209.133 netmask 0xffffffff broadcast 192.168.209.133 inet6 fe80::21c:c0ff:fef2:1f9e%em0 prefixlen 64 scopeid 0x1 nd6 options=23 media: Ethernet autoselect (1000baseT ) status: active re0: flags=8802 metric 0 mtu 1500 options=8209b ether 00:0a:cd:1d:44:fe nd6 options=29 media: Ethernet autoselect (10baseT/UTP ) status: no carrier lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo lo1: flags=8049 metric 0 mtu 16384 options=600003 inet 192.168.209.33 netmask 0xffffffff inet 127.0.1.1 netmask 0xffffffff nd6 options=29 groups: lo lo2: flags=8049 metric 0 mtu 16384 options=600003 inet 192.168.209.18 netmask 0xffffffff inet 127.0.2.1 netmask 0xffffffff nd6 options=29 groups: lo pflog0: flags=141 metric 0 mtu 33160 groups: pflog As well, this configuration breaks the assignment of 192.168.209.18 to the jail: ssh 192.168.209.18 -t -Y 'bash || sh' ssh: connect to host 192.168.209.18 port 22: No route to host ping 192.168.209.18 PING 192.168.209.18 (192.168.209.18) 56(84) bytes of data.) >From 192.168.209.2 icmp_seq=2 Destination Host Unreachable I do not see anything in the way of an ipv6 being made available to lo2. What other steps are required? Why is the existing ipv4 address mapping broken when I do this? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3