3

I'm trying to disable IPv4 on a system I'm working on to check how a project interacts over purely IPv6. Does anyone know the following:

  • How to disable IPv4 (and verify that it is indeed disabled)

  • Check that IPv6 is enabled

anonymous2
  • 4,268
  • 7
  • 33
  • 61
sreya
  • 151
  • 3
  • You can disable it in NM. – Pilot6 Feb 03 '17 at 17:45
  • @Pilot6 thanks for responding, is it possible to do via cmd line? – sreya Feb 03 '17 at 17:51
  • @sreya sure. NM used files in `/etc/NetworkManager/system-connections/` – Rinzwind Feb 03 '17 at 18:47
  • @Rinzwind that directory is empty unfortunately – sreya Feb 03 '17 at 19:32
  • I have always disabled IPv6 via the grub command line: `GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"`. I do not know, nor have I tested, if the other way around also works, i.e. `GRUB_CMDLINE_LINUX_DEFAULT="ipv4.disable=1"` – Doug Smythies Feb 03 '17 at 22:42
  • Dough is pretty close - that passes arguments to kernel. But more practical way to use those commands is via /etc/sysctl.conf file. I'd post an answer but I'm on phone. Will do so once i get the chance – Sergiy Kolodyazhnyy Feb 04 '17 at 00:21
  • @Serg hi wanted to see if you were still cool posting an answer. I think based on context clues I can probably figure it out, but is there a good way to verify that you have ipv6 or ipv4 disabled? – sreya Feb 06 '17 at 21:31
  • 1
    @sreya sure, I can do that, just need to find time. – Sergiy Kolodyazhnyy Feb 06 '17 at 21:45

0 Answers0