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

IPv6 Router on Ubuntu + radvd = problem

Started by aiv, March 01, 2012, 07:02:51 AM

Previous topic - Next topic

aiv

Hello
I have set up tunnel and its working on ubuntu 11.10 machine. Can visit ipv6.google.com etc.
Problem is when i try to connect PC to that router. I can't ping router->pc and pc->router
I'm using wireless connection on router to get internet access. PC is connected via cable.
PC seems to be getting IP from router but thats all.

My interfaces:
auto lo
iface lo inet loopback
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
endpoint 216.66.80.30
address 2001:470:1f0a:10b::2
netmask 64
up ip -6 route add default dev he-ipv6
down ip-6 route del default dev he-ipv6


My radvd.conf
interface eth0
{
AdvSendAdvert on;
prefix 2001:470:1f0b:10b::/64
{
AdvRouterAddr on;
AdvOnLink on;
AdvAutonomous on;
};
};


ifconfig
Quoteeth0      Link encap:Ethernet  HWaddr 00:26:22:cf:a0:ee  
         inet6 addr: fe80::226:22ff:fecf:a0ee/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:8 errors:0 dropped:0 overruns:0 frame:0
         TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:806 (806.0 B)  TX bytes:5496 (5.4 KB)
         Interrupt:17

he-ipv6   Link encap:IPv6-in-IPv4  
         inet6 addr: fe80::c0a8:109/64 Scope:Link
         inet6 addr: 2001:470:1f0a:10b::2/64 Scope:Global
         UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
         RX packets:1148 errors:0 dropped:0 overruns:0 frame:0
         TX packets:6470 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1032191 (1.0 MB)  TX bytes:648472 (648.4 KB)

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:493 errors:0 dropped:0 overruns:0 frame:0
         TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:85479 (85.4 KB)  TX bytes:85479 (85.4 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:d0:cf:cc  
         inet addr:192.168.1.9  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::21e:65ff:fed0:cfcc/64 Scope:Link
         inet6 addr: 2001:470:1f0b:10b::/64 Scope:Global
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:10882 errors:0 dropped:0 overruns:0 frame:0
         TX packets:14250 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:10293322 (10.2 MB)  TX bytes:2109062 (2.1 MB)

Any ideas? I'm sure i'm missing something

cholzhauer

Since you're using eth0 announce RADVD, you need to give that interface an IP address....use something like 2001:470:1f0b:10b::1/64

aiv

i did
/sbin/ifconfig eth0 inet6 add 2001:470:1f0b:10b::1/64

and while ping i get Address unreachable.

cholzhauer

You did that before or after I mentioned it?  If you did it before, it didn't show on your ifconfig

If you did it after, are you running a firewall?

aiv

I did it after You told me to.
No firewall on Ubuntu.

cholzhauer

Are you able to ping 2001:470:1f0b:10b::1 on your Ubuntu machine? 

Are you getting an IPv6 address on any computer you attach to the network?

aiv

On connected PC ifconfig looks like this:

eth0      Link encap:Ethernet  HWaddr 08:00:27:02:2f:75 
          inet6 addr: 2001:470:1f0b:10b:a00:27ff:fe02:2f75/64 Scope:Global
          inet6 addr: fe80::a00:27ff:fe02:2f75/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:39711 (39.7 KB)  TX bytes:15847 (15.8 KB)

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:305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:305 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:53759 (53.7 KB)  TX bytes:53759 (53.7 KB)



On router i can't ping that address You gave me.

cholzhauer

I can't ping 2001:470:1f0b:10b::1 either, and if that's the IP you're using on Eth0 on your ubuntu machine with no firewall, it should be ping-able

I'm not able to ping 2001:470:1f0a:10b::2 either, which is the address of your side of the tunnel...normally that means that the tunnel isn't working or you are running a firewall

aiv

#8
Tunnel must be working because i can ping easy www.v6.facebook.com
On Ubuntu i didn't install ANY firewall at all. I get WiFi connection from router and on that router i don't have firewall enabled either.

UPDATE
Ok i am able to ping 2001:470:1f0b:10b::1 on my Ubuntu router.

On client Ubuntu i can ping to 2001:470:1f0b:10b::1 and 2001:470:1f0a:10b::2 but still can't visit any websites from client machine.

nickbeee

Do you have ipv6 routing turned on in the kernel?

I'm not familiar with Ubuntu these days but you should check /etc/sysctl.conf has net.ipv6.conf.default.forwarding=1
Nick B.

Tunnelling with [Open|Net|Free]BSD and IOS.
IPv6 courtesy of   HE and   Sixxs.

aiv

I have net.ipv6.conf.all.forwarding=1 in this file enabled.

aiv

I will update thread with new things.
Interfaces
auto lo
iface lo inet loopback
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
endpoint 216.66.80.30
address 2001:470:1f0a:10b::2
netmask 64
up ip -6 route add default dev he-ipv6
down ip -6 route del default dev he-ipv6


radvd.conf
interface eth0
{
AdvSendAdvert on;
prefix 2001:470:1f0b:10b::/64
{
AdvRouterAddr on;
AdvOnLink on;
AdvAutonomous on;
};
};


ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:22:cf:a0:ee 
          inet6 addr: 2001:470:1f0b:10b::1/64 Scope:Global
          inet6 addr: fe80::226:22ff:fecf:a0ee/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:129 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:157828 (157.8 KB)  TX bytes:19876 (19.8 KB)
          Interrupt:17

he-ipv6   Link encap:IPv6-in-IPv4 
          inet6 addr: fe80::c0a8:109/64 Scope:Link
          inet6 addr: 2001:470:1f0a:10b::2/64 Scope:Global
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:2014 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16461 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1427099 (1.4 MB)  TX bytes:1633834 (1.6 MB)

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:1695 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1695 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:281491 (281.4 KB)  TX bytes:281491 (281.4 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:d0:cf:cc 
          inet addr:192.168.1.9  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:65ff:fed0:cfcc/64 Scope:Link
          inet6 addr: 2001:470:1f0b:10b::/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29423 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17653629 (17.6 MB)  TX bytes:4297016 (4.2 MB)


Ping from connected PC to 2001:470:1f0b:10b::1 works
Ping from connected PC to 2001:470:1f0a:10b::2 works

Internet on connected PC doesn't work at all.

cholzhauer

lets see the interface settings (ifconfig or ipconfig) and the routing tables on your connected pc

By the way, the range you're using for RADVD...is that your routed /64 or a /64 out of your /48?

aiv

ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:02:2f:75 
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:470:1f0b:10b:a00:27ff:fe02:2f75/64 Scope:Global
          inet6 addr: fe80::a00:27ff:fe02:2f75/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:198 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28803 (28.8 KB)  TX bytes:18741 (18.7 KB)

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:308 errors:0 dropped:0 overruns:0 frame:0
          TX packets:308 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:54935 (54.9 KB)  TX bytes:54935 (54.9 KB)


route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:470:1f0b:10b::/64         ::                         UAe  256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           fe80::226:22ff:fecf:a0ee   UGDA 1024 0     1 eth0
::/0                           ::                         !n   -1  1    19 lo
::1/128                        ::                         Un   0   1     4 lo
2001:470:1f0b:10b:a00:27ff:fe02:2f75/128 ::                         Un   0   1    30 lo
fe80::a00:27ff:fe02:2f75/128   ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1    19 lo


Both from connected PC.

I use Routed /64 on radvd conf file

aiv

#14
Ping from router to 2001:470:1f0b:10b:a00:27ff:fe02:2f75 (PC address) doesn't work.

Anyone have any idea? I think it is problem on router, maybe i forgot something to add in interfaces?

BTW. i used this tutorial: https://wiki.ubuntu.com/IPv6 to set-up tunnel