Why ping to localhost uses ipv6 address ::1 instead of ipv4 address 127.0.0.1 ?

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content