未設定之前應該連不上:Google IPv6 首頁
在 IPv6 Forum Taiwan 左邊也會顯示您使用 IPv4 連線。
1.中研院 IPv6 Tunnel Broker 申請帳號
申請完後,會收到一封類似這樣的 mail
User account information to be used on the Migration Broker:User id: XXXXXXXPassword: YYYYYYYEmail address: XXXXXXXX@gmail.com2.接著下載安裝 TSPC (Tunnel Setup Protocol Client)
Use these values with TSP client to get IPv6 connectivity.
<To cut and paste to tspc.conf>#userid=XXXXXXX
passwd=YYYYYYY
#<End cut and paste>
$ tar zxvf tspc-2.1.1-src.tgz
$ cd tspc2
$ make all target=linux
$ sudo make install target=linux installdir=/opt/tsp
3. 設定 TSPC
$ sudo vi /opt/tsp/bin/tspc.conf
將裡面的 userid 和 passwd 改成你申請的,另外 server 也要改:
server=tb2.ipv6.ascc.net
4.執行 TSPC
$ sudo /opt/tsp/bin/tspc -vvv -f /opt/tsp/bin/tspc.conf
連線成功會自動送到背景 daemon,用 ifconfig 可以看到新增了一個 tun
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00檢查 IPv6 routing table 可以用 route -6,不過個人偏好 ip -f inet6 route
inet6 addr: (your IPv6 address)/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:303 errors:0 dropped:0 overruns:0 frame:0
TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:166407 (162.5 KiB) TX bytes:71068 (69.4 KiB)
(your IPv6 address) dev tun proto kernel metric 256 mtu 1280 rtt 0.00ms rttvar 0.00ms cwnd 102000::/3 dev tun metric 1 fe80::/64 dev wlan0 proto kernel metric 256 fe80::/64 dev tun proto kernel metric 256 default dev tun metric 1
再打開一開始說的兩個網頁,應該就會有所不同!
