RHEL9: "ping: socket: Address family not supported by protocol" error with IPv6 disabled
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
- Red Hat Enterprise Linux (RHEL) 9
ping
command fromiputils
packageipv6.disable=1
GRUB kernel boot parameter used to disable IPv6:
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.