Sometimes there could be a situation where you see that IPv6 is not in use, in that case its wise to disable it like to disable or remove other not in use services to make sure you have a clean system with only needed services –
- make sure you have a backup of your running VM/Configs
- login as root user
- create /etc/modprobe.d/ipv6.conf
- echo “options ipv6 disable=1” >> /etc/modprobe.d/ipv6.conf
- Stop and disable the IPv6 service
- service stop ip6tables
- chkconfig ip6tables off
- Reboot your server
- init 6 or reboot
Disable IPv6 on Debian or Ubuntu
- make sure you have a backup of your running VM/Configs
- login as root user
- vi /etc/modprobe.d/aliases
- find the line alias net-pf-10 ipv6
- replace this line net-pf-10 off
- alias ipv6 off
- Reboot your server
- init 6 or reboot