Centos7 开启IPv6

cp /etc/default/grub /etc/default/grub.bak
GRUB_TIMEOUT = 5 
GRUB_DEFAULT =保存的
GRUB_DISABLE_SUBMENU = true 
GRUB_TERMINAL_OUTPUT =“控制台” 
GRUB_CMDLINE_LINUX =“ ipv6.disable = 0 crashkernel =自动rhgb安静” 
GRUB_DISABLE_RECOVERY =“ true”
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
image.png

image.png
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
sysctl -p

参考:https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-ipv6/

你可能感兴趣的:(Centos7 开启IPv6)