Skip to content

Commit

Permalink
update OS X ISATAP method, provided by @xiaoxiaopu in #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Mar 25, 2016
1 parent be687fd commit c7a89a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions isatap.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ fi
if [ -n "$LOCAL_IP" ]; then
ifconfig gif0 create
ifconfig gif0 tunnel $LOCAL_IP 166.111.21.1
ifconfig gif0 inet6 2402:f000:1:1501:200:5efe:$LOCAL_IP prefixlen 64
route add -inet6 default 2402:f000:1:1501::1
ipconfig set gif0 MANUAL-V6 2402:f000:1:1501:200:5efe:$LOCAL_IP 64
route add -inet6 ::/0 -interface gif0
fi
```

Expand All @@ -140,8 +140,8 @@ sudo chmod +x /usr/local/bin/thu6tunnel.sh
IP4="我的IPv4地址" # 这里不能有空格
sudo ifconfig gif0 create
sudo ifconfig gif0 tunnel $IP4 166.111.21.1
sudo ifconfig gif0 inet6 2402:f000:1:1501:200:5efe:$IP4 prefixlen 64
sudo route add -inet6 default 2402:f000:1:1501::1
sudo ipconfig set gif0 MANUAL-V6 2402:f000:1:1501:200:5efe:$LOCAL_IP 64
sudo route add -inet6 ::/0 -interface gif0
```

这样 ISATAP就配置好了!
Expand All @@ -160,4 +160,3 @@ ping6 ipv6.tsinghua.edu.cn
```

验证接入。

0 comments on commit c7a89a8

Please sign in to comment.