Mesh possible with 2 router via uci?

I'm trying to create a mesh network with two routers like in the image. How do I go about it?

I has two router on OpenWrt

Thanks

Would the routers be interconnected via wifi or RJ45 ?

hi frollic via wifi only

The commercial / marketing name is 'mesh' but a lot of the time the 2nd router just acts as a wireless repeater / extender. Details how to set it up can be found over here:

You should be able to configure 802.11s via Luci too.
With only 2 wireless routers you probably don't need any extra tooling.

See https://openwrt.org/docs/guide-user/network/wifi/mesh/802-11s

@Drop

Yes, but you need to install at least wpad-mesh-mbedtls for the mesh backhaul to be encrypted.

It will be just fine. You have to decide the backhaul compromise between performance on 5GHz and reliability on 2.4GHz.

With 3 meshnodes, expect trouble unless you are very lucky with placement etc as paths will start to be unstable.
With 4 meshnodes, it will be a disaster unless you are extremely lucky.

For 3 or more nodes it is essential to use "extra tooling", aka Mesh11sd or Batman.

ok thanks for explanation yes only two router for the moment but maybe 3 router later in my home

i has mesh-mbedtls and mesh11sd installed now on my two router

can you use mesh11sd if i only two router ?

Yes, but be aware you cannot configure the actual mesh using uci or luci, you must let Mesh11sd do it all for you, as it is is a dynamic configuration handled autonomously.

Read the documentation:

hi i has test mesh i has this message not luci installed now

WARNING: LuCI is currently DISABLED
LuCI does not understand Mesh11sd's autonomous dynamic Auto Configuration.

At your own risk, Mesh11sd's configuration changes can be persisted to flash/disk storage,
thus re-enabling LuCI.

Generally this is safe to do if the location and functionality of your mesh nodes
is unlikely to change from the current state.
This process can be reverted at any time.

Be warned that LuCI may well omit or incorrectly display many aspects of the network configuration.

how to reactive luci ? thanks

Is it working?
If it is working and the nodes are in their final locations you can switch to "static" mode and turn Luci back on.
If it is NOT working, you need to fix it first.

ok thanks for the moment doesnt work i will try later