Banana Pi – how to disable IPv6 in Debian 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
# vi /etc/rc.local
#!/bin/bash
# /etc/rc.local
…
/etc/init.d/procps restart
exit 0
Check with “ifconfig” if the IPv6 address has disappeared
# ip addr show | grep inet6
This entry was posted on Sonntag, Mai 9th, 2021 at 18:52 and is filed under Administration, Banana Pi, Linux Solution. 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.