Skip to content

Instantly share code, notes, and snippets.

@kareiva
Created November 3, 2019 20:39
Show Gist options
  • Save kareiva/1714002486528d24d415ef935e161620 to your computer and use it in GitHub Desktop.
Save kareiva/1714002486528d24d415ef935e161620 to your computer and use it in GitHub Desktop.
Disable IPv6 on Centos7
#!/bin/bash
sed -i 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="ipv6.disable=1 /' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment