Can someone please share the easy cmd to disable IPV6 please, Thank you Have a good day!
Test with ip a, if IPv6 is running. If yes and you want to disable it temporarily, use sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 to disable it for the current session. It will be back running after reboot. If you want to disable it generally, add the boot parameter disable.ipv6=1.
I may point out;
Which will suggest;
And will add that in NetworkManager you can apply, ex;
/etc/NetworkManager/conf.d/prefer-ipv4-dns.conf
[connection]
ipv4.dns-priority=100
ipv6.dns-priority=200
To quote the docs;
This is and IDEAL solution! Thank you very much and have a good day!! I will use this. I had disabled IP 6 on my DHCP router but this idea is so much better. Thank You!!
Is this adding a new file or editing the exising one? Thanks in Advance.
Sorry to sound lazy I searched and discovered it is a new file and created it. Right ON for you Excellent Solution! Thanks Again
In case it was missed it might be pointed out that the ArchWiki link above outlines a separate suggestion to the NM one written here.
It may be desirable to apply both preferences.
PS.
You were correct that the example prefer-ipv4-dns.conf file would need to be created.
The /etc/gai.conf suggested in the ArchWiki should already exist.