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

  

posted @ 2019-05-27 10:38  Jello  阅读(5549)  评论(0编辑  收藏  举报