I am confused with how swconfig
is supposed to work for my Archer A7. I want to use my Archer A7 as a dumb AP, which works currently using one of the yellow lan ports.
However, this is what I'd like to do:
- Use the WAN port on my Archer A7 to link up to my main router. I have a Dynalink WRX36 that allowed me to do this so I am not sure why this wouldn't be something I could do on the Archer A7.
- My network has the following VLANS set up which I'd like to use with my Archer A7 as well:
- 99 for main lan
- 3 for iot
- 4 for guest
- the lan ports on my Archer A7 should be VLAN untagged and have 99 as it's default.
- I want to add Wifi SSIDs that add clients to the correct VLANS (I'll worry about that later).
My network consists of:
- Dynalink WRX36 as main router.
- Dynalink WRX36 as a first dumb AP
- Archer A7 as a second dumb AP
I have been able to make this work on my first dumb AP, but that uses DSA. Since Archer A7 doesn't use DSA but instead uses swconfig
I am unsure how to make this work.
This is the config on the first dump AP:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd95:d6a8:fa11::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config interface 'lan'
option device 'br-lan.99'
option proto 'static'
option ipaddr '192.168.1.2'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '192.168.1.1'
option gateway '192.168.1.1'
option metric '1'
config bridge-vlan
option device 'br-lan'
option vlan '99'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'wan:t*'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '4'
list ports 'wan:t'
config interface 'guest'
option proto 'static'
option device 'br-lan.4'
option ipaddr '192.168.3.2'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option metric '10'
config interface 'iot'
option proto 'static'
option device 'br-lan.3'
option ipaddr '192.168.2.2'
option netmask '255.255.255.0'
option gateway '192.168.2.1'
option metric '99'
And this is the config on the Archer A7 second dumb ap:
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd2b:7052:1d11::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
config device
option name 'eth0.2'
option macaddr '00:31:92:da:2e:a8'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 2 3 4 5'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
option vid '2'
config interface 'wan'
option proto 'dhcp'
option device 'br-wan'
config device
option type 'bridge'
option name 'br-wan'
list ports 'eth0.2'
option bridge_empty '1'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '99'
Can anyone help me setting up my second dumb ap so it meets my plans listed above? Particularly the presence of vlan1 and 2 on the Archer A7 throw me off.