Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2011 16:37:12 +1300
From:      "Rob Evers" <rob@debank.tv>
To:        freebsd-jail@FreeBSD.org
Subject:   ipv6 loopback behaviour inside jail
Message-ID:  <e368b66d4e226520bfb4d29b2f32cdcf.squirrel@debank.tv>

next in thread | raw e-mail | index | archive | help
All,

I've got a question about the IPv6 loopback address inside a jail.

I've got a bunch of jails configured with both IPv4 and IPv6 addresses all
of which are tied to a physical interface (em0). When I'm inside the jail
I can ping 127.0.0.1 without any problems:

root@imap:~#ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms
^C

A ping6 to ::1 however returns:

root@imap:~#ping6 ::1
PING6(56=40+8+8 bytes) 2001:1af8:fe30::26 --> ::1
ping6: sendmsg: Can't assign requested address
ping6: wrote ::1 16 chars, ret=-1
^C

When I configure the IPv6 address used by the jail on the loopback
interface (lo0) things magically start working:

root@test:~#ping6 ::1
PING6(56=40+8+8 bytes) 2001:1af8:fe30::36 --> ::1
16 bytes from 2001:1af8:fe30::36, icmp_seq=0 hlim=64 time=0.092 ms
^C

My question; is this supposed to work like this because it feels a bit
inconsistent, I could migrate the IPv6 addresses to the loopback interface
but prefer to have them directly connected on the LAN.

Thanks for any insight!
Rob Evers

P.S. I can supply any further information needed.

-- 
If we don't believe in free expression for people we despise, we don't
believe in it at all.

Noam Chomsky

***deze e-mail is gescand door Onlinespamfilter.nl***



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