Robert Czechowski
November 15, 2021
IPv4 address
87.79.238.188
IPv6 address
2001:4dd0:2426:0:4cca:dd0:7570:f476
Network address translation
IPv4 | IPv6 | |
---|---|---|
ip addr |
ip addr |
|
dig y27.de |
dig y27.de AAAA |
|
ping -4 y27.de |
ping -6 y27.de |
|
dhcpcd -T eth0 -t 5 |
dhcpcd -T eth0 -t 5 |
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state…
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdis…
link/ether 28:d2:44:d8:c6:f9 brd ff:ff:ff:ff:ff:ff
inet 172.27.27.8/16 brd 172.27.255.255 scope global dyn…
valid_lft 86395291sec preferred_lft 86395291sec
inet6 2001:4dd0:2426:0:4cca:dd0:7570:f476/64 scope glob…
valid_lft 6899sec preferred_lft 3299sec
inet6 2001:4dd0:2426:0:8284:9fef:358e:915b/64 scope glo…
valid_lft 6899sec preferred_lft 3299sec
inet6 fe80::b6e2:f8fb:ee5a:ca2c/64 scope link noprefixr…
valid_lft forever preferred_lft forever
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state…
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc …
link/ether b8:27:eb:aa:16:31 brd ff:ff:ff:ff:ff:ff
inet 172.27.0.2/16 brd 172.27.255.255 scope global nopr…
valid_lft forever preferred_lft forever
inet6 2001:4dd0:2426:0:ba27:ebff:feaa:1631/64 scope glo…
valid_lft 7119sec preferred_lft 3519sec
inet6 fe80::ba27:ebff:feaa:1631/64 scope link
valid_lft forever preferred_lft forever
Eight blocks of four hexadecimal figures
2001:00d0:0000:0000:0000:005a:008e:915b
Leading zeros can be left out
2001:d0:0:0:0:5a:8e:915b
A single group of zero blocks can be replaced by ::
2001:d0::5a:8e:915b
The last two blocks can be written in v4 format
2001:d0::5a:10.142.145.91
What to add a port / protocol? Brackets!
http://[2001:d0::5a:8e:915b]:8080
2001:4dd0:2426:0:8284:9fef:358e:915b
64 bit network part, 64 bit interface identifier
Rationale:
Have enough networks to give every site its own network
Have enough interface identifier to fit every device in a single one network
IPv4 | IPv6 | |
---|---|---|
10.0.0.0/8 |
2001:1337::/40 |
|
16M addrs | 16M subnets with 2^64 addrs each! | |
10.7.0.0/16 |
2001:1337:7::/48 |
|
65k addrs | 65k subnets with 2^64 addrs each! |
Link local:
fe80::b6e2:f8fb:ee5a:ca2c
Global routable:
2001:4dd0:2426:0:8284:9fef:358e:915b
Localhost:
::1
Other
Multicast
Anycast
Unspecified:
::
Want to listen on IPv4 and IPv6 both?
::
bind()
by defaults listens
::
0.0.0.0
Stateless address autoconfiguration
MAC:
01:23:45:67:89:ab
Interface identifier:
…:0323:45ff:fe67:89ab
Privacy extension
First services start to appear that are IPv6 only.
Those are currently not reachable from our office because we don’t have IPv6 enabled.
Thanks for listening!