让你的vps支持IPV6(HE.NET),使用IPV6 TunnelBroker

 
 
#=============================================================================
   # 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内具体地址,请自己替换.
    
    
   让你的vps支持IPV6(HE.NET),使用IPV6 TunnelBroker
   howto:
   a.Register HE IPV6 Tunnel Broker
   b.Create Regular Tunnel
   c.input your vps ipv4 address
   d.you got the ipv6 tunnel
   e.Check the Example Comfigurations
   f.select Linux-rout2
  g.Copy and paste the following commands into a command window:
  h.restart your webserver
  i.添加ipv6开机启动 update-rc.d ipv6 defaults 53
       
       
  FileName:ipv6
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

猜你喜欢

转载自luoshu.iteye.com/blog/1103122