sysctl error in RedHat 8

Latest response

Dear Community,

I get this error when I run sysctl to confirm if ipv6 is disabled

$ sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory

I was wondering if this means ipv6 is disabled, or the error root cause is something else? (and if that is the case, how can I fix the error)



Have you already disabled IPv6 with ipv6.disable=1 on the GRUB kernel line?

If so, I don't think that kernel tunable is needed or will be available, because the protocol is disabled.