How to combine 2 group ip in 1 router

Hi, I need guied for newbie

I have
group ip A 192.168.5.x/24 (use for local pc)
Group ip B 192.168.2.x/24 (use for nas/server)

Br-lan eth2, eth3, wifi 1,wifi2
Wan eth0, Wanb eth1combine with mwan3

My goal is
How to combine both group with same router?
Just need both side can access.

Try put second router don't why from A can't access group B, but group B can access group A.

Thanks for help

Run them all in the same subnet ?

Use the proper rule in mwan3 with source address to route the traffic out of the correct uplink.

I don't see mwan is issue. Tested 2isp can work well with group a.

Now thinking create group B for nas, just don't know how to set group a can talk with group b

Atm only 1 isp active.

Yes

Using same subnet 255.255.255.0

Is home project, max ony 50 device in my house, so I use normal ip and subnet

No need for anything special. Lan subnets will be included in all routing tables for all uplinks.

hope this can give more detail

current configuration only group A, don't know how to add group B working.

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 'fdbd:0e02:db57::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth2'
        list ports 'eth3'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ip6assign '60'
        list ipaddr '192.168.5.1/24'

config interface 'wan'
        option device 'eth0'
        option proto 'dhcp'
        option metric '10'

config interface 'wan6'
        option device 'eth0'
        option proto 'dhcpv6'

config interface 'wanb'
        option proto 'dhcp'
        option device 'eth1'
        option metric '20'

config interface 'ZeroTier'
        option proto 'none'
        option device 'ztr2qyexzy'

config device
        option name 'eth0'
        option macaddr 'C0:BF:C1:20:65:8B'
config interface 'lan2'
        option device 'br-lan2'
        option proto 'static'
        option ip6assign '60'
        list ipaddr '192.168.2.1/24'

Make sure you have allocated the necessary ports to br-lan2 first.

So I set eth2 for group a
And eth3 for group b

Right?

Will do test asap

Thanks