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

Problems setting up a IPv6-Tunnel on Ubuntu 9.04 VPS

Started by ipv6network, April 24, 2010, 03:46:33 AM

Previous topic - Next topic

ipv6network

Hello everyone,
I've problems setting up a IPv6-Tunnel on my Ubuntu 9.04 Xen based VPS. I've set up the tunnel by adding the following lines to /etc/network/interfaces: (I want to use 3 IP's and he.net-RDNS!)

Quoteauto he-ipv6
iface he-ipv6 inet6 v4tunnel
   address 2001:470:1f0a:c5a::2
   netmask 64
   endpoint 216.66.80.30
   local 84.200.12.100
   up ip route add ::/0 dev he-ipv6 metric 1
   #post-up sysctl -w net.ipv6.conf.all.forwarding=1
   up ip -6 addr add 2001:470:1f0b:c5a::1:1/128 dev he-ipv6
   up ip -6 addr add 2001:470:1f0b:c5a::2:1/128 dev he-ipv6
   up ip -6 addr add 2001:470:1f0b:c5a::3:1/128 dev he-ipv6

After a server restart I tried a traceroute6 to six.heise.de, but I stops after one hop (2001:470:1f0b:c5a::3:1)!

My Tunnel Details
QuoteClient IPv4 address: 84.200.12.100
Client IPv6 address: 2001:470:1f0b:c5a::2/64
Server IPv4 address: 216.66.80.30
Server IPv6 address: 2001:470:1f0b:c5a::1/64
Routed /48:    Not allocated
Routed /64:    2001:470:1f0b:c5a::/64
Anycasted IPv6 Caching Nameserver:   2001:470:20::2
Anycasted IPv4 Caching Nameserver:   74.82.42.42

Thanks for your help!

Simon

jimb

Quote from: ipv6network on April 24, 2010, 03:46:33 AM
Hello everyone,
I've problems setting up a IPv6-Tunnel on my Ubuntu 9.04 Xen based VPS. I've set up the tunnel by adding the following lines to /etc/network/interfaces: (I want to use 3 IP's and he.net-RDNS!)

Quoteauto he-ipv6
iface he-ipv6 inet6 v4tunnel
   address 2001:470:1f0a:c5a::2
   netmask 64
   endpoint 216.66.80.30
   local 84.200.12.100
   up ip route add ::/0 dev he-ipv6 metric 1
   #post-up sysctl -w net.ipv6.conf.all.forwarding=1
   up ip -6 addr add 2001:470:1f0b:c5a::1:1/128 dev he-ipv6
   up ip -6 addr add 2001:470:1f0b:c5a::2:1/128 dev he-ipv6
   up ip -6 addr add 2001:470:1f0b:c5a::3:1/128 dev he-ipv6

After a server restart I tried a traceroute6 to six.heise.de, but I stops after one hop (2001:470:1f0b:c5a::3:1)!

My Tunnel Details
QuoteClient IPv4 address: 84.200.12.100
Client IPv6 address: 2001:470:1f0b:c5a::2/64
Server IPv4 address: 216.66.80.30
Server IPv6 address: 2001:470:1f0b:c5a::1/64
Routed /48:    Not allocated
Routed /64:    2001:470:1f0b:c5a::/64
Anycasted IPv6 Caching Nameserver:   2001:470:20::2
Anycasted IPv4 Caching Nameserver:   74.82.42.42

Thanks for your help!

Simon

You're using the wrong addresses.  The he-ipv6 interface must use the IP address "2001:470:1f0a:c5a::2/64".  You need to put the routed /64 addresses (2001:470:1f0b:c5a::/64) on a different interface, not on the tunnel interface.  And they're /64s, not 128s.  You can just add them to your eth0 interface.

(BTW I don't think you pasted the tunnel info correctly ... the routed /64 and tunnel v6s are the same ... which is wrong).

Do something like this:

auto he-ipv6
iface he-ipv6 inet6 v4tunnel
   address 2001:470:1f0a:c5a::2
   netmask 64
   endpoint 216.66.80.30
   local 84.200.12.100
   gateway 2001:470:1f0a:c5a::1
   post-up sysctl -w net.ipv6.conf.all.forwarding=1


auto eth0
iface eth0 inet6 static
   address 2001:470:1f0b:c5a::1:1
   netmask 64
   address 2001:470:1f0b:c5a::2:1
   netmask 64
   address 2001:470:1f0b:c5a::3:1
   netmask 64


(not sure if that's how you do multiple addresses in debian/ubuntu interfaces file or not, but that's the general idea).