Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: sleepingdust on August 26, 2013, 08:10:10 AM

Title: why use prefixlen 128 on Mac while IPv6 Address from HE has prefixlen 64?
Post by: sleepingdust on August 26, 2013, 08:10:10 AM
This might be a complete amateur question:

My IPv6 address assigned by HE is something like 2001:470:20:5c2::2/64

If I understand this correctly, the number after the oblique (/) is the prefix length, then why the tunnel tutorial Configuring a tunnel under *BSD & MacOS X (http://www.tunnelbroker.net/forums/index.php?topic=19.0) uses prefix length 128 for Mac?

Should it be:
ifconfig gif0 inet6 $ipv6b $ipv6a prefixlen /64
instead of
ifconfig gif0 inet6 $ipv6b $ipv6a prefixlen /128

Thanks!
Title: Re: why use prefixlen 128 on Mac while IPv6 Address from HE has prefixlen 64?
Post by: cholzhauer on August 26, 2013, 08:56:09 AM
IIRC that was a change in newer versions of OSx (someone please correct me if I'm wrong) and the tutorial was obviously written before the new versions were released.
Title: Re: why use prefixlen 128 on Mac while IPv6 Address from HE has prefixlen 64?
Post by: sleepingdust on August 27, 2013, 12:20:16 AM
But why ifconfig gif0 still show the prefixlen 128 when I configured it with prefixlen 64?

gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
tunnel inet 192.168.1.141 --> 216.218.221.6
inet6 fe80::21b:XXXX:fe93:eee%gif0 prefixlen 64 scopeid 0x2
inet6 2001:470:18:XXX::2 --> 2001:470:18:XXX::1 prefixlen 128