Configuring Two Routers CLI in Cisco Packet Tracer

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone and welcome back to another code in chat with Zack today we're going to be following up on the last video for cisco packet tracer and today we're going to be configuring two routers that will communicate with each other within devices so let's go ahead and start to set that up now today we will be using 26 21 X M and that's just a personal choice however you can use any router that you see fit now today we will be using or setting up a serial connection between the two routers however you can use a gigabit or a fast internet or a fast ethernet with the same connection process the only difference would be the interface that you're programming other than that it will be the same process typically when you do see this in your textbook or on the internet they will be using a serial connection however so that's what we will use today all right so let's grab two end devices and let's hook them up first so we'll go to our connections we'll grab the cable crossover will go from Fast Ethernet 0 to 0 and again from here we'll put that in the zero zero there now when you're configuring here for your connection you can either go right over here and grab the serial DCE or the serial DTE depending on which side that you're working with however there is an easier way and if you're confused the simplest way is to grab this automatically choose connection type you'll connect it to there and to there and notice that it automatically picks one now in this case it picked what we had to work with which was only the F a are the Fast Ethernet we want to use a serial so what we need to do is delete that real quick and come in here and make a change so we're going to come into the physical device view turn off the router and grab this w I see one t card slide it in there in turn it back on and once again we'll do the same thing here this gives us the serial connection that we need in order to have a set up the serial device once again we'll grab from here and we'll come across and notice that it automatically chose the serial with the clock on this side alright so let's go ahead and start our network scheme so on this first network now remember a router separates networks so we actually have three networks one two and three so we will have to set up three naming schemes addressing schemes so the first one will make 192 168 1.0 Network and we will configure the first Fast Ethernet connection 0 0 as 192 168 1.1 and the PC 0 we will set 192 168 1 dot 2 we'll go ahead and repeat that process over here 192 168 2.0 network with s 0 0 will make will make a note of that that that's on router 0 s 0 0 will be 192 168 2.1 and router 1 0 0 will be 192 168 2.2 and finally our third will be 192 168 3.0 network with our Fast Ethernet connection on the router being 192 168 3.1 MPC 1 being 192 168 3.2 okay so that's our naming scheme for each of our our port connections and so now let's go ahead and start configuring so we'll go to router 1 go to the CLI remember here we just type in in and hit enter twice and then we type e in for enable and then config T for configuration terminal or configure terminal and that takes us to the configuration now from here let's move this over so we can see let's go ahead and set a hostname real quick we'll just call that r0 notice it changed right here and now we're going to configure our connection ports so f00 and we will set the IP address remember that when you're working in Cisco that you only have to give it enough letters of the words so that Cisco knows which command you're looking for so you can do IP add which will be IP address and we want f00 which is right here 192 168 1.1 and then your network mask which is 255 255 255 0 we'll stick with the standard remember to do the no shutdown and make sure that it does say change to state up and now we have green all right so now we will exit out of that we'll go ahead and go into our serial int int 4 interface s0 0 and again we will set our IP add and this will be 192 168 2.1 remember right there and oops I forgot my network mask just hit the up arrow and now here we will use a 255 252 Network mask because we only have the 2 address the address is needed in this network hit enter it knows shut once again and this router is done for them now notice this one did not turn on and that's because we have not activated this connection port right here and the other thing is that we did not set the clock rate we can go ahead and do that real quick exit out of that will set clock rate at let's say 64,000 oops we do have to go back into our interface so that's int zero our serial s is zero zero and then we will type in clock rate 64,000 of course there are multiple clock rate so you can set up for whichever you need and exit out of that okay so next we will go to our router to our second router it no enable oops let's try that again e n config T gets us into the global configuration mode or and now we have our config here and now we need to repeat the same thing so let's go ahead and post name oops might help if we actually give it a name we'll call this r1 next interface f00 IP address 192 168 3.1 and I forgot my mask again and we are sticking with the default of 255 255 255 dot 0 to do a no shut change stay tuned up good you can exit out of that notice it turned green and now we can do our serial connection which is s00 now here when we do our address scheme remember this is 2 2 we come over here and look at it real quick yeah - 2 and we did our 255 255 255 256 --it that so now notice we have green lights and everything is connected so the next thing we need to do is go ahead and click on our PC go to desktop IP configuration and set this up 192 168 1 dot 2 we can leave that as it is for now and now we need to set our default gateway which will be this switch right here so 192 168 1 not 1 and now we come over here do the same thing desktop IP configuration 192 168 3.2 that can stay the same and our default gateway now is this which is 192 168 3.1 okay so we've set it all up so let's go ahead and try to ping and now we will pin 192 168 3.2 notice that destination host is unreachable so then close that what that means is we don't know how from this router to get over to here it doesn't have that so we need to set up what's called an IP route so go back into here real fast and we will type in IP route now the route we're trying to get is this network over here 192 168 3.0 Network which is a 255 255 255 0 netmask now how do we get there well we get there by this connection this serial port right here which is 192 168 2.2 then we can do we just did that one no we'll do this one once again IP route and 192 168 and now we're trying to get to this dot 1.0 Network 255 255 255 0 netmask and finally we get there by going through this serial connection so that is 2.1 all right close that and to test our ping now that we've set up both of our IP routes we'll go to here and then again we type in ping 192 168 3.2 and notice we're getting a reply of course you can test that from the other side as well if you like ping 192 168 1 dot 2 and again we're getting a reply so now we've set up two routers connected via serial connection to 2 n devices we've established three networks and we have them talking to each other remember if you need to use a gigabit or a fast ethernet you can do that here as well just hook to those connection ports and the steps are the same well thank you if you have any questions leave those in the comment box if you like this video like and subscribe thank you very much and happy coding
Info
Channel: Code Shock
Views: 150,021
Rating: 4.8865032 out of 5
Keywords: two routers packet tracer, static routes, packet tracer
Id: DVV_0nKl30Q
Channel Id: undefined
Length: 13min 6sec (786 seconds)
Published: Sat May 07 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.