Notes on IPV6
March 22, 2020
Protocol: DHCPv6 client
Prefix Delegated: 2604:2d80:e7a0:700::/56
Address: 2604:2d80:c801::601d:ce1d:c7d8:71a1/128 Gateway: fe80::217:10ff:fe91:73b7 DNS 1: 2607:fdc8:c::2 DNS 2: 2607:fdc8:c::3 Connected: 15d 21h 12m 35s Link Local Unique Local are meant to be used inside an internal network. - fd00::/8 for locally assigned addressing.
Unique local addresses can be routed, but only within one routing domain. So an ISP can choose to use ULA for services which can’t be publicly accessible.
The Unique Local Address is intended to be used only locally at the customer site for when the GUA is down due to ISP failure or other missing features
Stateless address autoconfiguration stateful address autoconfiguration - usually uses dhcpv6 server to help manual
Global Unicast Address (GUA)
128 Bits long
48 Bits - Global Routing Prefix, 16 Bits Subnet ID, 64-bit Interface Identifier
2001:1234:ABCD :5678: 0221:2FFF:FEB5:6E10
The frist 64Bits of your Address comes from the Gateway (2001:1234:ABCD:5678:) The Second 64Bits Comes From your Device!
The 64Bits come from your MAC address using EUI-64
MAC: 00-21:2F-B5-6E-10
Add FF-FE to middle: 00-21-2F-FF-FE-B5-6E-10
Flip the 7th bit
0000 0000 -> 0000 0010
02-21-2F-FF-FE-B5-6E-10
b8:27:eb:26:fe:3c
1011 1000 : 27 : eb : FF : FE : 26 : fe:3c
B 1010
ba27.ebff.fe26.fe3c
link/ether b8:27:eb:26:fe:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.0.7/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fdd7:6b1f:f607::5f8/128 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fdd7:6b1f:f607:0:ed53:79b6:a0d7:3d5b/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fd2f:a9dc:b3e6:0:9a8e:15c7:c8a4:2bae/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 2604:2d80:e7a0:700::5f8/128 scope global noprefixroute dynamic
valid_lft 1046690sec preferred_lft 441890sec
inet6 2604:2d80:e7a0:700:53f5:a61f:4d01:7272/64 scope global noprefixroute dynamic
valid_lft 1046689sec preferred_lft 441889sec
inet6 fe80::1fe6:6b3b:4b1c:b96b/64 scope link
valid_lft forever preferred_lft forever
root@pi-dns:/etc/puppet/modules/dns# traceroute6 www.google.com traceroute to www.google.com (2607:f8b0:4009:810::2004), 30 hops max, 80 byte packets 1 2604:2d80:e7a0:700::1 (2604:2d80:e7a0:700::1) 0.614 ms 0.389 ms 0.494 ms 2 2604:2d80:c801::1 (2604:2d80:c801::1) 14.537 ms 15.640 ms 17.790 ms 3 2607:fdc8:5::8 (2607:fdc8:5::8) 21.490 ms 21.377 ms 21.263 ms 4 2001:4860:1:1:0:7554:0:2 (2001:4860:1:1:0:7554:0:2) 17.328 ms 17.219 ms 17.112 ms 5 2001:4860:0:1010::1 (2001:4860:0:1010::1) 16.908 ms 2001:4860:0:100f::1 (2001:4860:0:100f::1) 17.471 ms 2001:4860:0:1010::1 (2001:4860:0:1010::1) 16.672 ms 6 2001:4860:0:1::87 (2001:4860:0:1::87) 16.559 ms 2001:4860:0:1::89 (2001:4860:0:1::89) 15.716 ms 2001:4860:0:1::87 (2001:4860:0:1::87) 15.493 ms 7 2607:f8b0:4009:810::2004 (2607:f8b0:4009:810::2004) 15.383 ms 20.049 ms 19.807 ms