Hey,
On 12/02/16 13:14, Reyk Floeter wrote:
This is a link-local address, you have to specify the interface scope id:
$ cat /etc/mygate
144.76.102.193
fe80::1%em0
thanks for the hint. I fixed this but that alone still does not help me
to send IPv6 data.
Hetzner also needs to know your link-local address on em0,
do they use the fe80::921b:eff:fe8b:f34%em0 derived from the MAC (I think they
do)
or do you have to configure something like fe80::2%em0 on your side?
Thats a good question. Sadly they dont specify that in the docs and are
also not willing to answer that via there support staff.
All i could find in the documentation is the following line:
For IPv6 on dedicated servers and virtual servers from the CX line, the gateway
is fe80::1.
Since this is a link-local address, the explicit specification of the network
adapter (usually eth0) is necessary:
# ip route add default via fe80::1 dev eth0
There answer is that it works on Linux without config and OpenBSD is not
supported officially.
I just found out that since i changed my mygate up to your suggestion
that i now have to ping6 fe80::1%em0 first and then i am able to
connecto to other hosts via IPv6. But not before i pinged the
fe80::1%em0. WTF?
Here are my rountes before the first ping to fe80::1 and then after the
ping.
Routing tables (before ping)
Internet6:
Destination Gateway Flags Refs
Use Mtu Prio Iface
default fe80::1%em0 UGS 0
579 - 8 em0
::/96 ::1 UGRS 0
0 32768 8 lo0
::/104 ::1 UGRS 0
0 32768 8 lo0
::1 ::1 UHl 14
14 32768 1 lo0
::127.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::224.0.0.0/100 ::1 UGRS 0
0 32768 8 lo0
::255.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::ffff:0.0.0.0/96 ::1 UGRS 0
0 32768 8 lo0
2002::/24 ::1 UGRS 0
0 32768 8 lo0
2002:7f00::/24 ::1 UGRS 0
0 32768 8 lo0
2002:e000::/20 ::1 UGRS 0
0 32768 8 lo0
2002:ff00::/24 ::1 UGRS 0
0 32768 8 lo0
2a01:4f8:192:42d6::/64 2a01:4f8:192:42d6::10 UC 0
0 - 4 em0
2a01:4f8:192:42d6::10 90:1b:0e:8b:0f:34 UHLl 0
18 - 1 em0
fe80::/10 ::1 UGRS 0
1 32768 8 lo0
fec0::/10 ::1 UGRS 0
0 32768 8 lo0
fe80::%em0/64 fe80::921b:eff:fe8b:f34%em0 UC 0
0 - 4 em0
fe80::921b:eff:fe8b:f34%em0 90:1b:0e:8b:0f:34 UHLl 0
0 - 1 em0
fe80::1%lo0 fe80::1%lo0 UHl 0
0 32768 1 lo0
ff01::/16 ::1 UGRS 0
1 32768 8 lo0
ff01::%em0/32 fe80::921b:eff:fe8b:f34%em0 Um 0
1 - 4 em0
ff01::%lo0/32 ::1 Um 0
1 32768 4 lo0
ff02::/16 ::1 UGRS 0
1 32768 8 lo0
ff02::%em0/32 fe80::921b:eff:fe8b:f34%em0 Um 0
1 - 4 em0
ff02::%lo0/32 ::1 Um 0
1 32768 4 lo0
Routing tables (after ping)
Internet6:
Destination Gateway Flags Refs
Use Mtu Prio Iface
default fe80::1%em0 UGS 0
581 - 8 em0
::/96 ::1 UGRS 0
0 32768 8 lo0
::/104 ::1 UGRS 0
0 32768 8 lo0
::1 ::1 UHl 14
14 32768 1 lo0
::127.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::224.0.0.0/100 ::1 UGRS 0
0 32768 8 lo0
::255.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::ffff:0.0.0.0/96 ::1 UGRS 0
0 32768 8 lo0
2002::/24 ::1 UGRS 0
0 32768 8 lo0
2002:7f00::/24 ::1 UGRS 0
0 32768 8 lo0
2002:e000::/20 ::1 UGRS 0
0 32768 8 lo0
2002:ff00::/24 ::1 UGRS 0
0 32768 8 lo0
2a01:4f8:192:42d6::/64 2a01:4f8:192:42d6::10 UC 0
0 - 4 em0
2a01:4f8:192:42d6::10 90:1b:0e:8b:0f:34 UHLl 0
23 - 1 em0
fe80::/10 ::1 UGRS 0
1 32768 8 lo0
fec0::/10 ::1 UGRS 0
0 32768 8 lo0
fe80::%em0/64 fe80::921b:eff:fe8b:f34%em0 UC 1
0 - 4 em0
fe80::1%em0 0c:86:10:ed:35:58 UHLc 1
7 - 4 em0
fe80::921b:eff:fe8b:f34%em0 90:1b:0e:8b:0f:34 UHLl 0
8 - 1 em0
fe80::1%lo0 fe80::1%lo0 UHl 0
0 32768 1 lo0
ff01::/16 ::1 UGRS 0
1 32768 8 lo0
ff01::%em0/32 fe80::921b:eff:fe8b:f34%em0 Um 0
1 - 4 em0
ff01::%lo0/32 ::1 Um 0
1 32768 4 lo0
ff02::/16 ::1 UGRS 0
1 32768 8 lo0
ff02::%em0/32 fe80::921b:eff:fe8b:f34%em0 Um 0
2 - 4 em0
ff02::%lo0/32 ::1 Um 0
1 32768 4 lo0
Does someone of you understand this?
Greetings
Leo