Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: aiv on March 01, 2012, 07:02:51 AM

Title: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 07:02:51 AM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: cholzhauer on March 01, 2012, 07:09:27 AM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 07:39:33 AM
i did
/sbin/ifconfig eth0 inet6 add 2001:470:1f0b:10b::1/64

and while ping i get Address unreachable.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: cholzhauer on March 01, 2012, 07:41:16 AM
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?
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 07:43:22 AM
I did it after You told me to.
No firewall on Ubuntu.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: cholzhauer on March 01, 2012, 07:45:10 AM
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?
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 07:57:09 AM
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.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: cholzhauer on March 01, 2012, 08:16:23 AM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 08:22:34 AM
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.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: nickbeee on March 01, 2012, 10:29:07 AM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 10:37:52 AM
I have net.ipv6.conf.all.forwarding=1 in this file enabled.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 12:33:39 PM
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.
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: cholzhauer on March 01, 2012, 12:41:41 PM
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?
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 01, 2012, 01:21:52 PM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 02, 2012, 03:39:46 AM
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
Title: Re: IPv6 Router on Ubuntu + radvd = problem
Post by: aiv on March 02, 2012, 02:14:41 PM
Sorry for 3rd post in a row.
Ping from router on connected PC works.
Ping from connected PC to 2001:470:1f0b:10b::1 works
Ping from connected PC to 2001:470:1f0a:10b::2 works
Ping from connected PC to 2001:470:1f0a:10b::1 works (!!!)

I'm still have no internet connection on connected PC.

route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:470:1f0a:10b::/64         ::                         Un   256 0     0 he-ipv6
2001:470:1f0b:10b::/64         ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 wlan0
fe80::/64                      ::                         Un   256 0     0 he-ipv6
::/0                           ::                         U    1024 0     0 he-ipv6
::/0                           ::                         !n   -1  1  3935 lo
::1/128                        ::                         Un   0   1    10 lo
2001:470:1f0a:10b::/128        ::                         Un   0   1     0 lo
2001:470:1f0a:10b::2/128       ::                         Un   0   1    43 lo
2001:470:1f0b:10b::/128        ::                         Un   0   1     0 lo
2001:470:1f0b:10b::1/128       ::                         Un   0   1    19 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::c0a8:109/128             ::                         Un   0   1     0 lo
fe80::21e:65ff:fed0:cfcc/128   ::                         Un   0   1     0 lo
fe80::226:22ff:fecf:a0ee/128   ::                         Un   0   1    40 lo
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 wlan0
ff00::/8                       ::                         U    256 0     0 he-ipv6
::/0                           ::                         !n   -1  1  3935 lo


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:2529 errors:0 dropped:0 overruns:0 frame:0
         TX packets:233 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:253363 (253.3 KB)  TX bytes:33063 (33.0 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:45 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1895 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:16108 (16.1 KB)  TX bytes:155572 (155.5 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:300 errors:0 dropped:0 overruns:0 frame:0
         TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:53517 (53.5 KB)  TX bytes:53517 (53.5 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
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:1892 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3797 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1656037 (1.6 MB)  TX bytes:613755 (613.7 KB)



Thanks for help!