🤖Testing out the Ethernet Switch of the Planet! ZeroTier ft. MikroTik!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome in this video we'll be looking at how to configure zero tier on a microtech device and generally just how to use zero tier what it's for so i hope you enjoyed the lesson and i'll see you in the video alrighty so before we jump into any setup i just quickly want to talk about zero tier and if i look at their website here with the documentation which i will link in the comment it says zero tier is a smart ethernet switch for planet earth which is huge actually because that makes me think hey we can connect a bunch of devices to the cloud and act as if they were on a switch that is crazy and there's so many uses that we can combine that with you could set up stuff like out of band management networks you could set up special type of routing or vpn connections like the possibilities are almost endless to be honest and i really love this idea so zero tier in essence is a cloud based service that we can subscribe to and it is free up to the first hundred or so devices that you add and these devices can then connect to the cloud and communicate with each other as if they were on one network that that is really awesome to me so um without this documentation i actually want to go over what we need to do with the microtic so let's jump to that portion okay so let's talk about what we need on our micro ticks in order to run zero tier so the first thing is you need to install a version seven on your micro tick and currently version seven is still in beta it's not out yet which means this is all pretty much experimental and you can't just load this on any device so with the software packages you're going to have to download the extra package to get the zero tier package but it's only available with the arm software so if i'm going to install this i need to make sure i'm above version 7.1 rc2 is when they release this so if you have a version 7 beta below rc2 it will not work and then you can just download the extra package so you can just save the image and it will download onto your computer and then once that has downloaded you can actually um just unzip the files and have a look and see what's going on so let me just open this up so you can see because in essence the thing that you want is this zero to your package and all that you need to do is you need to just save this copy that to your microtex file system restart the device and it will boot up with the zero tier image but the zero two we're mainly going to be configuring through the command line so i'll show you that now okay so from marketing i'm going to assume that you have imported the package and you can verify that the package is there by going to system packages and then you should see the zero tier package here if this is here it means it will work if you don't have this then none of the commands will work so what we're going to do is just navigate to the terminal first thing that you want to do is you want to set a the zero tier to be enabled so you can type zero tier enable and then if i do tab you'll see this is zt1 and that is the default instance which you will want to enable so that the zero tier actually works on your marketing now that we've enabled zero tier we still need to add an interface so to do this we do zero tier interface add and if i question mark this we actually see there's stuff that's going to be very important to us because the first thing is the network so the network is very important because this isn't like your network like your subnet that you're going to be putting in a zero to your interface this is your network id that you're going to be getting from zero tier that you can configure which the devices will use to connect to the cloud and form connectivity think of this almost like a pre-shared key on a vpn that users are going to use to authenticate but instead of authenticating to each other they're using an id that we get from the zero tier cloud to connect and we're going to set this up now by actually going into zero tier and then getting the network details all right so let's look at logging into xero tier so what you're first going to do is you're going to sign up and you'll put in some email address details you'll sign in verify your email account and it's as quick as that really but i'm just going to log in since i've already got a zero to your account uh networkbird.com and once i log in you might see something like a network that's already been generated and i'm just going to create a network and it might just look like this it has a random name it gives you some subnet details there and there's the network id so that is the important bit that we're going to need to connect to i'm just going to open this up to show you exactly what's happening in zero tier because your network id is what the device is used to connect to when they connect to the cloud the name you can change that you can make it whatever you want i'll make this tmb lab if i want or tmb space lab and then i'll give it a description my little lab and then we get stuff like access control so access control is actually very important because you can set it for private which means an administrator on the xero tier portal needs to approve or authorize any devices that's connecting or you can set it to public but that is definitely less secure which means any device can just automatically be connected to your id if they have the id but it's a security risk because if somebody that's not supposed to be able to connect get your id details they'll be able to get onto the network so i highly suggest leaving this on private and here it asks you some stuff about managed routes so this is pretty cool because you can inject routes to your clients to tell them how to get to different uh subnets perhaps and we'll play around with that a little bit later in the video but here we get our ipv4 auto assign so we can set to auto assign oracle manually assign but i'll put it for auto assign we can put it on easy and all that this means is the zero tier will automatically assign ip addresses to clients within this range within the scope so let me maybe make it 172 dot you can also do ipv6 auto assign if you so choose and here are some rules and stuff that you can also play around with but we are not going to make any changes with this what we want to focus on is the members now because currently no devices have joined this network use the zero tier one app on your devices to join here is my id and it's the same id that's at the very beginning so i'm just going to copy this id and then i'm going to navigate back to my microtic and then on my microtic my network i'm just going to paste this in and it's that simple you also just need to specify an instance which is the zt1 and once i hit enter i'll actually be connected to zero tier so i'm just going to do a zero to your interface print and what you'll see is it picks up there's the interface that it's creating there's the mac address that it's created there's my network and the status is currently accessed tonight and the reason that and the reason that is happening is because of that access control so let me just navigate back to zero tier and if i refresh my page i should actually see that member now so it says there is a member but you should at least have two devices for this to function properly which is which goes without saying i think but there is my member there's the address for my member the mac address that i'm learning from them i can give it a name i can even assign an ip myself if i would like to and i will like to do that so i'm going to make it 172.28 0.1 and if i click on the plus that's the ip address it will always assign to that machine but what we need to do is since the private access control is set we actually need to click on which members we want to authorize so i'll just click on this and now this member will be authorized now it will be allowed to connect let me just go back to my win box and if i do a 02 interface print i can actually see the status is now okay and it even tells me what the network name is so that is awesome i've actually now connected or integrated this micro tick to zero tier it's part of the zero tier cloud which is all software defined networking this stuff is so cool guys i really love it now to actually reap the full benefits of this we need to add another device and for that i'm just going to add my own uh windows computer so let me just navigate to my zero tier app that i downloaded and you can download this directly from zero tier on their website let me just open the control panel and you'll see how straightforward this is it tells you your zero to your address your version all that stuff but all that you need is the network id so let me just copy that again paste that in here join the network and there it tells me hey there's some stuff here uh would you like the devices to be scannable but i'm just going to say no and if i look at the background i can see the new device which is my pc has been picked up let's just give the pc a static ip as well but if you lift that it would just automatically get ip like the hcp so let me make this dot too and let's give it a name let me call this the pc and then we call this the router and let's off this pc so now that the pc has been off as well it'll pick up a few additional details and now the real fun begins so what i want to test is from my pc can i actually ping 172 28 0.1 which is the zero tier management ip of the remote router so let's see that's awesome i can ping that um now let's see if i can actually connect to that device using winbox so let me open up one box connect to 172 28 0.1 with my login credentials and i'm on that router remotely via the zero tier interface think of this it's it's like a vpn but it's also not a vpn it's more like vx lan if you if you know what vxlan is but now my devices are actually able to communicate with each other so if i added my phone for example also to the zero tier i could connect to the micro tick and manage it through my phone this is really really awesome stuff let's quickly do something fun i'm going to create a bridge interface and let's just call the bridge interface allo 0 and this is on the micro tick and what i'm going to do is add a private address 192 168 um 50.1 24 to the bridge and now we're going to orchestrate some routing from the cloud from our zero tier so let me go on to zero tier and let's add routing for that so what i could do is i could say i want to add routing for 192.168.50.0024 and if people want to get there they can get there by going to 172 280.1 which is the router's address so now you'll see it has added a route for it and this route will now be injected to my client so if i go on to my command prompt what i could do is i could do a route print and let's just print a route for 192.168.50.0 and there i can see i'm actually learning her out and it says to get there you will use 172 280.1 this is so cool guys let's see can i ping 192.168.50.1 i can ping that and that is via our tunnel or our connection via zero tier this is really interesting and cool stuff like you can build such a complex overlay network with this this is amazing and i'm looking forward to see this become more accessible via different packages or different models of routers and i'm actually hopeful to see version seven come out sooner now because of stuff like the zero tier because as you can see there's a bunch of cool stuff that you can do here it's not just so devices can just talk to each other it's it's like having this massive cool big switch the switch of the planet connecting so that all your devices can just start communicating all right i'm going to end off the lesson here i just quickly wanted to show you how to set up the xero tier how to add a micro tick how to add a pc and how you can access your marketing remotely then via your zero tier interface and i'd like to thank everybody that's been supporting the channel on patreon and as a youtube member you guys have been helping me and supporting so much in ways that i can better the channel so anyways guys see you in the next video have fun have a great day bye
Info
Channel: The Network Berg
Views: 5,131
Rating: undefined out of 5
Keywords: #MikroTik, #ZeroTier, #AWESOME
Id: eFI59jJ2MM8
Channel Id: undefined
Length: 13min 30sec (810 seconds)
Published: Thu Dec 02 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.