You can easily prevent the kernel module from loading by updating the following two files:
- /etc/modprobe.conf - Kernel driver configuration file.
- /etc/sysconfig/network - RHEL / CentOS networking configuration file.
/etc/modprobe.conf
Edit /etc/modprobe.conf, enter:# vi /etc/modprobe.conf
Append the following line:
install ipv6 /bin/trueSave and close the file.
/etc/sysconfig/network
Edit /etc/sysconfig/network, enter:# vi /etc/sysconfig/network
Update / add as follows:
Save and close the file. Restart networking service
NETWORKING_IPV6=no
IPV6INIT=no
# service network restart
# rmmod ipv6
Alternatively, simple reboot the box:
# reboot
Verify IPv6 is disabled, enter:
# lsmod | grep ipv6
# /sbin/ifconfig
No comments:
Post a Comment