IPv6 Configuration on Ubuntu Linux [HowTo]

, , Leave a comment

We have Ubuntu 8.10 Intrepid Ibex Server Edition, coming out to the network via PPP and working with the intranet IP through NAT.
Task: to give him a real, white IPv6-address, and make its IPv6-based router, which will provide for the transfer of packets between IPv6-world and local area network.

For a start we need to get the IPv6 address. ervice http://go6.net (so-called “broker”) will help us, at first you should register. Go6 will give us more than one address IPv6, but a whole subnet.
In order to release the IPv6 packets into the world go6 provide us IPv4-tunnel. After registeration you will get message with Username, Password and Gateway6 Address.

Now lets start server configuration.

By default, in ubuntu-server IPv6 support is already enabled. In other case you can enable by command:

$ sudo modprobe ipv6 

We will need to install just a one package:

$ sudo apt-get install tspc 

After installation, edit the configuration:

$ sudo nano /etc/tsp/tspc.conf 

Here is my configuration (the result of the command sudo cat /etc/tsp/tspc.conf | grep-v “#”)

userid=xxxxxx <== copy="" username="" from="" email="" br=""> passwd=******** <== copy="" password="" from="" email="" br=""> template=setup
server=broker.freenet6.net <== address="" br=""> retry_delay=30
if_prefix=eth0 <== local="" network="" card="" codecitation="" p="">

Ok, it seems all set – now you can check:

 $sudo /etc/init.d/restart tspc 
$ifconfig eth0 

If you saw there inet6 addr, starting on something other than the fe … (Example 2001:5 c0 …), then everything is ok. Otherwise – read and repeat all over again. Another good way to test – ping any IPv6-enabled site. For example ipv6.google.com. To do this, instead of “normal” ping, we use a special version for IPv6:

 $ ping6 ipv6.google.com
PING ipv6.google.com (2001:4860:0:1001:: 68) 56 data bytes 
64 bytes from 2001:4860: 0:1001:: 68: icmp_seq = 1 ttl = 54 time = 444 ms

Leave a Reply