中继
etc config wireless
root@newifi:/# cat /etc/config/wireless
config wifi-device 'ra0'
option type 'ralink'
option mode '9'
option channel '0'
option txpower '100'
option ht '40'
option hidessid '0'
option macpolicy '0'
option maclist ' '
config wifi-iface
option device 'ra0'
option ifname 'ra0'
option network 'lan'
option mode 'ap'
option wps 'pbc'
option ssid 'newifi_768C'
option encryption 'psk+psk2'
option key '99999999'
option cliname 'apcli0'
config wds-iface 'wds'
option device 'apcli0'
option defaultkeyid '1'
option enable '1'
option ssid_bak 'xxxxx'
option bssid_bak 'd4:ee:07:0a:8c:04'
option channel_bak '1'
option authmode_bak 'WPA2PSK'
option encryptype_bak 'AES'
option key_bak 'suibaobaihuo'
option enable_bak '1'
option stat '1'
option ssid 'xxxxx'
option bssid 'd4:ee:07:0a:8c:04'
option channel '1'
option authmode 'WPA2PSK'
option encryptype 'AES'
option key 'suibaobaihuo'
config wifi-device 'rai0'
option type 'mt7612'
option mode '14'
option txpower '100'
option ht '80'
option channel '0'
option hidessid '0'
option macpolicy '0'
option maclist ' '
config wifi-iface
option device 'rai0'
option ifname 'rai0'
option network 'lan'
option mode 'ap'
option wps 'pbc'
option ssid 'newifi_5G_768C'
option encryption 'psk+psk2'
option key '99999999'
etc config network
root@newifi:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.99.1'
option netmask '255.255.255.0'
option macaddr '20:76:93:23:76:8c'
config interface 'wan'
option proto 'dhcp'
option macaddr '20:76:93:23:76:8f'
option ifname 'apcli0'
option proto_bak 'dhcp'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
etc config dhcp
root@newifi:/# cat /etc/config/dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
#option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_protection 0 # disable rebind protection for baidu request, enable local network dns
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
#list server '/mycompany.local/1.2.3.4'
#option nonwildcard 1
#list interface br-lan
#list notinterface lo
#list bogusnxdomain '64.94.110.11'
config dhcp lan
option interface lan
option start 100
option limit 150
option leasetime 12h
config dhcp wan
option interface wan
option ignore 1
DHCP
etc config wireless
root@newifi:/# cat /etc/config/wireless
config wifi-device 'ra0'
option type 'ralink'
option mode '9'
option channel '0'
option txpower '100'
option ht '40'
option hidessid '0'
option macpolicy '0'
option maclist ' '
config wifi-iface
option device 'ra0'
option ifname 'ra0'
option network 'lan'
option mode 'ap'
option wps 'pbc'
option ssid 'newifi_768C'
option encryption 'psk+psk2'
option key '99999999'
config wds-iface 'wds'
option device 'apcli0'
option defaultkeyid '1'
option ssid_bak 'xxxxx'
option bssid_bak 'd4:ee:07:0a:8c:04'
option channel_bak '1'
option authmode_bak 'WPA2PSK'
option encryptype_bak 'AES'
option key_bak 'suibaobaihuo'
option enable_bak '1'
option ssid 'xxxxx'
option channel '1'
option authmode 'WPA2PSK'
option encryptype 'AES'
option key 'suibaobaihuo'
option stat '0'
option enable '0'
config wifi-device 'rai0'
option type 'mt7612'
option mode '14'
option txpower '100'
option ht '80'
option channel '0'
option hidessid '0'
option macpolicy '0'
option maclist ' '
config wifi-iface
option device 'rai0'
option ifname 'rai0'
option network 'lan'
option mode 'ap'
option wps 'pbc'
option ssid 'newifi_5G_768C'
option encryption 'psk+psk2'
option key '99999999'
etc config network
root@newifi:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.99.1'
option netmask '255.255.255.0'
option macaddr '20:76:93:23:76:8c'
config interface 'wan'
option proto 'dhcp'
option macaddr '20:76:93:23:76:8f'
option ifname 'eth2.2'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
静态 IP
root@newifi:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.99.1'
option netmask '255.255.255.0'
option macaddr '20:76:93:23:76:8c'
config interface 'wan'
option macaddr '20:76:93:23:76:8f'
option ifname 'eth2.2'
option proto 'static'
option ipaddr '10.10.10.11'
option netmask '255.255.255.0'
option gateway '10.10.10.1'
option dns '223.5.5.5 223.6.6.6'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
PPPoE 拨号
etc config network
root@newifi:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.99.1'
option netmask '255.255.255.0'
option macaddr '20:76:93:23:76:8c'
config interface 'wan'
option macaddr '20:76:93:23:76:8f'
option ifname 'eth2.2'
option ipaddr '10.10.10.11'
option netmask '255.255.255.0'
option gateway '10.10.10.1'
option dns '223.5.5.5 223.6.6.6'
option proto 'pppoe'
option username '918730917203498@163.gd'
option username_bak '918730917203498@163.gd'
option password 'password'
option password_bak 'password'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
关闭 DHCP
root@newifi:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.99.1'
option netmask '255.255.255.0'
option macaddr '20:76:93:23:76:8c'
config interface 'wan'
option macaddr '20:76:93:23:76:8f'
option ifname 'eth2.2'
option ipaddr '10.10.10.11'
option netmask '255.255.255.0'
option gateway '10.10.10.1'
option dns '223.5.5.5 223.6.6.6'
option proto 'pppoe'
option username '918730917203498@163.gd'
option username_bak '918730917203498@163.gd'
option password 'password'
option password_bak 'password'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
root@newifi:/# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '0'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'