Forwarding IPv6 Routing
by Draracle from LinuxQuestions.org on (#5B0TY)
Hi All, I have a project at work and I am new to Ubuntu 14 and in need of some assistance I hope someone can assist me.
I am trying to get Ipv6 Routing working in a way that Server 1 can talk to Server 3 via Server2. Server1 has a IP6in4 Tunnel to Server2, and to route to server3 it must traverse the tunnel and send the packet to server2 on its way to server3(Windows). I cant get it working and I hope someone can assist me.
My scenario is, we have 3 servers,
Server 1
eth0 Link encap:Ethernet HWaddr 00:1C:64:51:0F:23
inet addr:10.61.133.56 Bcast:10.61.133.255 Mask:255.255.255.0
inet6 addr: fe80::21c:64ff:fe51:f23/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9504 errors:0 dropped:0 overruns:0 frame:0
TX packets:9911 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:764321 (746.4 KiB) TX bytes:2320288 (2.2 MiB)
Interrupt:46 Base address:0x8000
IP6In4 Tunnel Interface
xtun0 Link encap:IPv6-in-IPv4
inet6 addr: fda0::2:0:0:8051:f23/128 Scope:Global
inet6 addr: fe80::a3d:8538/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1434 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:3591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34089 (33.2 KiB) TX bytes:389543 (380.4 KiB)
Server2
cr2152795939 Link encap:IPv6-in-IPv4
inet6 addr: fe80::a09:cb10/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1434 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21405 (21.4 KB) TX bytes:4083 (4.0 KB)
eth0 Link encap:Ethernet HWaddr 00:0d:3a:ca:87:ea
inet addr:10.9.203.16 Bcast:10.9.203.127 Mask:255.255.255.128
inet6 addr: fe80::20d:3aff:feca:87ea/64 Scope:Link
inet6 addr: 2005:3::5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:88266 errors:0 dropped:0 overruns:0 frame:0
TX packets:92202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40904176 (40.9 MB) TX bytes:35023761 (35.0 MB)
Server3 (Windows)
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix . : reddog.microsoft.com
IPv6 Address. . . . . . . . . . . : 2005:3::4
Link-local IPv6 Address . . . . . : fe80::d97c:181:2dab:baab%8
IPv4 Address. . . . . . . . . . . : 10.9.203.15
Subnet Mask . . . . . . . . . . . : 255.255.255.128
Default Gateway . . . . . . . . . : fe80::1234:5678:9abc%8
10.9.203.1
When I ping 2005:3::4 from Server1, I can see the packet in tcpdump hitting 2005:3::5 (Server2) but thats it, packet never reaches Server3.
I have IPv4 and IPv6 enabled on server2
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding=1
I have this route on server2
2005:3::/64 dev eth0 proto kernel metric 256
and I have this route on server3(Windows)
If Metric Network Destination Gateway
8 266 ::/0 fe80::1234:5678:9abc
1 331 ::1/128 On-link
8 266 2005:3::/64 On-link
8 266 2005:3::4/128 On-link
8 11 fda0::2:0:0:8051:f23/128 2005:3::5
8 266 fe80::/64 On-link
8 266 fe80::d97c:181:2dab:baab/128
On-link
1 331 ff00::/8 On-link
8 266 ff00::/8 On-link
I need to be able to ping fda0::2:0:0:8051:f23 (ipv6 global address on server1) from Server3 and 2005:3::4(Server3) from Server1 via Server2.
Is there something fundamentally wrong I am missing? Thanks all. If anything not clear please ask Ill clarify thanks.


I am trying to get Ipv6 Routing working in a way that Server 1 can talk to Server 3 via Server2. Server1 has a IP6in4 Tunnel to Server2, and to route to server3 it must traverse the tunnel and send the packet to server2 on its way to server3(Windows). I cant get it working and I hope someone can assist me.
My scenario is, we have 3 servers,
Server 1
eth0 Link encap:Ethernet HWaddr 00:1C:64:51:0F:23
inet addr:10.61.133.56 Bcast:10.61.133.255 Mask:255.255.255.0
inet6 addr: fe80::21c:64ff:fe51:f23/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9504 errors:0 dropped:0 overruns:0 frame:0
TX packets:9911 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:764321 (746.4 KiB) TX bytes:2320288 (2.2 MiB)
Interrupt:46 Base address:0x8000
IP6In4 Tunnel Interface
xtun0 Link encap:IPv6-in-IPv4
inet6 addr: fda0::2:0:0:8051:f23/128 Scope:Global
inet6 addr: fe80::a3d:8538/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1434 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:3591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34089 (33.2 KiB) TX bytes:389543 (380.4 KiB)
Server2
cr2152795939 Link encap:IPv6-in-IPv4
inet6 addr: fe80::a09:cb10/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1434 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21405 (21.4 KB) TX bytes:4083 (4.0 KB)
eth0 Link encap:Ethernet HWaddr 00:0d:3a:ca:87:ea
inet addr:10.9.203.16 Bcast:10.9.203.127 Mask:255.255.255.128
inet6 addr: fe80::20d:3aff:feca:87ea/64 Scope:Link
inet6 addr: 2005:3::5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:88266 errors:0 dropped:0 overruns:0 frame:0
TX packets:92202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40904176 (40.9 MB) TX bytes:35023761 (35.0 MB)
Server3 (Windows)
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix . : reddog.microsoft.com
IPv6 Address. . . . . . . . . . . : 2005:3::4
Link-local IPv6 Address . . . . . : fe80::d97c:181:2dab:baab%8
IPv4 Address. . . . . . . . . . . : 10.9.203.15
Subnet Mask . . . . . . . . . . . : 255.255.255.128
Default Gateway . . . . . . . . . : fe80::1234:5678:9abc%8
10.9.203.1
When I ping 2005:3::4 from Server1, I can see the packet in tcpdump hitting 2005:3::5 (Server2) but thats it, packet never reaches Server3.
I have IPv4 and IPv6 enabled on server2
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding=1
I have this route on server2
2005:3::/64 dev eth0 proto kernel metric 256
and I have this route on server3(Windows)
If Metric Network Destination Gateway
8 266 ::/0 fe80::1234:5678:9abc
1 331 ::1/128 On-link
8 266 2005:3::/64 On-link
8 266 2005:3::4/128 On-link
8 11 fda0::2:0:0:8051:f23/128 2005:3::5
8 266 fe80::/64 On-link
8 266 fe80::d97c:181:2dab:baab/128
On-link
1 331 ff00::/8 On-link
8 266 ff00::/8 On-link
I need to be able to ping fda0::2:0:0:8051:f23 (ipv6 global address on server1) from Server3 and 2005:3::4(Server3) from Server1 via Server2.
Is there something fundamentally wrong I am missing? Thanks all. If anything not clear please ask Ill clarify thanks.