# 禁用网络接口 IPv6
uci set network.lan.ipv6='0'
uci set network.wan.ipv6='0'
uci set network.lan.delegate='0'
# 完全禁用 WAN6 接口的协议
uci set network.wan6.proto='none'
# 禁用 DHCPv6 和 RA
uci set dhcp.lan.dhcpv6='disabled'
uci set dhcp.lan.ra='disabled'
# 删除 ULA 前缀(可选)
uci -q delete network.globals.ula_prefix
# 停止并禁用 odhcpd
/etc/init.d/odhcpd stop
/etc/init.d/odhcpd disable
# 提交更改并重启网络
uci commit
/etc/init.d/network restart
Last active
May 29, 2025 19:30
-
-
Save mike2718/c52f4adbebe3f45fac47e0fb22e4f31f to your computer and use it in GitHub Desktop.
openwrt路由器禁用ipv6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment