Raspberry Pi – how to disable IPv6 in Raspbian OS
To disable IPv6 temporarily
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
To disable IPv6 permanently
# vi /etc/sysctl.conf
Add this to the end
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eth0.disable_ipv6 = 1
# sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
# shutdown -r now
# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1
Check with “ifconfig” if the IPv6 address has disappeared
# ifconfig
This entry was posted on Sonntag, Mai 9th, 2021 at 13:06 and is filed under Administration, Linux Solution, Raspberry Pi. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.