centOS添加ipv6支持(仅限已分配ipv6地址和网关)
https://blog.csdn.net/cnmilan/article/details/8493977
CentOS 环境下 IPv6设置方法:
1)/etc/sysconfig/network 打开/关闭网络配置
添加:
NETWORKING_IPV6=yes #打开IPv6
# IPV6_AUTOCONF=no #不自动获取地址,即:设置"no”,不必需
2) /etc/sysconfig/network-scripts/ifcfg-eth0 配置IP/IPv6地址,网关等
添加:
IPV6INIT=yes #网卡初始化IPv6协议栈
IPV6ADDR=2001:250:4000:2000::53 #配置IPv6地址
IPV6_DEFAULTGW=2001:250:4000:2000::1 #配置IPv6网关
3) service network restart 重启网络服务,使配置生效
测试:
ping6 ipv6.google.com
相关推荐
jszy 2020-05-15
移动互联技术酒歌 2020-04-03
88236637 2020-02-18
zmjzhangmj 2020-02-18
chwzmx 2019-12-10
kenson 2019-12-09
LychieFan 2008-04-30
cslyj 2009-02-05
寒星孤照 2008-12-20
algorithmfish 2019-10-09
zccheu 2019-09-07
紫色飞猪 2019-09-06
88580090 2018-05-23
88971730 2018-05-23
Hamlee 2013-01-05
85296630 2016-12-05