windows
netsh interface ipv6 add address "wan" 2400:a480:f:400:116:255:250:210
netsh interface ipv6 add route ::/0 "wan" 2400:a480:f:400::1
netsh interface ipv6 add dns "wan " 2001:da8:202:10::37
linux配置ipv6
註釋掉/etc/modprobe.d/dist.conf中以下兩行。
alias net-pf-10 off
alias ipv6 off
添加IPv6模塊
modprobe ipv6
配置IPv6地址
/etc/sysconfig/network-scripts/ifcfg-eth0,添加以下三行
IPV6INIT=yes----初始化IPv6地址
IPV6ADDR=2400:a480:f:413:116:255:249:39----填寫服務器IPv6地址。
IPV6_DEFAULTGW=2400:a480:f:413::1----填寫服務器IPv6網關。
添加IPv6 DNS
/etc/resolv.conf
nameserver 2001:da8:202:10::37
重啓網絡服務
service network restart
重啓IP6TABLES 服務
/etc/init.d/ip6tables restart。