OpenWrt下如何配置网络?

答: 使用uci进行配置,示例如下:

  uci get network.wan.ifname (笔者得到eth1)

  uci set network.wan.ifname=ethx (如: uci set network.wan.ifname=eth1)

  uci set network.wan6.ifname=ethx (如: uci set network.wan6.ifname=eth1)

  /etc/init.d/network restart

  

原文地址:https://www.cnblogs.com/dakewei/p/10929410.html