Basics of Cisco Packet Tracer Tutorial | Router | How Router work | Connect 2 LAN network via Router

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends welcome back to the next video of Cisco packet resser series and today in this video tutorial we will be discuss the routers so first we will see what is router Router is a networking device that forward data between two or more local area networks and on internet also so we can say a router is a device that connects two or more different local area networks and it's a layer three device as per OSI model and it operate in network layer our router does exactly what its name means that is root the data and it has memory and it stores routing table in his memory and routers are inviable device in the internet means without router we can't connect to the internet now we will see how router work this is an example of simple Network and this is a router it has two interfaces this is interface number one and this is interface number two this interface is going to connect to one local area network and this interface is going to connect another local area network and the IP address of this interface is the default gateway of all the pieces and end devices of this local area network and same way IP address of this interface is the default gateway of all the pieces in this local area network now we will replicate this scenario in our Cisco Packet Tracer to do this we need to open Cisco packet racer in our PC in this workspace area first we will create two local area network so for that I'm bringing the two Cisco switches these two switches are used to creating two different local area networks and let us have only three pieces in each local area network this is pc1 PC2 and PC3 so these three pieces are going to be in this local area network and we took another three pieces for this side second local arean network this is pc1 PC2 and PC3 now we need cables we need to use ethernet straight through cables in order to connect these devices so I'm using ethernet straight through cable to connect this PC to the switch similarly the same cable is used in second local area network to connect the PCS to the switch so now cable connectivity is done and now we will assign the IP address to all the individual PCS to establish a local area network so for this first PC let us assign the IP address 1010 do10 do1 10 do1 do10 do1 and the IP address of this second PC is 10.10 do10 do2 and let the IP address of this third PC is 10 do 10 dot 10 do3 likewise we have to assign IP address to this local area network also but totally the differ IP range so for this first PC I assign 192.168.1.1 and for this second PC I assign 192.168.1.2 and for the last PC it will be 192.168.1 do3 so far we will have established one local Network here and second local network this side for better understanding let me give a label to all these devices like this this is local area network one Lan one and this is using IP scheme 10.0.0.0 with the subet m 255.0.0.0 and this is a class A IP address and this is local area network 2 and this is using the IP scheme 192.168.1.0 with 255.255.255.0 subnet mask and this is a Class C IP scheme and both are totally different network and if this PC from Lan one network want to send some data packet to this PC in Lan 2 Network it need a router to do this communication now it's time to bring the router into our scenario so let's go to the router and let me choose this 431 router now we need at least two interfaces on this router one interface will be connect on this land one switch and second interface will be connect on this land two switch let's go and see the physical view of this router click on this router and here this router has some interfaces we click on configuration and here we can see there are 3 G ethernet interfaces on this router gigabit Ethernet 0/ 0/0 gigabit Ethernet 0/0 SL1 and gigabit Ethernet 0/ 0/2 we need only two interfaces in order to connect our two local area networks so what type of cable is used in order to connect these interfaces to these switches as we know switches are lay to device and router is a layer three device so they are different devices and to connect different type of devices we need ethernet straight through cable now I choose straight through cable from here I go to local area network one switch and this time I select gigabit Ethernet 0/1 port in this switch and on router side I click on router and here I connect on gab ethernet 0/0 sl0 port we have to use the same type of cable that is ethernet straight through cable for second local area network on this switch I choose gigabit Ethernet 0/1 port and on the router side I connect on gigabit Ethernet 0/ 0/1 port by default the ports in the routers are turn off or we can say they are in shutdown mode we need to enable that ports by using noed command also we are required to assign the the IP addresses to the router interfaces we already assigned 10.1.1.1 to this PC and 10. 10.1.2 to this PC and this is having the IP address 10.1 do10 do3 and on other side this PC is having the IP address 192.168.1.1 and this PC is having 192.168.1.2 and the last PC is having the IP address 192.168 1.3 I put the label just to identify the IP address of each PC now we will assign the IP address to this side interface of the router that is 10.10 do1100 and to this interface let it be 192.168.1.100 now to assign the IP address to the router interface just click on the router then click on CLI option and here just press couple of enter first we will type enable and enter now we are in enable mode to do the change in router configuration we need to go to configuration mode by typing command config space t and enter now we are in configuration mode first we are going to assign the IP address to the router gig ethern 0/0 port for that we type interface space gig ethernet space 0/0 sl0 and enter to give IP address to this interface we type IP space address space 10.10.10 do 100 and subnet is 255.0.0.0 zero and enter we successfully assign the IP address to this interface but as we know this interface is disabled by default on router to enable this interface on router we need to type command no shut down and enter and here you can see this interface is up now now exit from this interface by typing exit and enter now to following the same steps we are going to assign the address to Gig EET 0/1 interface also for that I type interface gig EET 0/1 and enter to assign the IP address to this interface we type IP address 192.168.1 100 and subnet is 255.255.255.0 and enter we assign the IP address to this interface also and to enable this interface we type command no shutdown and enter that's it and here you can see this interface is up also now the entire setup is ready we go exit from here on this side of the router it is having a different local arean network and on this side of the router it is having a different local area network so far we have completed the configuration now let's try to Ping a computer from this local area network to this local area network we will try to pinging from this 1010101 computer to this 192.168.1.3 computer for that I click on this 10.1.1.1 computer go to command prom and type ping 192.168.1.3 and and enter you can observe that we are not getting reply from destination computer did we miss something yes we failed to do one configuration and the problem is we assign the IP address to all computers in both landan network but we did not assign the Gateway IP address to these computers the IP address of this interface is 10.10.10 100 and this is a default gateway for all the pces or all the devices in this network we did not give that so forth so just click on PC once again go to the IP configuration and type the default gateway here that is 10.10.10 do 100 and copy this and similarly paste it on all other pieces on this local area network so all the pieces are having the default Gateway as 10.10.10 100 and we will do the same thing on this side also but the default gateway for all these pieces should be 192.168.1.100 click on this first PC go to IP configuration and type 192.168.1.1 100 just copy this one and paste this in the default gateway of all other pieces is we are done with the configuration part now once again from this PC we will try to Ping this PC just click on this PC go to the command prom and type ping 192.168.1.3 and enter sometime the first ping will be failed but we will get the reply from the second packet here you can see the the first packet was failed but we get the replies after that this is in real time mode and now same thing I will show you in simulation mode for that I click on the simulation mode option and then take a packet From Here let this be the source computer and let this be the destination computer now we click on this play button the switch receive this packet from PC and forward that to the router now router received this pack packet from the switch and forward that packet to the L to switch L to switch forward that packet to the destination computer now the reply will come and here you can see the destination computer send the reply to the L to switch then land to switch forward that packet to the router and router forward that packet to land one switch and switch forward the reply to the source computer and this is a successful communication between two PC in different local area network via router I hope so now you understand how to connect to different locala networks using router practically in Cisco packet dresser thank you for watching and please don't forget to like share and subscribe my channel thank you
Info
Channel: Cisco Config
Views: 16,853
Rating: undefined out of 5
Keywords: cisco packet tracer, cisco packet tracer basics, basics of cisco packet tracer, router, router in cisco packet tracer, cisco packet tracer router, computer networks, packet tracer, basic network, network configuration, packet tracer tutorials, ccna, networking basics, how router works, router configuration, CPT, connect 2 switch with router, 2 switch and router, router in computer networks, computer networks router, router basics, basics of router, computer networks basics, LAN
Id: Cuaeer9fSmE
Channel Id: undefined
Length: 14min 18sec (858 seconds)
Published: Sun Oct 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.