Disable IPv6 on Fedora
Disabling IPv6 on your Fedora system can be useful if you don’t need its features or if you’re experiencing issues with it. In this article, we’ll walk through the steps to disable IPv6 on Fedora.
Step 1: Open a Terminal/Console Session
To start, open a terminal or console session on your Fedora system. This is usually accessible by searching for “Terminal” in your applications menu or using the keyboard shortcut Ctrl+Alt+T.
Step 2: Edit the blacklist File
Next, you’ll need to edit the blacklist file located at /etc/modprobe.d/blacklist. This file contains configurations that prevent certain kernel modules from loading. To edit this file, run the following command:
su -c 'gedit /etc/modprobe.d/blacklist'This will open the file in the GEdit editor. Look for an empty line at the end of the file and add the following line:
blacklist ipv6Save the changes and close the editor.
Step 3: Edit the modprobe.conf.dist File
After that, you need to edit another configuration file called modprobe.conf.dist. This file contains default configurations for kernel modules. Run the following command to open this file:
su -c '/etc/modprobe.d/modprobe.conf.dist'Look for an empty line at the end of the file and add the following line:
install ipv6 /bin/trueSave the changes and close the editor.
Step 4: Edit the ifcfg-eth0 File
Next, you’ll need to edit the ifcfg-eth0 file, which contains network configuration settings for your Ethernet interface. Run the following command to open this file:
su -c '/etc/sysconfig/network/scripts/ifcfg-eth0'Look for the following lines and add or modify them as follows:
IPV6INIT=no
IPV6_AUTOCONF=noSave the changes and close the editor.
Step 5: Edit the network File
After that, you need to edit the network file, which contains global network configuration settings. Run the following command to open this file:
su -c '/etc/sysconfig/network'Look for an empty line at the end of the file and add the following line:
NETWORKING_IPV6=noSave the changes and close the editor.
Step 6: Disable IPv6 Table Services
Finally, you need to disable IPv6 table services. Run the following command:
chkconfig ip6tables offThis will disable IPv6 table services on your Fedora system.
Reboot Your System
To apply all changes, reboot your Fedora system. This is because some of these configurations may require a system restart to take effect.
After rebooting your system, you should no longer be using IPv6. If you encounter any issues or need further assistance, feel free to ask!