@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
Check configuration with:
[admin@MikroTik] > zerotier/interface/print
Enable forwarding of packets
[admin@mikrotik] /ip firewall filter> add action=accept chain=forward in-interface=zerotier1 place-before=0
[admin@mikrotik] /ip firewall filter> add action=accept chain=input in-interface=zerotier1 place-before=0
-
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
-
Create a new bridge called ztbridge
-
Add physical interface and zerotier one
[admin@MikroTik] /interface/bridge/port
[admin@MikroTik] /interface/bridge/port> add bridge=ztbridge interface=zerotier1 trusted=yes
[admin@MikroTik] /interface/bridge/port> add bridge=ztbridge interface=ether4 trusted=yes
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.