To disable IPv6 networking on Arch Linux, you can edit the network configuration file for your network interface. The location and name of this file depends on the network interface that you are using, but it is typically located in the /etc/sysconfig/network-scripts
directory and has a name that begins with ifcfg-
.
For example, if you are using the eth0
network interface, the network configuration file is likely located at /etc/sysconfig/network-scripts/ifcfg-eth0
. To edit this file, you can use a text editor such as nano
or vi
, as shown below:
nano /etc/sysconfig/network-scripts/ifcfg-eth0
In the network configuration file, look for the IPV6INIT
option and set its value to no
. This option controls whether IPv6 networking is enabled or disabled for the network interface. By setting it to no
, you will disable IPv6 networking for the interface.
After making the changes to the network configuration file, you will need to restart your network interface for the changes to take effect. To do this, run the following command:
systemctl restart network
This will restart the network interface and apply the changes to the IPv6 settings. You can verify that IPv6 networking has been disabled by running the ip -6 addr
command, which will show the IPv6 addresses that are assigned to your network interface. If IPv6 networking is disabled, the ip -6 addr
command will not show any IPv6 addresses.
By editing the network configuration file and disabling the IPV6INIT
option, you can easily disable IPv6 networking on Arch Linux. This can be useful for reducing network overhead and improving network security, or for resolving compatibility issues with certain network services and applications.