Static Routing Between Two EdgeRouters

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to another episode of quick tech tips and reviews my name is Tony and with this channel I try to bring you guys a variety of different tech related content so if this is your first time with us please consider subscribing to the channel and make sure you hit that little bell so that you're alerted to when I release new content in today's video we're going to take a look at how to connect to edge routers using the basic principles of static routing okay guys so recently I had a viewer asked how to connect up to locations using static routing a little user has edge routers in both locations and they have internet coming into one of the locations so the end result is they want both locations to be able to use the same internet connection as well as have both local area networks communicate with each other so that being said I don't know if this is for a business setup with two locations or if this is just a residential scenario where they're trying to connect up and share Internet services I'm not sure but in any event we're gonna take a look at how to connect up the two edge routers using static routing let's take a look at this diagram and see what we have going on so we're working with two edge routers in this scenario let's look at this diagram on the Left we have an edge router X which will refer to as router a and on the right we have an edge router X SFP which will refer to as router B now we have the internet coming in to zero on the edge router X and then we have a local area network hanging off of either one as you see here over on the right side we have a local area network hanging off of eath one and then we have created a network between the two routers on router a we're using port for a none router B we're using e zero and we assigned an address to router a eath four of 1000 dot one and router B is zero 1000 two hence network between these two routers now in a real-world situation you can also depending on the distance and the scenario use a wireless point-to-point if the locations are within close enough range that being said for the purpose of this video I'm just going to simulate that connection or that network by using an Ethernet cable and directly connecting both of these routers now when using static routing the information that you need to know is the next hop gateway address and the destination LAN address so in this case for router a the next hop gateway address would be that of router b1000 2 and the destination land would be 192.168.1.0 slash 24 in Reverse for router be the next hop gateway address would be that of router a 1000 dot 1 and the destination land would be 192.168.1 hundred does 0/24 now I know that may all seem a little confusing but I think it'll make more sense once we get to the actual configuration that being said let's go to the edge router X dash board ok guys so I'm signed in to the edge router X router a in the diagram now all I did to config this router was run the basic setup wizard out of the box if you'd like to see how that's done I'll put a link to an unboxing and setup video up above before we start configuring this router for static mapping over to the edge router X SFP let's take a look at the default configuration we received from the setup wizard so we have our R and port on e 2 0 you can see the status is connected now don't mind the private IP address I just have that plugged into a switch on my main network to simulate the internet in your case this should be a public IP address that's issued to you from your ISP I have this computer plugged into E 2 and then we have switched 0 which consists of eath 1 2 3 & 4 by default the wizard also set up the default firewall rule set for when in and when local as well as a default DHCP server for the local area network and the DNS configuration so that being said what we need to do to start configuring this router for static mapping based on the diagram we need to configure eath for but before we can configure eith for we need to remove it from Switzer oh so let's do that now let's come over to switch 0 let's click on the actions drop-down and select config and we're presented with the interface configuration for switches 0 a dialog box let's click on the VLAN tab and simply uncheck eath 4 and click Save now that we've removed eath 4 from switzer o we can configure it and begin the process of developing the bridge network for our static mapping so we're going to come over to e4 click on the actions drop-down and select config and we're presented with the interface configuration for eighth for dialog box so we're going to give it a name and I'm going to call this bridge network we're going to assign it a manual IP address now based on that diagram this address is 10.00 duh 1 / 24 so we'll go ahead and we'll say save ok so now we have eath 4 configured on the 10.1 10.0.0.0 over to the routing tab and we'll take a look at the routes that the router created by default as a result of the wizard you see all the connected routes and the one static route out to the internet 0.0.0.0 / 24 refers to the internet and it's getting there through my main router my main network which is the next hop gateway and that being said we're gonna add the static route over to the edge router excess FP even though we did not config that router yet remember what I said in the when I was showing you the diagram you need to know two pieces of information to create the static route that's the next hop address and the destination network so we know that information we know that the next hop address for router a is going to be the Gateway of router B which is 10.00 - and the local area network destination on router B is 192.168.1.0 slash 24 so we have the information we need to create the static route from router a to router B so let's click on add a static route and we're presented with the create IP version 4 static route dialog box select the route type we're gonna leave it set as gateway because that's the type of route we want and the destination network is 192.168.1.0 slash 24 and the next hop address is the port either 0 on router B and that is 1000 dot - you can give it a description if you want I'm just gonna leave it blank for the purpose of this video and the distance could be any number from 1 to 255 this is an administrative distance it basically means the ranking of the routes so the lower the number the more preferred so I'm just going to leave this set to 1 make sure it's enabled and we're going to click on save and there we go so now we have our static route over to 192.168.1.0 slash 24 the next hop is 10.00 2 which is going to be router B the edge router X SFP and then it is a static type route and it's in FIB said that is good so we are done here now let's switch over to the edge router X SFP and begin the configuration on that router ok guys so I did a factory reset on the edge router X SFP so it simulates it coming right out of the box that being said I'm plugged into eath zero so that I can get to manage the router you can see I set my network settings to an IP address in that 192.168.1 range manually and when the router comes back up it says it's in default config and it asks do you want to start off with a basic setup wizard so I'm going to go ahead and say no for this ok so what we have is 8 0 and it's on the default router address of 192.168.1.1 now we're gonna digress we're just gonna make one mine minor modification from that diagram originally we were gonna put the other side of the bridge network on e 0 and hang the 192 Network off of eath 1 so we're just going to reverse that but basically the whole concept of static mapping does not change so we're going to leave the 192.168.1.1 slash 24 on 0 we're gonna go into eath 1 now and we're going to configure that as 1000 to the other side of the bridge network so we're going to call this bridge oops network instead of assigning it an address from DHCP we're going to give it a manually define address of 1000 to slash 24 now we're going to go ahead and say save ok now that we have that established next thing we need to do is we need to go into our services tab and we need to add a DHCP server for the land so we're going to call this land and we're going to give it 192.168.1.0 this last 24 and just for the purposes of this video we'll make the starting range 2 and the stopping range or the ending range 254 we're gonna make it 1.1 and we're gonna use the same for the DNS server and we could pop in a public dns here of one dot one dot one dot one and we'll go ahead and we'll say save okay now we have our DHCP server set up let's go into DNS and let's pick an interface so we have our land on e 0 so we're gonna have our listening face on it 0 and we can just set the cache size to 150 and we'll go ahead and say save here okay so it's 0 has our local network or local area network eath 1 is the other side of the bridge we're not done yet though it's going to the firewall in that tab let's go into NAT and we need to create a source and that rule we're basically going to call this out to bridge we're going to you we're going to say that the outbound internet in this case is eath 1 and we're going to use masquerade and then we're going to come down and say save ok now that we have all that in place we should be able to connect the cable from eath 1 on the edge router excess FP over to eath 4 on the edge router X and we should get a connected status so I'll be right back let me do that let's see what happens okay guys so let's see so we have a connection or a connected status on the bridge network on eath one so now let's go over to the routing tab and let's add a static route over to the internet so we're on router B now and what we want to do is make a static path or a static route over that bridge network over to the next hop on router a which is ten dot 0 dot 0 dot Internet so the type of route we want to use is a gateway route the destination Network in this case is the internet which is represented by all zeros so 0.0.0.0 slash the next hop address in this case for router B is going to be 8th for on router 1 which is 10 0 dot 0 dot 1 we can call this Internet and we'll assign the administrative distance of 1 meaning the most preferred or go ahead and say save ok guys so I've changed my network settings back to DHCP as you can see here and I have DNS information as well so I should be able to get out to the internet from router be going over the bridge network to the next hop address on router a and then out to the Internet so let's bring up a ping tool and run a couple of different tests so let's start off by pinging Google and you can see we're getting a successful ping let's ping Google again but this time let's ping the domain name just to make sure that DNS is resolving properly and you can see guys we're getting a successful ping from there as well okay let's do a clear screen for a second and let's do a trace route just to see what's going on and we'll trace route over to google.com and just to take a look at what's happening let's go back to here to the top there and you can see here we're starting at the gateway 192.168.1.1 which is router B it's hopping over the bridge Network to the next hop on router a of 10.0 deserve that one and then it's going out the main router to the internet now remember I was simulating the internet well to the edge router X off of my main router and that's what this is so everything here is working as expected so the next thing I'm going to do is just flip around Oh note one more thing I forgot I do have a PC hanging off the network on router a so I'm going to be able to ping from router B now to router a that PC so let's see so let's bring up a ping tool and the address of that PC is 192.168.1 hundred dot 39 now remember I'm in a remote land with the address of 192.168.1.2 so you can see here now I'm getting successful ping across that bridge network over to router a ok now I'm going to stop the video for a second flip around the two computer Ethernet cables so example those computers in router B and the other PC that we just paint is in router a now I'm going to put I'm going to flip that around I'm gonna put this computer in router a and that PC and router B so that we can test connectivity from router a's lan to router B's lin I'll be right back ok guys so I've flipped the cable so now I have this PC plug into router hey I have the Windows laptop plugged into router B I have an address here as you can see on the screen one ninety two dot one sixty eight thousand one hundred thirty-eight and the Windows PC over on the other router has an address of 192.168.1 thirty nine you're gonna have to trust me on that one guys so I'm going to bring up a ping tool and we're just gonna make sure that we can ping over from one land to the other so we're gonna bring say ping and the address is 192.168.1.3 nine and there you go we have a successful ping now some of you might be thinking that the way this is set up that I could ping the router and access the router from each respective local area network and that is true and that's I'm gonna leave it for now I'm aware of that I just put this video together based on requests that I receive where they wanted full connectivity and they just wanted router B clients or hosts to be able to get out to the internet through router a so that being said yes I am aware that hosts from both remote local area networks can access the remote router however that can be locked down with a simple firewall rule preventing that and maybe that's a topic for another video so there you have it guys if you liked this video found it helpful and would like to see more videos like this please give it a thumbs up be sure to check out some of my other videos up above you can help out the channel by remembering to subscribe give the video a like if you haven't already and share the video and remember to use those Amazon affiliate links down in the video description below I know they don't change your price but they do help out the channel my name is Tony with Creek tech solutions as always I thank you for watching see you next time [Music]
Info
Channel: Quik Tech Solutions L.L.C
Views: 9,581
Rating: undefined out of 5
Keywords: EdgeRouter, Ubiquiti, Static Routes, Static Routing, Static Routing Between Two EdgeRouters, configure static routing, how to configure static routing, ubiquiti routing and switching, ubiquiti routing and switching basics, static routes explained, static routes unifi, static routing between 2 routers, static routing configuration
Id: r2dMXiqKA0Y
Channel Id: undefined
Length: 19min 32sec (1172 seconds)
Published: Sat Aug 31 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.