本帖最后由 803 于 2023-10-17 14:20 编辑
我已经重写过网口信息了,网卡也绑定了IPV6,我是可以一直用V6访问vps的,但vps只在我重启网络的一小段时间里可以访问ipv6,过段时间又ping不通v6了,必须再次重启网络,然后过一会继续失效
interfaces如下:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 85.***.**.**
gateway 85.**.**.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
up ip addr add 2a12:*********/64 dev eth0
up ip -6 route add 2a12:*********:0000:0000:0000:0001 dev eth0
up ip -6 route add default via 2a12:****0000:0000:0000:0001
----------------------------------
ifconfig信息如下:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 85.113.70.187 netmask 255.255.255.0 broadcast 85.**.**.**
inet6 2a12:****** prefixlen 64 scopeid 0x0<global>
inet6 2403:****** prefixlen 64 scopeid 0x0<global>
inet6 fe80::216:3cff:fefd:c830 prefixlen 64 scopeid 0x20<link>
ether 00:16:3c:fd:c8:30 txqueuelen 1000 (Ethernet)
RX packets 23985911 bytes 2367165872 (2.2 GiB)
RX errors 0 dropped 12806 overruns 0 frame 0
TX packets 848165 bytes 1063917386 (1014.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|