CentOS 7 同时配置 IPv6 和 IPv4
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=yes
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=cb91c5d9-a1a7-45c9-be41-41e110eb9a2c
DEVICE=eth0
ONBOOT=yes
#地址段 2001:49f0:d02b:4::/64
IPV6ADDR=2001:49f0:d02b:4::2/64
IPV6_DEFAULTGW=2001:49f0:d02b:4::1
#多IP配置,用空格分开
IPV6ADDR_SECONDARIES="2001:49f0:d02b:4::3/64 2001:49f0:d02b:4::4/64"
IPV6_PRIVACY=no
IPADDR=192.168.1.2
PREFIX=24
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=2001:4860:4860::8888