CentOS 6 禁止IPv6

創建禁止啓動ipv6模塊

vi /etc/modprobe.d/disable-ipv6.conf

copy內容

install ipv6 /bin/true


網絡標註禁用ipv6

cat <<EOF>>/etc/sysconfig/network

IPV6INIT=no

EOF


ipv6模塊應該是沒有加載的

lsmod | grep ipv6

image

image


查ipv6 地址應該是沒有的

ifconfig | grep -i inet6

image

image

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章