Why ping to localhost uses ipv6 address ::1 instead of ipv4 address 127.0.0.1 ?
Issue
- pinging the local host are getting ::1 as the output instead of 127.0.0.1
- telnet or ssh to localhost uses ipv6 address ::1 instead of 127.0.0.1
Environment
- RHEL8 and above.
- IPv6 and IPv4 (dual-stack network)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.