RHEL9: "ping: socket: Address family not supported by protocol" error with IPv6 disabled

Solution Verified - Updated -

Issue

  • ping: socket: Address family not supported by protocol error with IPv6 disabled.
$ grep ipv6.disable=1 /proc/cmdline
BOOT_IMAGE=... ipv6.disable=1

$ ping -c 1 192.168.x.x
ping: socket: Address family not supported by protocol

Environment

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