環(huán)境為:ECS“經(jīng)典網(wǎng)絡(luò)”類型
步驟:
1. 編輯 /etc/sysctl.conf 文件,將其中三條禁用IPv6的設(shè)置更改為:
net.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 0
2.再運(yùn)行 sysctl -p 的命令,啟用IPv6
3. 轉(zhuǎn)到 tunnelbroker.net 網(wǎng)站,在 Example Configurateions 里選擇 Linux-route2 的配置方法,示例命令如下:
modprobe ipv6ip tunnel add he-ipv6 mode sit remote 216.218.221.6 local 121.43.110.72 ttl 255ip link set he-ipv6 upip addr add 2001:470:18:401::2/64 dev he-ipv6ip route add ::/0 dev he-ipv6ip -f inet6 addr
4. 在境外機(jī)子,使用Ping6及curl測(cè)試IPv6隧道地址訪問,結(jié)果正常:
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持VEVB武林網(wǎng)。
新聞熱點(diǎn)
疑難解答
圖片精選