ubuntu

How to temporarily disable IPv6 on Ubuntu? You need to diagnose a communication issue or track down a network problem?

IPv6 provides solution of the IPv4 address exhaustion as it’s offering a much larger addressing space.
However, there are few instances in which IPv6 is casing network problems.
Some hardware doesn’t utilize it or take any advantages of IPv6 communications protocol. There are instances in which the temporary and easy solution is to (permanently) disable it. It can be easily re-enabled when it needed again.

In case you need to disable it, either only for troubleshooting or permanently, you can use the following terminal commands.

First of all, let’s verify the current status of your IPv6 communications protocol.

If this command returns 0 that means IPv6 is enabled in your system.

Scroll down to the end of the file and insert these three lines below.

Save and quit your editor, then reboot your system.

Verifying the status of IPv6.

This command should return 1 meaning you successfully disabled IPv6 communications protocol.

To re-enable IPv6 just simple delete or comment out those 3 lines above.

You can use

to read values from file, it should return:

There are some additional commands if this method does not work.

Disable the network manager

Get the IP address from the server using:

List of IP address

Removing all IP information from an interface (enp2s1 in my case)

Assign the first ip addresses like this:

You can repeat for other IP addresses.
You can add the default route using:

List of network devices:

Restart the networking.service

or

Ipv6 test is a free online service to diagnose connection problems: http://ipv6-test.com/

[Linux]Install WordPress on Ubuntu server

[Linux] Required packages to fix (Missing GL/gl.h) error

The following additional packages required on Ubuntu in order to be able successfully compile qt projects without (Missing GL/gl.h) error message.