Article 6HYKV Disable IPv6

Disable IPv6

by
Smaryus
from LinuxQuestions.org on (#6HYKV)
Hi,
I'm using Ubuntu 22.04. I need to manually disable the IPv6 sometimes, and then later enable it back.
Because of this I'm using Code:sudo sysctl net.ipv6.conf.all.disable_ipv6=0 and Code:sudo sysctl net.ipv6.conf.default.disable_ipv6=0. And it works fine. The problem is that if I connect an USB Ethernet adapter, while IPv6 is disabled, it will have and I can use the IPv6 on that adapter, even though the Code:net.ipv6.conf.all.disable_ipv6=0. To fix this I need to set again Code:net.ipv6.conf.all.disable_ipv6=0.

Anyone knows if this is a feature or a bug?
Thanks
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments