注意上面hostname仍然为你设置的需要添加的的2句为# Generated by SolusVM
NETWORKING=yes
NETWORKING_IPV6=yes
IPV6_AUTOCONF=no
HOSTNAME=ww
NETWORKING_IPV6=yes请将/etc/sysconfig/network-scripts/ifcfg-eth0的内容修改或者添加为如下(此处以IPV6地址"2a01:4f9:2a:399::1949:bc0e"做示范,IPV6_DEFAULTGW不需要修改):
IPV6_AUTOCONF=no
请创建/etc/sysconfig/network-scripts/route6-eth0并将内容保存为:# Generated by SolusVM
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.0.1.158
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFAULTGW=fe80:0000:0000:0000:0000:0000:0000:0001
IPV6ADDR_SECONDARIES="2a01:4f9:2a:399::1949:bc0e/64"
fe80:0000:0000:0000:0000:0000:0000:0001 dev eth0
default via fe80:0000:0000:0000:0000:0000:0000:0001
然后重启网络即可。