Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 20:32:28 +0800
From:      "Mars G. Miro" <spry@anarchy.in.the.ph>
To:        freebsd-jail@freebsd.org
Subject:   ifconfig not seeing IPv6 in x86 jail
Message-ID:  <4FD736DC.9020703@anarchy.in.the.ph>

next in thread | raw e-mail | index | archive | help
Hi Guys

	I've just noticed this now, and I usually build jails (including x86 
jails for my x86 systems) for custom-building my base and ports, for 
pkg_add'ing later. It works great(!), and I've done this evar since 
we've been able to cross-build.

	It seems that ifconfig doesn't see the IPv6 address in an x86 jail ?

mars@spry832x86:~> sysctl security.jail.jailed
security.jail.jailed: 1

mars@spry832x86:~> ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
 
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
         ether 00:22:19:17:e5:9a
         inet 172.17.83.2 netmask 0xffffffff broadcast 172.17.83.2
         nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
bge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
 
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
         ether 00:22:19:17:e5:9b
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
         options=3<RXCSUM,TXCSUM>


But I know I'm on IPv6:

mars@spry832x86:~> w
  8:28PM  up 8 days,  6:27, 1 user, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
mars             pts/4    2001:470:XXX:2400  8:27PM     - w

mars@spry832x86:~> uname -a
FreeBSD spry832x86 8.3-RELEASE-p2 FreeBSD 8.3-RELEASE-p2 #0: Mon Jun  4 
13:32:10 PHT 2012     root@panzer.XXX:/usr/obj/usr/src/sys/PANZER  i386
mars@spry832x86:~>

I checked on FreeBSD 8.2 and it's the same. I've yet to check on 9.X tho.

Is this worth a PR ?

Thanks.



-- 
God made him, and therefore let him pass for a man.
  -- William Shakespeare (1564-1616), The Merchant of Venice
  -- Act i, Sc. 2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD736DC.9020703>