Using CentOS 7 this problem arose after a reboot and NFS shares would not mount. Trying to start the rpcbind service:
systemctl start rpcbind
gave the following error message via jounralctl -xe :
rpcbind.socket failed to listen on sockets: Address family not supported by protocol
So it looks like
net.ipv6.conf.all.disable_ipv6 = 1
was set in /etc/sysctl.conf But this wasn’t yet incorporated into the initramfs.
Solution
Rebuild the initramfs with:
dracut -v -f
Then reboot.