tspc: Debian / Ubuntu Linux Configure IPv6 Tunnel
Q. How do I configure IPv6 Tunnel under Ubuntu Linux? I'd like to browse and use IPv6 utilities under Ubuntu but my ISP is not ready with IPv6 native transport. How do I browser IPv6 ready websites using IPv4?
A. You can easily set IPv6 tunnel under Debian or Ubuntu Linux using tspc (tunnel setup protocol client). tspc provides a mean to configure a tunnel obtained from a tunnel server which is compliant to the tunnel setup protocol (TSP). tspc will connect to a tunnel server and request a tunnel according to the specifications inside the configuration file. As a background process, it will then monitor the state of the tunnel. In the event of a timeout, tspc will reestablish a new tunnel. tspc allows you to connect and browse IPv6 network using IPv4.
Register Free at Freenet6
You can get free IPv6 access through Freenet6. Visit Freenet6 and register yourself to obtain username and password.
Install tspc client
Open terminal and type the following command:
$ sudo apt-get install tspc
OR
# apt-get install tspc
Configure tspc
The default configuration file is located at /etc/tsp/tspc.conf. Open file using a text editor, enter:
# vi /etc/tsp/tspc.conf
You need to provide username, password and hostname registered at Freenet6 (see your tunnel broker registration email). For example,
- userid - vivek
- passwd - myPassWord
- server - broker.freenet6.net
Search, userid, server, and passwd variable in file and set them as follows:
userid=your-name
server=broker.freenet6.net
passwd=your-password
Save and close the file. Restart tspc service, enter
$ sudo /etc/init.d/tspc restart
Run ifconfig command to see your tunnel IPv6 address, enter:
$ /sbin/ifconfig tun
Sample output:
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:8fff:fffe::a68d/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:656 (656.0 b) TX bytes:240 (240.0 b)
Test IPv6 connectivity, enter:
$ ping6 ipv6.google.com
Sample output:
PING ipv6.google.com(2001:4860:0:2001::68) 56 data bytes 64 bytes from 2001:4860:0:2001::68: icmp_seq=1 ttl=55 time=501 ms 64 bytes from 2001:4860:0:2001::68: icmp_seq=2 ttl=55 time=453 ms 64 bytes from 2001:4860:0:2001::68: icmp_seq=3 ttl=55 time=437 ms 64 bytes from 2001:4860:0:2001::68: icmp_seq=4 ttl=55 time=473 ms --- ipv6.google.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2998ms rtt min/avg/max/mdev = 437.077/466.544/501.926/24.149 ms
View Google.com IPv6 Address, enter:
$ host ipv6.google.com
Sample output:
ipv6.google.com is an alias for ipv6.l.google.com. ipv6.l.google.com has IPv6 address 2001:4860:0:2001::68
Now you can browse any IPv6 configured website or use all IPv6 utilities such as ping6, tracerout6 without a problem.
How do I stop tunnel?
Open the terminal and type the command, enter:
$ sudo /etc/init.d/tspc stop
$ /sbin/ifconfig
How do I start tunnel?
Open the terminal and type the command, enter:
$ sudo /etc/init.d/tspc start
$ /sbin/ifconfig
$ ping6 ipv6.google.com
- FreeBSD Configure IPv6 Networking / Static IP Address
- tspc: Debian / Ubuntu Linux Configure IPv6 Tunnel
- How To Test Linux Operating System for IPv6 Networking Support
- How To Specify and Browse Website Using IPv6 Address With Firefox, Opera Web Browser
- How To Ping IPv6 Address Using Windows Vista / Xp or Windows Server 2008 / 2003 Server
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- How To Specify and Browse Website Using IPv6 Address With Firefox, Opera Web Browser
- How To Ping IPv6 Address Using Windows Vista / Xp or Windows Server 2008 / 2003 Server
- How To Test Linux Operating System for IPv6 Networking Support
- Debian / Ubuntu Linux Install tracepath / traceroute6 / tracepath6 commands
- Ping IPv6 IP Address With ping6 Command
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /etc/init.d/tspc, /etc/tsp/tspc.conf, broker registration, internet protocol version 6 ipv6, ipv4 and ipv6, ipv6 deployment, ipv6 in linux, ipv6 network, ipv6 on linux, ipv6 ping6, ipv6 protocol, ipv6 transition, ipv6 tunnel broker, protocol client, tspc, tspc command, tunnel broker, tunnel server, Ubuntu Linux



July 9th, 2008 at 9:13 pm
This was one of the more interesting tech articles/howtos i’ve seen on newsforge lately. Resolving the Google address somehow felt very exciting!
And I didn’t know it was THAT easy to setup IPv6. (- bad experiences with the weird infos on sixxs.net..)
July 9th, 2008 at 9:47 pm
sixxs.net sucks, I applied to them 2 months ago and they said I was bot and rejected my application. Today I tried tspc and I’ve got online with Ipv6 immediately.
Thanks for sharing info.
July 10th, 2008 at 9:49 am
I have been researching Ipv6 on and off for a while. This is beyond doubt the most comprehensive and easiest-to-follow how-to I have come across. Well done!
July 17th, 2008 at 7:35 am
IPv6 is ace. If like me you want IPv6 for all the devices in your home you will also need to run radvd on your router. Tscp will even update the radvd conf file with your IPv6 subnet (if you don’t get a static one).
August 2nd, 2008 at 6:14 pm
can’t get it to work … download, install and config works fine but on “/sbin/ifconfig tun” I get
tun: error fetching interface information: Device not found
September 12th, 2008 (5 weeks ago) at 5:32 am
@Matthias - I (and other people) have had the same thing. It doesn’t seem like something to worry about since it worked just fine. But I dunno, I could be wrong