IPV6 支持
?由于树莓派、NanoPi R2S、x86 平台固件内默认未添加 IPV6 支持,为满足大家使用 IPV6 的需求,在未集成 IPV6 设备的固件中加入了 ipv6-helper
工具以方便大家快速安装和配置 IPV6 模块。
⚠️本工具目前处于测试状态,可能存在一些不确定性,请大家多多测试反馈~
在 OpenWrt 的 SSH 或 TTYD 中执行 ipv6-helper
命令可以得到工具的帮助信息:
# root @ OpenWrt in ~ [14:50:47] $ ipv6-helper This tool can help you install IPV6 modules on OpenWrt. Usage: ipv6-helper sub-command Example: ipv6-helper install: Install ipv6-helper & IPV6 modules ipv6-helper remove: Remove ipv6-helper & IPV6 modules Optional Usage: ipv6-helper server: Set IPV6 configuration to server mode ipv6-helper relay: Set IPV6 configuration to relay mode ipv6-helper hybird: Set IPV6 configuration to hybird mode ipv6-helper clean: Remove mwan3 modules |
用法
ipv6-helper install
: 安装 IPV6 模块并将 IPV6 配置为服务器 (Server) 模式 (默认)
ipv6-helper remove
: 移除 IPV6 模块并回滚与 IPV6 相关的所有配置
额外用法
ipv6-helper server
: 将 IPV6 配置为服务器 (Server) 模式
ipv6-helper relay
: 将 IPV6 配置为中继 (Relay) 模式
ipv6-helper hybird
: 将 IPV6 配置为混合 (Hybird) 模式
ipv6-helper clean
: 移除与 wan3 相关的模块和 LuCI APP (不可逆/一般用不到)
注意事项
⚙️执行 ipv6-helper install
完成 IPV6 模块的安装后将自动把 IPV6 配置为服务器模式,无需另外执行 ipv6-helper server
切换模式。
⚙️默认情况下,执行ipv6-helper install
完成 IPV6 模块的安装和配置后会提示重启,可选择立即重启和稍后重启,按照实际情况重启即可。
?如果在 OpenWrt 重启后服务器 (Server) 模式下的 IPV6 工作不正常,可以尝试执行 ipv6-helper hybird
将 IPV6 配置为混合 (Hybird) 模式。若重启后仍不正常,可执行 ipv6-helper relay
配置为混合 (Hybird) 模式,若重启后仍不正常,则说明 OpenWrt 可能无法适应当前的网络环境,建议 Google 寻找其他解决方法 (例如 Nat6)。
?在切换 IPV6 模式或移除 IPV6 模块时,如果遇到 “uci: Entry not found”的提示是正常的,忽略即可~