Created
June 23, 2011 20:25
-
-
Save luoshu/1043545 to your computer and use it in GitHub Desktop.
让你的vps支持IPV6(HE.NET),使用IPV6 TunnelBroker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#============================================================================= | |
# FileName: ipv6 | |
# Desc: 说明文档 | |
# Author: luoshu | |
# Email: [email protected] | |
# HomePage: http://www.luoshu.me | |
# Version: 0.0.1 | |
# LastChange: 2011-06-24 04:23:29 | |
# History: | |
#============================================================================= | |
此shell仅支持 Ubuntu-vps-lamp-server | |
ipv6内具体地址,请自己替换. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 #! /bin/sh | |
2 modprobe ipv6 | |
3 ip tunnel add he-ipv6 mode sit remote 66.220.18.42 local 69.197.186.142 ttl 255 | |
4 ip link set he-ipv6 up | |
5 ip addr add 2001:470:c:4b4::2/64 dev he-ipv6 | |
6 ip route add ::/0 dev he-ipv6 | |
7 ip -f inet6 addr | |
8 /etc/init.d/apache2 restart | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 让你的vps支持IPV6(HE.NET),使用IPV6 TunnelBroker | |
2 howto: | |
3 a.Register HE IPV6 Tunnel Broker | |
4 b.Create Regular Tunnel | |
5 c.input your vps ipv4 address | |
6 d.you got the ipv6 tunnel | |
7 e.Check the Example Comfigurations | |
8 f.select Linux-rout2 | |
9 g.Copy and paste the following commands into a command window: | |
10 h.restart your webserver | |
11 i.添加ipv6开机启动 update-rc.d ipv6 defaults 53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment