Use the sysctl command to disable ipv6 on Linux easily. Just type the two commands listed below, both of them requires super user privilege.