Disabling IPv6

Internet Protocol version 6 (IPv6) is the latest version of the Internet Protocol (IP), the communications protocol that provides an identification and location system for computers on networks and routes traffic across the Internet. Its use is not yet widespread in some environments and if you install an up-to-date version of the operating system you will probably find IPv6 enabled by default. If you wish to disable IPv6 and use IPv4 instead you can do this in two ways:

Option 1

At the Pi command line, enter the following command.

sudo nano /etc/modules

Look for a line containing ipv6 and either delete it or comment it out using a hash (#) and save your changes. Reboot and you are finished.

Option 2

At the Pi command line, enter the following command.

sudo nano /boot/cmdline.txt

Type ipv6.disable=1 at the end of the line of set up parameters and save your changes. Reboot and you are finished.