[Linux] 使用 hinet IPv6 的服務

這邊使用的是 Hinet Tunnel Broker 的服務.
不過 Hinet 只有提供 Windows 的範例, 那 Linux 呢?

以 ubuntu 為例, 只要安裝 gw6c 這個套件(Go6 client)
[BASH]
# sudo apt-get install gw6c

因為會自動啟動 gw6c, 所以先暫停
# /etc/init.d/gw6c stop
[/BASH]

編輯 gw6c configure file.
[BASH]
$ vim /etc//etc/gw6c/gw6c.conf
[/BASH]

找到 server= 改成
[TEXT]
server=203.74.21.89
[/TEXT]

再重新啟動 gw6c, 這樣就可以了
[BASH]
# /etc/init.d/gw6c start
# ifconfig tun
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:b020:0:71::50/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:66341 (66.3 KB) TX bytes:12783 (12.7 KB)

root@rl-desktop:/etc/gw6c# ping6 ipv6.google.com
PING ipv6.google.com(2404:6800:8003::68) 56 data bytes
64 bytes from 2404:6800:8003::68: icmp_seq=1 ttl=53 time=30.0 ms
— ipv6.google.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 30.021/30.021/30.021/0.000 ms
[/BASH]

超簡單的吧!

On this day..

Comments

comments

Related Posts
  1. Using Google Chrome Google Chrome 5.0.375.125 on Windows Windows XP

    國內幾個 isp 也都有,理論上把 server ip 換掉就好了

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>