• 欢迎访问趣尚博客、分享互联网、软件、编程、创业、英语、VPS 推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您喜欢我的博客,那么请使用Ctrl+D 收藏吧!

阿里云IPV6设置方法

网络技术 qushang 4年前 (2017-02-28) 1286次浏览
验证是否支持IP V6
管理地址
阿里云香港服务器 IP
47.89.53.81
创建隧道
IPv6 Tunnel Endpoints
Server IPv4 Address:74.82.46.6
Server IPv6 Address:2001:470:23:943::1/64
Client IPv4 Address:47.89.53.81
Client IPv6 Address:2001:470:23:943::2/64
Routed IPv6 Prefixes
Routed /64:2001:470:24:943::/64
Routed /48:Assign /48
DNS Resolvers
Anycast IPv6 Caching Nameserver:2001:470:20::2
Anycast IPv4 Caching Nameserver:
core1.fmt2.he.net> traceroute 119.129.119.83
Target119.129.119.83
Hop Start1
Hop End30
Hop
Packet 1
Packet 2
Packet 3
Hostname
10.323 ms0.415 ms0.470 ms10ge6-20.core4.fmt2.he.net (64.71.148.109)
28.959 ms9.023 ms0.234 ms10ge2-1.core1.fmt2.he.net (72.52.92.10)
30.613 ms11.894 ms3.921 ms10ge7-9.core1.sjc2.he.net (184.105.222.14) 10ge7-1.core1.sjc2.he.net (72.52.92.74)
43.293 ms0.995 ms3.279 mschinanet-backbone-as4134.10gigabitethernet13-14.core1.sjc2.he.net (64.62.151.102)
51.257 ms1.281 ms1.265 ms202.97.50.73
6161.039 ms160.831 ms160.814 ms202.97.51.157
7153.252 ms**202.97.60.77
8157.055 ms171.056 ms170.062 ms202.97.33.169 202.97.35.201 202.97.33.217
9166.647 ms166.648 ms166.941 ms61.144.3.9
10161.346 ms*161.320 ms218.19.193.174
11167.343 ms167.796 ms168.181 ms119.129.119.83
I sent a demand for the development of goopay payment to contact@inspius.com
Server:        dns64.6box.cn
Address:    222.28.155.25#53
Non-authoritative answer:
Address: 47.89.53.81
个人建议,您用设置不同的解析记录来区分ipv4和ipv6的记录。

ipv6.yourdomain.com 解析到AAAA,http://www.yourdomain.com 解析普通的A记录。这俩个主机名同时在Web里绑定。这样,是否会好些?
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:470:23:943::2
        netmask 64
        endpoint 74.82.46.6
        local 47.89.53.81
        ttl 255
        gateway 2001:470:23:943::1
vim /etc/network/interfaces
原始信息
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 47.89.53.81
netmask 255.255.252.0
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 47.89.55.247 dev eth1
auto eth0
iface eth0 inet static
address 10.25.155.197
netmask 255.255.252.0
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 10.25.155.247 dev eth0
up route add -net 100.64.0.0 netmask 255.192.0.0 gw 10.25.155.247 dev eth0
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.25.155.247 dev eth0
原始配置 net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
参考
修改网卡配置
vim /etc/network/interface
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:470:23:943::2
        netmask 64
        endpoint 74.82.46.6
        local 47.89.53.81
        ttl 255
        gateway 2001:470:23:943::1
auto he-ipv6

iface he-ipv6 inet6 v4tunnel

address 2001:470:23:943::2

netmask 64

remote 74.82.46.6 #远程ip地址
local 47.89.53.81 #阿里云ip地址

endpoint any
ttl 255

gateway 2001:470:23:943::1

up ip -6 route add 2000::/3 via ::216.xxx.xxx.xxx dev he-ipv6
up ip -6 addr add 2001:470:xxx:xxx::1:1/128 dev he-ipv6
up ip -6 addr add 2001:470:xxx:xxx::2:1/128 dev he-ipv6

down ip -6 route flush dev he-ipv6
Windows 参考
ubuntu参考
让阿里云支持ipv6
被拒参考
IPV6 VPN
IPV6 检测

极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:阿里云IPV6设置方法
喜欢 (0)
[399397742@qq.com]
分享 (0)