vps配置ipv6地址

1.修改配置文件

vim /etc/network/interfaces

2.添加以下内容

auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:470:c:1af0::2
        netmask 64
        endpoint 66.220.18.42
        local 108.174.250.156
        ttl 255
        gateway 2001:470:c:1af0::1

3.重启网络

systemctl restart networking

猜你喜欢

转载自www.cnblogs.com/jiangwenwen1/p/10801086.html