|
/etc/config/network:
config switch 'eth0'
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'eth0'
option vlan '2'
option ports '0 5t'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd00:edd5:af8b::/48'
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config interface 'wwan'
option proto 'dhcp'
/etc/config/wireless:
config wifi-device 'wl0'
option type 'broadcom'
option txantenna '3'
option rxantenna '3'
option htmode 'HT20'
option disabled '0'
option channel '9'
option hwmode '11g'
option txpower '24'
config wifi-iface
option network 'wwan'
option ssid 'TPG'
option encryption 'psk2'
option device 'wl0'
option mode 'sta'
option key 'tpg123456'
ifconfig wl0:
wl0 Link encap:Ethernet HWaddr 00:90:4C:21:70:01
inet6 addr: fe80::290:4cff:fe21:7001/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:109381
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21762 (21.2 KiB) TX bytes:23883 (23.3 KiB)
Interrupt:3 Base address:0x1000
求大神指点,谢谢! |
|