Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
Home Manual Network IPv6 Configuration on Ubuntu Linux
IPv6 Configuration on Ubuntu Linux PDF Print E-mail
Monday, 26 July 2010 11:26
AddThis Social Bookmark Button

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 "#")


auth_method=any
client_v4=auto
userid=xxxxxx <== copy USERNAME from email
passwd=******** <== copy PASSWORD from email
template=setup
server=broker.freenet6.net <== address
retry_delay=30
tunnel_mode=v6anyv4
if_tunnel_v6v4=sit1
if_tunnel_v6udpv4=tun
proxy_client=no
keepalive=yes
keepalive_interval=30
syslog_facility=DAEMON
syslog_level=INFO
host_type=router
prefixlen=64
if_prefix=eth0 <== Local Network card

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
 

Add comment


Security code
Refresh

Useful Links

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)