2025年5月12日星期一

OpenWrt 24.10一键关闭IPV6

家里用不到IPV6,编译固件去掉IPV6的话,论坛里其他网友可能又有IPV6的需求

所以每次刷机后手动关闭吧,全部拷贝到ssh后台一键即可关闭。


uci set network.lan.ipv6='0'      

uci set network.wan.ipv6='0'      

uci set network.wan6.proto='none' 

uci set network.wan6.disabled='1'

uci set network.wan6.auto='0'

uci set dhcp.lan.dhcpv6='disabled'  

uci set dhcp.lan.ra='disabled'     

uci del firewall.cfg0892bd

uci del firewall.cfg0a92bd

uci del firewall.cfg0b92bd

uci del dhcp.lan.ra

uci del dhcp.lan.ra_slaac

uci del dhcp.lan.ra_flags

uci del dhcp.lan.dhcpv6

uci del network.lan.ip6assign

uci set network.lan.delegate='0'

uci del firewall.cfg0892bd

uci set firewall.cfg0992bd.family='ipv4'

uci set firewall.cfg0a92bd.family='ipv4'

uci commit

reboot

没有评论:

发表评论

XG-040G-XX SuPassword 解密工具

 买了新光猫 XG-040G-TF ,  所以写了一个 SuPassword 解密工具, 以备不时之需 . 点击下载