Ok so i got this running in Openwrt router tire both layer 2 and layer 3 and works
in layer 3 mysetup
example setup
internet->wan of mikrotik. Mikrotik (Serves Dhcp) ip. 11.11.11.254-> switch
Opwrt Router setup->opwrt or put on switch-> in lan fixed the ip to 11.11.11.7-> dhcp off(as mikrotik is providing it )-> gateway 11.11.11.254->dns 8.8.8.8-> network 11.11.11.255
ZeroTier Controller
IPv4 Auto-Assign (advanced)
[x] Auto-Assign from Range: 192.168.2.2-192.168.2.4
Managed Routes:
192.168.2.0/24 (LAN)
11.11.11.0/24 (192.168.2.1(this is fixed for opwrt router online on ZeroTier website )
so on 11.11.11.0/24
i have
mikrotik 11.11.11.254
Openwrt router 11.11.11.7(local lan), 192.168.2.1(ZeroTier)
From external network i can ping 11.11.11.7 but cannot 11.11.11.254.
Has anyone done this routing to achieve this.
L2 i tried keeping the Zt dhcp ipaddresses same as 11.11.11.0/24 network and then bridge zt lan and local lan and it works . but i want in L3 that is the first example.
There has to be additional router on the openwrt router from local lan 11.11.11.7 to rest of the local network