Ubuntu – Disabling IPv4 and use only IPv6 in Ubuntu

ipv4ipv6Ubuntu

I'm doing some IPv6 related testing, and I wanted to fully disable my IPv4 for the tests on Linux, but couldn't find any easy place to do this. How do I make my IPv6 the only active one?

Best Answer

If you are using Network Manager, click on in and select 'Edit Connections'. Then edit the default connection (or the one you are using) and look under the 'IPv4 Settings' tab. There should be a dropdown for method where you can select 'Disabled'.

Remember to activate it when you're finished testing.

If you're not using Network Manager, this command should do the trick:

ip address del <address>/<netmask> dev <device>

For example:

ip address del 10.0.0.2/24 dev eth0
Related Topic