Ask Your Question
0

How do I diasble IPv6?

asked 2017-11-30 14:53:07 -0500

lovepump gravatar image

Before anyone tells me this question is a repeat and to look at prior answers I'd like to clarify that no answer, whether it is in the official fedora documentation, past posts, other distributions' methods, or someone's favorite secret has had any effect on any of the Fedora distributions I have run, starting with Fedora 24 continuing through Fedora 27.

I want to turn IPv6 OFF. Completely. I want it to persist in this state across reboots.

I'd also like to clarify what my criteria are for IPv6 "being disabled":

  1. The machine doesn't have any IPv6 addresses assigned to any network interface. Global, Unicast, Multicast, LinkLocal, Loopback. I do not care what scope of IPv6 address it is, I want the machine to have none. When I type in ip addr | grep inet6 I want to see it come back empty.
  2. The machine doesn't have any IPv6 multicast-specific link-layer (MAC) addresses assigned to any network interface. I want the machine to have none. When I type in ip maddr | egrep 'inet6|link\s+33:33' I want to see it come back empty.
  3. The IPv6 stack doesn't "load" and then need to be told to "go away" after the fact.
  4. IPv4 functions normally.

I'm currently letting NetworkManager handle my connections and only truly using the wireless interface. Although, I rarely use the ethernet interface for Proxy/DNSMasqerading to set up an occasional raspberry pi. I am not against taking NetworkManager or DNSMasquerading out of the picture if it is necessary, or rebuilding the kernel if it is necessary. I just need to know what it is going to take to make this happen.

Can anyone help?

thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-30 15:28:26 -0500

rehni gravatar image

Hey, what options and methods have you tried before and didn't work as you wanted?

I found two methods to disable IPv6 here and here.

edit flag offensive delete link more

Comments

One of the methods in the second link finally worked. Appending or adding ipv6.disable=1 to the kernel command line (in this case editing /etc/default/grub to add it and running grub2-mkconfig -o <path_to_my_grub.cfg>) finally worked. None of the other methods worked fully, one partial exception only working to remove unicast (not multicast or MAC) addresses and not persisting over a reboot. You have to use the grub command-line change (so it will work after you update a kernel using dnf). If you want to edit your answer to make it solely the grub2/kernel command-line method I'll bump it

lovepump gravatar imagelovepump ( 2017-11-30 17:11:07 -0500 )edit

However, in that working link it has you run grub2-mkconfig -o /boot/grub.cfg, This might update the wrong grub.cfg if you are running on a UEFI system as I am. I ran grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg instead of what the link suggested because that is the grub.cfg file used when booting my EFI system.

lovepump gravatar imagelovepump ( 2017-11-30 17:14:53 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-11-30 14:53:07 -0500

Seen: 3,805 times

Last updated: Nov 30 '17