天天看点

ipv6

添加IPV6地址 

删除原有连接 

nmcli connection add aon-name eth0 ifname eth0 type ethernet ip6 2016::15/48 

如果只想要ipv6,要将ipv4从dhcp改为静态 

systemctl restart network 

或 

vim /etc/sysconfig/network-scripts/ifcfg-eth0 

DEVICE=eth0 

ONBOOT=yes 

BOOTPROTO=none 

IPV6INIT=yes 

IPV6_AUTOCONF=no 

IPV6ADDR=2016::15/48 

systemctl stop NetworkManager 

继续阅读