centos7配置禁用ipv6

1.修改 /etc/sysctl.conf

增加 net.ipv6.conf.all.disable_ipv6=1

2.编辑/etc/sysconfig/network配置

增加 NETWORKING_IPV6=no

3.编辑/etc/sysconfig/network-scripts/ifcfg-eno16777736

确保IPV6INIT=no

4.关闭ipv6服务(此步骤未操作,直接进行的第5步)

systemctl disable ip6tables.service

5.重启网卡

systemctl restart network

posted @ 2021-04-25 16:17  haomengzhen  阅读(646)  评论(1编辑  收藏  举报