Hello there
i am new to mikrotik router ( i have got one today )
i have installed zerotier in mikrotik ,but i do not know how to let mikrotik make lan devices reachable via zerotier client :
netwrok A
PC- zerotier client IP (10.147.20.133)
network - B
internet modem 192.168.1.1
mikrotik 192.168.1.2
zerotier client -installed on mikrotik 10.147.20.135
PC 1 lan 192.168.1.10
PC 2 lan 192.168.1.20
PC 3 lan 192.168.1.30
what i need now is how to reach PC1-PC2 and PC3 in network B from PC in network A
I can do that by routing zerotier and physical network in linux , but do not know how to do that in mikrotik .
Hello,
thanks for writing.
I’m not sure what to do on the mikrotik side. In general, you need to allow ip forwarding on the “router” device. Maybe someone will chime in, or you can check on the mikrotik forum or docs.
On the zerotier network, you can add a managed route 192.168.1.0/23 via 10.147.20.133 so that your zerotier devices will know the route to that LAN.
Actually i know how to deal with zerotier web console and work great with linux debian ,my problem is with mikrotik .
i arelady asked my need on mikrotik website but waiting my Question to be approved first then will be posted .
the mikrotik it self is confusing that’s why i do not know where to start and how to work with ethernet ports etc…
@taqwarami , I’ve been able to add the lan ports to the ZT network, so that a physical device connected in the Mikrotik will be reachable to the rest of the ZT devices.
The use case I’m pursuing is to have VoiP phones connected to the MK reaching a PBX that has a ZT address. The problem I found so far is that the physical devices need to be configured with static IP to work, as I couldn’t manage the ZT network to provide DHCP addresses just yet. Maybe posting this here will allow someone to respond with a solution.
This is what I’ve done:
Powerup Mikrotik switch
Connect ethernet cable to port1. This will give the Mikrotik an IP on the network. Then connect to the device using WinBox via IP 192.168.88.1
Install the ZeroTier package if not there already by downloading package from mikrotik.com and uploading to router using files command on the router (drag and drop file)
[admin@mikrotik] > zerotier/enable zt1
[admin@mikrotik] zerotier/interface/add network=zt-network-id instance=zt1
Remove physical interface from the default bridge
The 5 ethernet interfaces are joined in a bridge called ‘bridge’. You need to remove them first, before enabling them in a new bridge. In Winbox, remove the interfaces using the Bridges menu
The trusted=yes allows DHCP packets to transverse that network.
Now your ether4 port is part of the ZT network. Assign a static IP on your computer with gateway on your zt network IP but ending on xx.yy.zz.1 and connect to the Ether4 port. You should be able to ping the other zt devices.
Again, this works for static IP on the physical network. I don’t know how to make it work with ZT provide DHCP ranges. Maybe I need to add a new DHCP server on the Mikrotik with a DHCP range outside of the ZT DHCP range, but in the same subnet? Just a thought as I’m writing this up.