I'm trying to disable IPv6 completely from CentOS 7 running Systemd and would like some guidance on how officially this is done. I'm asking here because my confusion is if I simply need to do:
Code:
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
or
Do I need to call ALL interfaces as well on my box because...and I quote from Arch Linux (yes CentOS is not Arch Linux):
Quote:
Note that you must list all of the targeted interfaces explicitly, as disabling all.disable_ipv6 does not apply to interfaces that are already "up" when sysctl settings are applied.
|
So would my /etc/sysctl.conf look as follows assuming my only two interfaces on the box are loopback (lo) and eth0 (enp0s25):
Code:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.enp0s25.disable_ipv6 = 1