My ISP has started leasing an IPv6 recently although it's still not mentioned officially anywhere.
WAN6 interface gets an IPv6 from upstream network. That is with default OpenWrt configuration.
The ISP supports Prefix Delegation too.
Both IPv6 Ping and Treceroute work OK when I aim them at openwrt.org
.
I've configured all router settings long time ago and in the past I've used the following commands run from rc.local to disable IPv6.
# DISABLE IPV6
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
echo 0 > /proc/sys/net/ipv6/conf/default/forwarding
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.lo.disable_ipv6=1
sysctl -p
I've simply tried to reverse all of them running
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 0 > /proc/sys/net/ipv6/conf/default/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.lo.disable_ipv6=0
sysctl -p
reboot
After the reboot the router cannot get IPv6 address from the ISP network.
Is there a way/commands that I can make/run to restore only IPv6 configuration to default without the need to restore all the settings to default.