IPV6的应用正在逐渐被提上日程,这里就介绍下如何在centos中绑定IPv6吧,方法如下:
编辑 /etc/sysconfig/network 添加:
NETWORKING_IPV6=yes
接着修改/etc/sysconfig/network-scripts/ifcfg-eth0 添加
IPV6INIT=yes
IPV6ADDR=IPv6-IP-Address
IPV6_DEFAULTGW=IPv6-IP-Gateway-Address
如果是多个ipv6地址,则
IPV6INIT=yes
IPV6ADDR_SECONDARIES="IPv6-IP-Address \
IPv6-IP-Address"
IPV6_DEFAULTGW=IPv6-IP-Gateway-Address
最后重启网络即可
service network restart