Ubuntu/IPv6: Difference between revisions
< Ubuntu
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
<pre> | <pre> | ||
cat >> /etc/sysctl.conf << "EOF" | cat >> /etc/sysctl.conf << "EOF" | ||
# Disable IPV6 | |||
net.ipv6.conf.all.disable_ipv6 = 1 | net.ipv6.conf.all.disable_ipv6 = 1 | ||
net.ipv6.conf.default.disable_ipv6 = 1 | net.ipv6.conf.default.disable_ipv6 = 1 | ||
net.ipv6.conf.lo.disable_ipv6 = 1 | net.ipv6.conf.lo.disable_ipv6 = 1 | ||
EOF | EOF | ||
sudo sysctl -p | sudo sysctl -p | ||
| Line 17: | Line 20: | ||
sudo update-grub | sudo update-grub | ||
</pre> | </pre> | ||
== keywords == | |||
Latest revision as of 08:36, 15 November 2026
Disable IPv6
cat >> /etc/sysctl.conf << "EOF" # Disable IPV6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 EOF sudo sysctl -p
Boot Setting:
/etc/default/grub GRUB_CMDLINE_LINUX="ipv6.disable=1" sudo update-grub