QuentinHsu / Document-Page

以 issue 页面为文档记录/阅读的仓库,亦方便讨论
24 stars 1 forks source link

OpenWRT 使用注意事项 #3

Closed QuentinHsu closed 3 years ago

QuentinHsu commented 3 years ago

修改 WAN 口默认网关和 DNS

image

在默认不主动修改的情况下,WAN 的 IPv4 状态信息中,网关和 DNS 会默认指向上游路由器 IP,我这里上游路由器是光猫(192.168.1.1),所以网关和 DNS 都会指向 192.168.1.1,即图示所示。 若想修改 WAN 口的网关和 DNS,指向自己,则需要到 LAN 口的“基本信息”中设置。

image

默认是空的。

填入你当前路由器 LAN 口 IPv4 地址即可。并“保存并应用”。

⚠️ 请一定记得,在“保存并应用”后,重启路由器。

不然你将无法正常上网。或者你清除了以上两个选项内容后,依旧需要保存并应用再重启路由器,才可正常上网。

通过命令安装/更新/卸载插件

安装

opkg update
opkg install <plug-in name>

更新

与安装插件命令一致

卸载

opkg remove <plug-in name> with --force-removal-of-dependent-packages
rm -rf /tmp/luci-modulecache/
rm -f /tmp/luci-indexcache