Disabling IPv6 in Fedora
A lot of people have been coming into #fedora asking "how can i disable ipv6?" since their connection only uses ipv4. This howto will cover disabling ipv6 in the kernel stack during boot, stop ipv6 from being started by system calls and stop the ip6iptables service. IPv6 enabled should be entirely harmless, and if it _isn't_ then there is a bug which should either be reported to the local ISP (perhaps AAAA lookups are not working in DNS) or filed at http://bugzilla.redhat.com.
Applicable to Fedora Versions
- Fedora Core 10+
Requirements
- None
Doing the Work:
- First open a terminal.
- Then we need to disable ipv6 from being run. Do so by performing the following:
su -c 'echo "install ipv6 /bin/true
blacklist ipv6" > /etc/modprobe.d/blacklist-ipv6.conf'
At the password prompt, enter the password for root and press return. - Now we need to stop and disable the ip6tables service. Do so by performing the following in a terminal window:
su -c 'service ip6tables stop && chkconfig ip6tables off'
At the password prompt, enter the password for root and press return. - After making these changes a system reboot will be required.
- If you find that anything is actually fixed by disabling IPv6, then you have found a bug. Make sure you report it at http://bugzilla.redhat.com.
NOTE: The first line
install ipv6 /bin/true will stop the system from calling the ipv6 module while running: whenever the system needs to load the ipv6 module, it is forced to execute the command true instead of actually loading the module. Since /bin/true does absolutely nothing, the module never gets loaded. The second line blacklist ipv6 stops the the kernel stack from loading the ipv6 module during boot.
