hi,
after I've successfully configured VLAN setup with dumb AP, I want to migrate that configuration from the old AP, to a new one - ax3000t, that has 3 LAN ports, and 1 WAN port.
running ls -l /sys/class/net
in the new AP returns:
eth0 -> ../../devices/platform/15100000.ethernet/net/eth0
lan2 -> ../../devices/platform/15100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan2
lan3 -> ../../devices/platform/15100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan3
lan4 -> ../../devices/platform/15100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan4
phy0-ap0 -> ../../devices/platform/18000000.wifi/net/phy0-ap0
...
phy1-ap0 -> ../../devices/platform/18000000.wifi/net/phy1-ap0
wan -> ../../devices/platform/15100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/wan
/etc/config
currently has:
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 'fd61:3163:614f::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.31.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr 'b3:a1:32:3b:45:be'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
note - this is before making the relevant changes to make it a "dumb ap", which should be adding the wan
port to the bridge, deleting the wan devices/interfaces, and disabling the dhcp
and firewall
services, as per the instructions.
the main router's /etc/config
is the same as before:
...
config interface 'iot_online'
option device 'eth1.10'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option proto 'static'
config interface 'iot_offline'
option device 'eth1.11'
option ipaddr '192.168.11.1'
option netmask '255.255.255.0'
option proto 'static'
...
my thoughts were to modify /etc/config/network
on the AP, to (my modifications with the #
sign):
...
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan' # adding this
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.2' # here
option gateway '192.168.1.1' # here
list dns '192.168.1.1' # here
# and from here till the end
config device
option name 'br-iotonline'
option type 'bridge'
list ports 'eth1.10'
config interface 'iotonline'
option device 'br-iotonline'
option proto 'none'
config bridge-vlan
option device 'br0'
option vlan '10'
list ports 'wan:u*'
config device
option name 'br-iotoffline'
option type 'bridge'
list ports 'eth1.11'
config interface 'iotoffline'
option device 'br-iotoffline'
option proto 'none'
config bridge-vlan
option device 'br0'
option vlan '11'
list ports 'wan:u*'
would this be correct?
thanks!