Ubuntu/IPv6: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
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

Revision as of 07:56, 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