Thank you Peter.
Now i have the setup partially working with your suggestion of unmanaged interfaces.
The primary router (Mercusys MR90x) is connecting OK to my ISP. Devices are connecting to their wifi and guest wifi and using internet as usual. Only exposing new SSIDs here to help me debug and check that all is working. SQM seems to work well and better than the old linksys MR8300.
For now, the secondary router (the linksys) is exposing the same old SSID wifis, they are bridged (or "trunked") via the ethernet connection to the primary router. WIFI devices connects via the old SSIDs and get the DHCP from the primary router, and connected to internet as usual.
With my PC, connected to any of the old or new SSID i can connect and manage simultaneously both routers via https/443 or ssh/22.
In the secondary router (which was the unique one until now) I have since years ago connected a HDD drive (the Mercusys doesnt have USB port). This drive was and is exposed via NFS to the network. The primary router now also backup the config and the vnstat files to a NFS share (has yet to solve how to make this mount survive reboots). This NFS share should also be accesible from the private wifi.
The secondary router reaches internet ok, opkg update works, and pings other servers like 8.8.8.8 or by name www.google.com.
But, when i connect a PC via wired ethernet to the switch port of the secondary router (one of the ones that are not tagged), the PC does not receive an IP address. if i manually assign an IP address to the PC, it reaches 192.168.22.1 (the 22 or 443 to manage openwrt, and even I can mount the NFS share or access transmision deamon in port 9091), but it cannot reach internet, not even the new primary router 192.168.22.254.
Here are the configs of the primary router
root@OpenWrt:/etc/config# ubus call system board
{
"kernel": "6.6.93",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "MERCUSYS MR90X v1",
"board_name": "mercusys,mr90x-v1",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.2",
"revision": "r28739-d9340319c6",
"target": "mediatek/filogic",
"description": "OpenWrt 24.10.2 r28739-d9340319c6",
"builddate": "1750711236"
}
}
root@OpenWrt:/etc/config# 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 '::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan0.1'
list ports 'lan1'
list ports 'lan2'
config device
option name 'lan0'
option macaddr '11:22:33:44:55:66'
config device
option name 'lan1'
option macaddr '11:22:33:44:55:66'
config device
option name 'lan2'
option macaddr '11:22:33:44:55:66'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.22.254'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth1'
option proto 'pppoe'
option username 'isp.user'
option password 'isp.password'
option ipv6 'auto'
option mtu '1492'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
config interface 'wifi'
option proto 'static'
option device 'br-wifi'
option ipaddr '192.168.23.254'
option netmask '255.255.255.0'
config interface 'wifiguest'
option proto 'static'
option device 'br-wifiguest'
option ipaddr '192.168.24.254'
option netmask '255.255.255.0'
config device
option type 'bridge'
option name 'br-wifi'
list ports 'lan0.2'
config device
option type 'bridge'
option name 'br-wifiguest'
list ports 'lan0.3'
config device
option type '8021q'
option ifname 'lan0'
option vid '1'
option name 'lan0.1'
config device
option type '8021q'
option ifname 'lan0'
option vid '2'
option name 'lan0.2'
config device
option type '8021q'
option ifname 'lan0'
option vid '3'
option name 'lan0.3'
root@OpenWrt:/etc/config# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/18000000.wifi'
option band '2g'
option channel '13'
option htmode 'HE20'
option txpower '20'
option cell_density '0'
option country 'JP'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/18000000.wifi+1'
option band '5g'
option channel '112'
option htmode 'HE160'
option cell_density '0'
option country 'JP'
config wifi-iface 'wifinet0'
option device 'radio0'
option mode 'ap'
option ssid 'MyNewSSID'
option encryption 'sae'
option key 'a.goog.password'
option ieee80211r '1'
option ft_over_ds '0'
option ocv '0'
option network 'wifi'
option nasid 'mercusys'
option mobility_domain 'caca'
list maclist '11:22:33:44:55:66'
config wifi-iface 'wifinet1'
option device 'radio1'
option mode 'ap'
option ssid 'MyNewSSID'
option encryption 'sae'
option key 'a.goog.password'
option ieee80211r '1'
option ft_over_ds '0'
option ocv '0'
option network 'wifi'
option nasid 'mercusys'
option mobility_domain 'caca'
config wifi-iface 'wifinet2'
option device 'radio1'
option mode 'ap'
option ssid 'MyNewSSIDL'
option encryption 'psk2'
option key 'a.good.password'
option ieee80211r '1'
option nasid 'linksys'
option mobility_domain 'caca'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option network 'wifi'
root@OpenWrt:/etc/config# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option ednspacket_max '1232'
option doh_backup_noresolv '-1'
option noresolv '1'
list doh_backup_server ''
list doh_backup_server '/mask.icloud.com/'
list doh_backup_server '/mask-h2.icloud.com/'
list doh_backup_server '/use-application-dns.net/'
list doh_backup_server '127.0.0.1#5053'
list doh_backup_server '127.0.0.1#5054'
list server '/mask.icloud.com/'
list server '/mask-h2.icloud.com/'
list server '/use-application-dns.net/'
list server '127.0.0.1#5053'
list server '127.0.0.1#5054'
list server '127.0.0.1#5055'
list doh_server '127.0.0.1#5053'
list doh_server '127.0.0.1#5054'
list doh_server '127.0.0.1#5055'
list address '/choice.microsoft.com/127.0.0.3'
list address '/settings-win.data.microsoft.com/127.0.0.3'
list address '/dnstesting.data.microsoft.com/127.0.0.3'
list address '/vortex.data.microsoft.com/127.0.0.3'
list address '/telemetry.microsoft.com/127.0.0.3'
list address '/vortex-win.data.microsoft.com/127.0.0.3'
list address '/vortex-sandbox.data.microsoft.com/127.0.0.3'
list address '/telemetry.urs.microsoft.com/127.0.0.3'
list address '/sqm.telemetry.microsoft.com/127.0.0.3'
list address '/df.telemetry.microsoft.com/127.0.0.3'
list address '/feedback.search.microsoft.com/127.0.0.3'
list address '/feedback.windows.com/127.0.0.3'
list address '/oca.telemetry.microsoft.com/127.0.0.3'
list address '/sqm.df.telemetry.microsoft.com/127.0.0.3'
list address '/telecommand.telemetry.microsoft.com/127.0.0.3'
list address '/telemetry.appex.bing.net/127.0.0.3'
list address '/oca.microsoft.com/127.0.0.3'
list address '/kmwatsonc.telemetry.microsoft.com/127.0.0.3'
list address '/v10.events.data.microsoft.com/127.0.0.3'
list address '/v10c.events.data.microsoft.com/127.0.0.3'
list address '/v10.vortex-win.data.microsoft.com/127.0.0.3'
list address '/watson.telemetry.microsoft.com/127.0.0.3'
list address '/watson.microsoft.com/127.0.0.3'
list address '/umwatsonc.telemetry.microsoft.com/127.0.0.3'
list address '/umwatsonc.events.data.microsoft.com/127.0.0.3'
list address '/ceuswatcab01.blob.core.windows.net/127.0.0.3'
list address '/ceuswatcab02.blob.core.windows.net/127.0.0.3'
list address '/eaus2watcab01.blob.core.windows.net/127.0.0.3'
list address '/eaus2watcab02.blob.core.windows.net/127.0.0.3'
list address '/weus2watcab01.blob.core.windows.net/127.0.0.3'
list address '/weus2watcab02.blob.core.windows.net/127.0.0.3'
list address '/kmwatsonc.events.data.microsoft.com/127.0.0.3'
list address '/watson.live.com/127.0.0.3'
list address '/wns.notify.windows.com.akadns.net/127.0.0.3'
list address '/v10-win.vortex.data.microsoft.com.akadns.net/127.0.0.3'
list address '/us.vortex-win.data.microsoft.com/127.0.0.3/'
list address '/us-v10.events.data.microsoft.com/127.0.0.3'
list address '/watson.ppe.telemetry.microsoft.com/127.0.0.3'
list address '/telemetry.remoteapp.windowsazure.com/127.0.0.3'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'wifi'
option interface 'wifi'
option start '100'
option limit '150'
option leasetime '12h'
config host
option name 'host1'
option ip '192.168.23.167'
list mac '11:22:33:44:55:66'
root@OpenWrt:/etc/config# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Kodi Remote http-8080'
option src 'wifi'
option dest 'lan'
option dest_port '8080'
option target 'ACCEPT'
list proto 'tcp'
list dest_ip '192.168.22.2'
config rule
option name 'Allow-NFS-RPC'
option proto 'tcp udp'
option dest_port '111'
option target 'ACCEPT'
option src 'wifi'
config rule
option name 'Allow-NFS'
option proto 'tcp udp'
option dest_port '2049'
option target 'ACCEPT'
option src 'wifi'
config rule
option name 'Allow-NFS-Lock'
option proto 'tcp udp'
option target 'ACCEPT'
option dest_port '32777-32780'
option src 'wifi'
config rule
option name 'Allow-Transmission-UI'
list proto 'tcp'
option src 'wifi'
list dest_ip '192.168.22.1'
option dest_port '9091'
option target 'ACCEPT'
config rule
option name 'Allow DHCP from WIFIG'
list proto 'udp'
option src 'wifiguest'
option src_port '68'
option dest_port '67'
option target 'ACCEPT'
config rule
option name 'Allow DNS from WIFIG'
option src 'wifiguest'
list dest_ip '192.168.24.1'
option dest_port '53'
option target 'ACCEPT'
config zone
option name 'wifi'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'wifi'
config zone
option name 'wifiguest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'wifiguest'
config forwarding
option src 'wifi'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'wifi'
config rule
option src 'wifi'
option dest 'lan'
list dest_ip '192.168.22.1'
option target 'ACCEPT'
list proto 'tcp'
list proto 'udp'
list proto 'icmp'
and here the config of the secondary one
root@linksys:~# ubus call system board
{
"kernel": "6.6.93",
"hostname": "linksys",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "Linksys MR8300 (Dallas)",
"board_name": "linksys,mr8300",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.2",
"revision": "r28739-d9340319c6",
"target": "ipq40xx/generic",
"description": "OpenWrt 24.10.2 r28739-d9340319c6",
"builddate": "1750711236"
}
}
root@linksys:~# 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 '::/48'
option packet_steering '2'
option steering_flows '128'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1.1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config device
option name 'lan1'
option macaddr '11:22:33:44:55:66'
config device
option name 'lan2'
option macaddr '11:22:33:44:55:66'
config device
option name 'lan3'
option macaddr '11:22:33:44:55:66'
config device
option name 'lan4'
option macaddr '11:22:33:44:55:66'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.22.1'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.22.254'
list dns '192.168.22.254'
config device
option name 'wan'
option macaddr '11:22:33:44:55:66'
config device
option type 'bridge'
option name 'br-wifi'
list ports 'lan1.2'
config interface 'wifi'
option proto 'none'
option device 'br-wifi'
config device
option type 'bridge'
option name 'br-wifiguest'
list ports 'lan1.3'
config interface 'wifiguest'
option proto 'none'
option device 'br-wifiguest'
config device
option type '8021q'
option ifname 'lan1'
option vid '1'
option name 'lan1.1'
config device
option type '8021q'
option ifname 'lan1'
option vid '2'
option name 'lan1.2'
config device
option type '8021q'
option ifname 'lan1'
option vid '3'
option name 'lan1.3'
root@linksys:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'soc/40000000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
option channel 'auto'
option band '5g'
option htmode 'VHT80'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'MyOldSSID'
option encryption 'sae'
option key 'a.good.password'
option network 'wifi'
option macfilter 'allow'
option skip_inactivity_poll '1'
option ieee80211r '1'
option mobility_domain 'caca'
option ft_over_ds '0'
option disassoc_low_ack '0'
option ocv '0'
list maclist '11:22:33:44:55:66'
option nasid 'openwrt2'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/a000000.wifi'
option channel 'auto'
option band '2g'
option htmode 'HT40'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'wifi'
option mode 'ap'
option ssid 'MyOldSSID'
option encryption 'sae'
option key 'a.good.password'
option macfilter 'allow'
option skip_inactivity_poll '1'
option ieee80211r '1'
option mobility_domain 'caca'
option ft_over_ds '0'
option disassoc_low_ack '0'
option ocv '0'
list maclist '11:22:33:44:55:66'
config wifi-device 'radio2'
option type 'mac80211'
option path 'platform/soc/a800000.wifi'
option band '5g'
option htmode 'VHT80'
option cell_density '0'
option channel 'auto'
config wifi-iface 'default_radio2'
option device 'radio2'
option mode 'ap'
option ssid 'MyOldSSID'
option encryption 'sae'
option key 'a.good.password'
option network 'wifi'
option macfilter 'allow'
option skip_inactivity_poll '1'
option ieee80211r '1'
option mobility_domain 'caca'
option ft_over_ds '0'
option disassoc_low_ack '0'
option ocv '0'
list maclist '11:22:33:44:55:66'
config wifi-iface 'wifinet6'
option device 'radio0'
option mode 'ap'
option ssid 'MyOldSSIDL'
option encryption 'psk2+ccmp'
option macfilter 'allow'
option key 'another.password'
option ieee80211w '1'
option network 'wifi'
list maclist '11:22:33:44:55:66'
option ocv '0'
config wifi-iface 'wifinet7'
option device 'radio1'
option mode 'ap'
option ssid 'MyOldSSIDL'
option encryption 'psk2'
option macfilter 'allow'
option key 'another.password'
option network 'wifi'
list maclist '11:22:33:44:55:66'
config wifi-iface 'wifinet8'
option device 'radio2'
option mode 'ap'
option ssid 'MyOldSSIDL'
option encryption 'psk2'
option macfilter 'allow'
option network 'wifi'
option key 'another.password'
config wifi-iface 'wifinet9'
option device 'radio1'
option mode 'ap'
option ssid 'MyOldSSIDG'
option encryption 'sae-mixed'
option isolate '1'
option key 'guest.password'
option network 'wifiguest'
option ocv '0'
root@linksys:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '2000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option ednspacket_max '1232'
list interface 'lan'
list interface 'wifi'
list interface 'wifiguest'
list server '127.0.0.1#5054'
list server '/use-application-dns.net/'
list server '/mask.icloud.com/'
list server '/mask-h2.icloud.com/'
list server '127.0.0.1#5053'
config dhcp 'lan'
option interface 'lan'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ignore '1'
option start '100'
option limit '150'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'wifi'
option interface 'wifi'
option start '100'
option limit '150'
option leasetime '12h'
option ignore '1'
config dhcp 'wifiguest'
option interface 'wifiguest'
option start '100'
option limit '150'
option leasetime '12h'
option ignore '1'
config host
option name 'host1'
option dns '1'
option mac '11:22:33:44:55:66'
option ip '192.168.23.114'
root@linksys:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
option flow_offloading '1'
option flow_offloading_hw '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
config rule
option name 'Allow-NFS-RPC'
option proto 'tcp udp'
option dest_port '111'
option target 'ACCEPT'
option src 'wifi'
config rule
option name 'Allow-NFS'
option proto 'tcp udp'
option dest_port '2049'
option target 'ACCEPT'
option src 'wifi'
config rule
option name 'Allow-NFS-Lock'
option proto 'tcp udp'
option target 'ACCEPT'
option dest_port '32777-32780'
option src 'wifi'
config rule
option name 'Allow-Transmission-UI'
list proto 'tcp'
option src 'wifi'
list dest_ip '192.168.22.1'
option dest_port '9091'
option target 'ACCEPT'
config rule
option name 'Allow DHCP from WIFIG'
list proto 'udp'
option src 'wifiguest'
option src_port '68'
option dest_port '67'
option target 'ACCEPT'
config rule
option name 'Allow DNS from WIFIG'
option src 'wifiguest'
list dest_ip '192.168.24.1'
option dest_port '53'
option target 'ACCEPT'
config zone
option name 'wifi'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'wifi'
config zone
option name 'wifiguest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'wifiguest'
config forwarding
option src 'wifi'
option dest 'wan'
config forwarding
option src 'wifiguest'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'wifi'