Kurobeats icon

Zerotier Routing instead of Switching/Bridging

Kurobeats | PRO | 02/22/18 12:13:49 PM UTC | 0 ⭐ | 201 👁️ | Never ⏰ | []
text |

1.59 KB

|

None

|

0 👍

/

0 👎

https://www.reddit.com/r/zerotier/comments/7ufhu8/ethernet_bridge_via_linux/
 It sounds more like you are trying to route between the two networks.  A bridge is more like a network extension via a switch; in this case a software one.
 Short answer of how to do this:
* Setup zerotier and local network interface
* Turn on IP forwarding, 
* In /etc/sysctl.conf add,
    net.ipv4.conf.all.forwarding=1
    net.ipv4.conf.default.forwarding=1
    net.ipv6.conf.all.forwarding=1
    net.ipv6.conf.default.forwarding=1
* Do a 'sysctl --system' or reboot the linux system
* At the router for the LAN, add a route to point to the ZT network via the linux system
* Via the zerotier control panel, add a route pointing to the LAN network via the linux system ip
At this point anything on the zerotier network should be able to ping the LAN devices and the other way around as well.
 Then that way you don't have to edit many devices and should be able to ping between the networks.
 I do this currently between 3 networks in a similar fashion using ZT as the transport medium so to speak.
Details: 3 networks: LAN, RemoteNET1, RemoteNET2.  Each has a linux box that is configured roughly the same as above.  Though they have a routing daemon installed which talks across the ZT network and tells the other boxes what networks are available.  I then have the routers on each of the segments listen to the same routing protocol (as it is broadcasted on the ZT and local interface on each) and thus get dynamic routing in all three locations.  I just skipped the ZT control panel route as I only have the 3 devices on it.

Comments