Redhat 8 enable/disable Ipv6 - LinuxConfig.org

An Internet Protocol Version 6 (IPv6) address is an identifier of a network interface of a computer or a network node involved in an IPv6 computer network. This article will guide the user via simple steps on how to disable or re-enable IPv6 network addresses on Red Hat Enterprise Linux 8.
This is a companion discussion topic for the original entry at https://linuxconfig.org/redhat-8-enable-disable-ipv6

Thanks for sharing this. Note the step n. 5 should use sysctl -w net.ipv6.conf.all.disable_ipv6=0 or ipv6.disable=0 respectively.

thank you for pointing out this to me.
Although the:
ipv6.disable=1 is correct as the article asks the reader to remove it from grub config.

the article will be updated shortly.

Hey just a tip but you probably also want to comment out or delete
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
from /etc/hosts

The reason I say this is because things like postfix by default listen to localhost, if this line exists in /etc/postfix then postfix will break unless we go modify it to listen to 127.0.01 :slight_smile:

Hi Keimond,

Welcome to our forums.

You can also get postfix work by setting the inet_protocols to ipv4, and restart the service. That way you can keep the IPv6 localhost entry in your hosts file.

1 Like