1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| root@OpenWrt:~# cat /etc/board.json { "model": { "id": "fsl,ls1043a-sdboot", "name": "NH03" }, "network": { "lan": { "device": "br-lan", "protocol": "static" }, "wan": { "device": "eth2", "protocol": "dhcp" } } } root@OpenWrt:~# cat /etc/config/network
config interface 'loopback' option device 'lo' option proto 'static' list ipaddr '127.0.0.1/8'
config globals 'globals' option dhcp_default_duid '00049e7cb3c0895642958376c30f479dcb24' option ula_prefix 'fdc2:858b:bbd::/48'
config device option name 'br-lan' option type 'bridge' list ports 'eth3' list ports 'eth0' list ports 'eth1' list ports 'eth4' list ports 'eth5'
config interface 'lan' option device 'br-lan' option proto 'static' option ip6assign '60' option ipaddr '192.168.2.1' option netmask '255.255.255.0'
config interface 'wan' option device 'eth2' option proto 'dhcp'
config interface 'wan6' option device 'eth2' option proto 'dhcpv6'
config interface 'singbox_tun' option device 'tun0' option proto 'unmanaged'
|