Disable ipv6 on a single interface or all interfaces
1. Append below lines in /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1
NOTE : To disable IPv6 on a single interface replace “all” on the first line with “eth0” or the name of the selected ethernet interface
2. To make the settings effective, execute :
# sysctl -p
No reboot is needed