ipv6 loopback behaviour inside jail

Rob Evers rob at debank.tv
Wed Mar 30 03:56:23 UTC 2011


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 at 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 at 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 at 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***


More information about the freebsd-jail mailing list