CentOS IPv6设置
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
PING ipv6.google.com(2404:6800:8002::69) 56 data bytes
64 bytes from 2404:6800:8002::69: icmp_seq=0 ttl=50 time=99.4 ms
64 bytes from 2404:6800:8002::69: icmp_seq=1 ttl=50 time=99.2 ms
64 bytes from 2404:6800:8002::69: icmp_seq=2 ttl=50 time=98.1 ms
相关推荐
jszy 2020-05-15
移动互联技术酒歌 2020-04-03
88236637 2020-02-18
zmjzhangmj 2020-02-18
chwzmx 2019-12-10
kenson 2019-12-09
大老张学编程 2019-11-30
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