Loading... 一台新装的OpenWRT一般没有WEB管理界面(luci),那么我们需要通过SSH、Telnet或者Serial等方式连接进行简单配置。 <!--more--> - 设置LAN IP(路由器管理IP): ```Shell uci set network.lan.ipaddr=[lan ip] ``` - 设置pppoe上网方式: ```Shell uci set network.wan.proto=pppoe uci set network.wan.username=[username] uci set network.man.password=[password] ``` - 作为二级路由的设置: ```Shell uci set network.wan.proto=none uci set network.lan.getway=[last route ip] uci set network.lan.dns=[last route ip] uci set dhcp.lan.ignore=1 //close lan's DHCP ``` - 提交应用配置: ```Shell uci commit /etc/init.d/network restart ``` - 安装luci管理界面: ```Shell opkg update //update software list opkg list-installed //installed software opkg install luci //install luci opkg install luci-i18n-chinese //luci chinese(brfore 15.05) opkg install luci-i18n-base-zh-cn //luci chinese ``` - 开启web服务的uhttpd,并设置为自启动: ```Shell /etc/init.d/uhttpd enable /etc/init.d/uhttpd start ``` Last modification:March 26, 2019 © Allow specification reprint Like 0 If you think my article is useful to you, please feel free to appreciate