Introduction
Ever needed to disable IPv6 on a single interface?
Solution
All that’s needed is a simple line adding to the appropriate conf file
sudo vim /etc/sysctl.conf
Add the following line to the bottom of the file obviously substituting <interface> for your interface.
# Disable IPv6 net.ipv6.conf.<interface>.disable_ipv6 = 1
Ubuntu Disable IPv6 on a Single Interface