There are some valid reasons to temporarily disable IPv6 in Linux for testing, debugging, and other purposes. Let's see how to disable or enable IPv6 in #Linux temporarily using the CLI https://www.cyberciti.biz/faq/how-to-temporarily-disable-ipv6-in-linux/
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Sunday, 19-May-2024 05:27:23 JST nixCraft 🐧 -
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Sunday, 19-May-2024 07:00:17 JST nixCraft 🐧 @nyx net.ipv6.conf.default.disable_ipv6 is used to set on any interfaces that are created after the change.
net.ipv6.conf.all.disable_ipv6 set all interfaces, including both existing and newly created ones
If you want to disable IPv6 completely and permanently , you must set both parameters to 1.
-
nyx (nyx@im-in.space)'s status on Sunday, 19-May-2024 07:00:18 JST nyx @nixCraft
I'm a bit puzzled. If I disable/enable v6 for "all", why is it necessary to also do the same for "default"?(referring to:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0 ) -
planetf1 (planetf1@mastodon.social)'s status on Sunday, 19-May-2024 17:14:57 JST planetf1 @nixCraft Agreed good to know. I do get frustrated when so many see disabling v6 as the answer to all their problems… And still amazing how many sites/ ISPs (at least for home users) don’t support yet. For me proper dual-stack is non-negotiable in isp choice!
-