Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos7彻底关闭ipv6 #28

Open
kuuyee opened this issue Oct 17, 2016 · 0 comments
Open

Centos7彻底关闭ipv6 #28

kuuyee opened this issue Oct 17, 2016 · 0 comments
Assignees

Comments

@kuuyee
Copy link
Owner

kuuyee commented Oct 17, 2016

中级解决办法,修改grub,使其在启动时不加载ipv6。在GRUB_CMDLINE_LINUX中加入ipv6.disable=1

vim /etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
@kuuyee kuuyee self-assigned this Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant