centos6禁用ipv6支持提高网络效率
程序员文章站
2024-02-12 14:18:10
...
cd /etc/modprobe.d
首先进入modprobe.d目录sudo touch disable-ipv6.conf
然后在该目录下创建disable-ipv6.conf文件
sudo vi disable-ipv6.conf
编辑disable-ipv6.conf文件
install ipv6 /bin/true
加入install ipv6 /bin/true这一行内容
sudo service network restart
重启网络服务
ifconfig
再次用ifconfig命令查看网卡信息发信已经没有inet6那一项