目标板 /etc/config/network 文件是来自于openwrt 源文件哪里呀
www.trtos.com 极客虫 ,makeymakey,arduboy 爱好者
离线
openwrt_widora$ find . |grep etc/config/network
./package/base-files/files/etc/config/network
./feeds/luci/contrib/uci/hostfiles/etc/config/network
看下这个是不是你所要的:
openwrt_widora$ cat ./package/base-files/files/etc/config/network
# Copyright (C) 2006 OpenWrt.orgconfig interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0config interface lan
option ifname eth0
option type bridge
option proto static
option ipaddr 192.168.99.1
option netmask 255.255.255.0
option ip6assign 60
config interface wan
option ifname apcli0
option proto dhcp
config globals globals
option ula_prefix auto
openwrt_widora$ cat ./feeds/luci/contrib/uci/hostfiles/etc/config/network
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 3 5*"
option vlan1 "4 5"#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0#### LAN configuration
config interface lan
option type bridge
option ifname "eth0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0#### WAN configuration
config interface wan
option ifname "wlan0"
option proto dhcp
在线
目标板上面的/etc/config/network 文件打开是这两个文件叠加的
www.trtos.com 极客虫 ,makeymakey,arduboy 爱好者
离线
一般的network文件来自于
package/base-files/files/etc/config/network
平台定制的network文件来自于
target7linux/xxx/base-files/files/etc/config/network
后者会直接覆盖前者
离线