• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

ipv6 routing between two linux machines and a /64 tunnel

Started by wshosting, August 03, 2008, 12:03:05 PM

Previous topic - Next topic

wshosting

Hi, I have two machines in my setup (so far) - a router and a client, both running debian etch.
After struggling for a while with radvd and realizing something was wrong on the router's side i decided to set up the client manually and take it from there, however I'm currently unable to get the client and the router to communicate with the tunnel interface addresses.
I have set up an additional local ipv6 network between the two to make sure I've got the routing theory figured out - and currently the problem seems to be that the tunnel interface is the only interface the router will allow to use the internet addresses.

My router can reach the ipv6 world just fine, and vice versa - even to the address that I've set on the local network interface, but the client machine can not ping the address i set on the routers internal address (eth0) (2001:470:1f14:235::6/128 -> 2001:470:1f14:235::3/128) so I'm guessing its a routing problem on the routers side..

I'm going to paste the routing table and ifconfig for each machine below:

#########
# ROUTER #
#######

router:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:A0:E8:99
          inet addr:195.0.203.124  Bcast:195.0.207.255  Mask:255.255.248.0
          inet6 addr: fec0:a:a:a::1/128 Scope:Site
          inet6 addr: 2001:470:1f14:235::3/128 Scope:Global
          inet6 addr: fe80::20c:29ff:fea0:e899/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:172947306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:172896137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:547615663 (522.2 MiB)  TX bytes:325292871 (310.2 MiB)
          Interrupt:177 Base address:0x1080

eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:A0:E8:99
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:177 Base address:0x1080

he-ipv6   Link encap:IPv6-in-IPv4
          inet6 addr: 2001:470:1f14:235::2/64 Scope:Global
          inet6 addr: fe80::c300:cb7c/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17239 (16.8 KiB)  TX bytes:19739 (19.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:624 (624.0 b)  TX bytes:624 (624.0 b)

router:~# route -6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
::1/128                                     ::                                      U     0      49434       1 lo
2001:470:1f14:235::/128                     ::                                      U     0      0        2 lo
2001:470:1f14:235::2/128                    ::                                      U     0      72       1 lo
2001:470:1f14:235::3/128                    ::                                      U     0      46       1 lo
2001:470:1f14:235::/64                      ::                                      U     256    53       0 he-ipv6
fe80::/128                                  ::                                      U     0      0        2 lo
fe80::c300:cb7c/128                         ::                                      U     0      0        1 lo
fe80::20c:29ff:fea0:e899/128                ::                                      U     0      51       1 lo
fe80::/64                                   ::                                      U     256    0        0 eth0
fe80::/64                                   ::                                      U     256    0        0 he-ipv6
fec0:a:a:a::1/128                           ::                                      U     0      34       1 lo
fec0:a:a:a::/64                             ::                                      U     1024   0        0 eth0
ff00::/8                                    ::                                      U     256    0        0 eth0
ff00::/8                                    ::                                      U     256    0        0 he-ipv6
::/0                                        ::                                      U     1024   0        0 he-ipv6

########
# CLIENT #
#######

root@teraplex:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1B:21:10:BF:61
          inet addr:192.168.10.12  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fec0:a:a:a::2/128 Scope:Site
          inet6 addr: 2001:470:1f14:235::6/128 Scope:Global
          inet6 addr: fe80::21b:21ff:fe10:bf61/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:97716658 errors:0 dropped:0 overruns:0 frame:0
          TX packets:377872189 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:256998838 (245.0 MiB)  TX bytes:4086820124 (3.8 GiB)
          Base address:0xb000 Memory:f7020000-f7040000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:452 errors:0 dropped:0 overruns:0 frame:0
          TX packets:452 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:52350 (51.1 KiB)  TX bytes:52350 (51.1 KiB)

root@teraplex:~# route -6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
::1/128                                     ::                                      U     0      24       1 lo
2001:470:1f14:235::6/128                    ::                                      U     0      2        1 lo
2001:470:1f14:235::/64                      ::                                      U     1024   0        0 eth1
fe80::21b:21ff:fe10:bf61/128                ::                                      U     0      47       1 lo
fe80::/64                                   ::                                      U     256    0        0 eth1
fec0:a:a:a::2/128                           ::                                      U     0      18       1 lo
fec0:a:a:a::/64                             ::                                      U     1024   1        0 eth1
ff00::/8                                    ::                                      U     256    0        0 eth1


root@teraplex:~# ping6 2001:470:1f14:235::3 -v
PING 2001:470:1f14:235::3(2001:470:1f14:235::3) 56 data bytes

--- 2001:470:1f14:235::3 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3002ms


Any idea's will be much appreciated - I've fought with similar problems before but It's been so long I don't remember how or whether I figured it out back then..

tufinhas

Quote from: wshosting on August 03, 2008, 12:03:05 PM
#########
# ROUTER #
#######

router:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:A0:E8:99
          inet addr:195.0.203.124  Bcast:195.0.207.255  Mask:255.255.248.0
          inet6 addr: fec0:a:a:a::1/128 Scope:Site
          inet6 addr: 2001:470:1f14:235::3/128 Scope:Global
          inet6 addr: fe80::20c:29ff:fea0:e899/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:172947306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:172896137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:547615663 (522.2 MiB)  TX bytes:325292871 (310.2 MiB)
          Interrupt:177 Base address:0x1080

he-ipv6   Link encap:IPv6-in-IPv4
          inet6 addr: 2001:470:1f14:235::2/64 Scope:Global
          inet6 addr: fe80::c300:cb7c/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17239 (16.8 KiB)  TX bytes:19739 (19.2 KiB)

you are using a wrong subnet on eth0

your routed /64 should be 1f15 (maybe), see at tunnelbroker page



edit: maybe you need too... :)

"inet6 addr: 2001:xxxx:xxxx:xxx/64 Scope:Global"

and

echo "1" > /proc/sys/net/ipv6/conf/all/forwarding

broquea

Dragoon is correct, you are using the wrong /64 for the radvd. You need to use the routed allocation, not the point-to-point.

wshosting

It took me a couple of days to get around to this, but it works now - thanks!