RHEL9: ipv6.disable=1 により、ping: socket: Address family not supported by protocol エラーが発生する
Issue
- RHEL9: ipv6.disable=1 により、ping: socket: Address family not supported by protocol エラーが発生します。 ipv6.disable=1 については How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux? を参照してください。
サンプルログ:
$ grep ipv6.disable=1 /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.14.0-162.6.1.el9_1.x86_64 root=/dev/mapper/VolGroup-lv_root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/VolGroup-lv_swap rd.lvm.lv=VolGroup/lv_root rd.lvm.lv=VolGroup/lv_swap ipv6.disable=1
$ ping -c 1 192.168.122.1 > /tmp/ping.output
ping: socket: Address family not supported by protocol
Environment
- Red Hat Enterprise Linux (RHEL) 9
iputils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.