IP Routing using Packet Tracer Simulator Dr.Faisal Alzyoud
Routing protocol and Routed protocol A routing protocol is used by routers to dynamically find all the networks in the internetwork and to ensure that all routers have the same routing table. Basically, a routing protocol determines the path of a packet through an internetwork. Examples of routing protocols are: RIP, RIPv2, EIGRP, and OSPF. Dr.Faisal Alzyoud 2
Routing protocol and Routed protocol Once all routers know about all networks a routed protocol can be used to send user data (packets) through the established enterprise. Routed protocols are assigned to an interface and determine the method of packet delivery. Examples of routed protocols are: IP and IPv6. Dr.Faisal Alzyoud
Routing basis The term routing is used for taking a packet from one device and sending it through the network to another device on a different network. Routers don’t really care about hosts, they only care about networks and the best path to each network. The router learns about remote networks from neighbor routers or from an administrator. Dr.Faisal Alzyoud
Routing basis The router then builds a routing table that describes how to find the remote networks. If a network is directly connected, then the router already knows how to get to it. If a network isn’t directly connected to the router, the router must use one of two ways to learn how to get to the remote network: static routing, meaning that someone must hand-type all network locations into the routing table, or something called dynamic routing. Dr.Faisal Alzyoud
Dynamic routing a protocol on one router communicates with the same protocol running on neighbor routers. The routers then update each other about all the networks they know about and place this information into the routing table. If a change occurs in the network, the dynamic routing protocols automatically inform all routers about the event. Dr.Faisal Alzyoud
Static routing The administrator is responsible for updating all changes by hand into all routers. Typically, in a large network, a combination of both dynamic and static routing is used. Dr.Faisal Alzyoud
Static routing benefits: There is no overhead on the router CPU, which means you could possibly buy a cheaper router than you would use if you were using dynamic routing. There is no bandwidth usage between routers, which means you could possibly save money on WAN links. It adds security because the administrator can choose to allow routing access to certain networks only. Dr.Faisal Alzyoud
Static routing disadvantages: The administrator must really understand the internetwork and how each router is connected in order to configure routes correctly. If a network is added to the internetwork, the administrator has to add a route to it on all routers by hand. It’s not feasible in large networks because maintaining it would be a full-time job in itself. Dr.Faisal Alzyoud
Instructions Dr.Faisal Alzyoud
Instructions Router(config)# ip route [destination_network] [mask] [next-hop_address or exitinterface] [administrative_distance] [permanent] used to add static route records to the routing table for example: Router(config) #ip route 172.16.3.0 255.255.255.0 192.168.2.4 The ip route command tells us simply that it is a static route. 172.16.3.0 is the remote network we want to send packets to. 255.255.255.0 is the mask of the remote network. 192.168.2.4 is the next hop, or router, we will send packets to Dr.Faisal Alzyoud
Default route We use default routing to send packets with a remote destination network not in the routing table to the next-hop router. You should only use default routing on stub networks, those with only one exit path out of the network. router(config)#ip route 0.0.0.0 0.0.0.0 10.1.11.1 Dr.Faisal Alzyoud
Using packet tracer in router addressing 1- Connect the network devices as shown in the Figure . The cables used are : · Straight : between switch, pc and router, switch. · Cross : between switch, switch . · Serial : between the two routers . Dr.Faisal Alzyoud
Using packet tracer in addressing 2- We put the IP address for each device as the following : We have in the figure 3 networks : Dr.Faisal Alzyoud
Using packet tracer in addressing To distribute the Ip's on the router interfaces the following instructions are done : Router 0: Dr.Faisal Alzyoud
Using packet tracer in addressing For the second router (Router1 ) : Dr.Faisal Alzyoud
Using packet tracer in addressing Give each PC it’s IP address , Subnet Mask and Default Gateway: For PC0 : From IP configuration : Dr.Faisal Alzyoud
Using packet tracer in addressing How to ping from PC0 to the default gateway : For PC0 : Dr.Faisal Alzyoud
Using packet tracer in addressing Choose command promot and ping on the default gateway : Dr.Faisal Alzyoud
Routing using packet tracer To let serial work you must give clock to DCE terminals : Use (show controllers serial Name ) in privilage mode to examine the serial terminal then we put the clock using the command ( clock rate rate ) in global configuration mode . Start with router0 : Dr.Faisal Alzyoud
Routing using packet tracer For router 1 : So write: Dr.Faisal Alzyoud
Static Route For Router 0: The routing table : Dr.Faisal Alzyoud
Static Route Give static route for Router 0 : Dr.Faisal Alzyoud
Static Route For Router 1: The routing table : Dr.Faisal Alzyoud
Static Route Give static route for Router 1 : Dr.Faisal Alzyoud
Static Route Now you can ping from PC to any other PCs to make sure they see each other : From PC0 to PC3 & PC6 Dr.Faisal Alzyoud
Practical part 2 We connect the following network : Dr.Faisal Alzyoud
Routing using packet tracer For each PC put the Ip address, gateway and subnet mask. For PC0 : Dr.Faisal Alzyoud
Routing using packet tracer Now distribute the IP's on routers' interfaces : For router0 : Dr.Faisal Alzyoud
Routing using packet tracer For router1 : Dr.Faisal Alzyoud
Routing using packet tracer For router2 : Dr.Faisal Alzyoud
Routing using packet tracer To let serial work you must give clock to DCE terminals : Use (show controllers serial Name ) in privilage mode to examine the serial terminal then we put the clock using the command ( clock rate rate ) in global configuration mode . Begin with router0 : Dr.Faisal Alzyoud
Routing using packet tracer Notice that the two terminals are DCE . Dr.Faisal Alzyoud
Routing using packet tracer We give it clock since it's DCE : Dr.Faisal Alzyoud
Routing using packet tracer for router1 : Dr.Faisal Alzyoud
Routing using packet tracer for router2 : Dr.Faisal Alzyoud
Routing using packet tracer Now you must do static routing to let the PC's of each network see the PCs in the remote network : Begin with router0 : There are two remote networks which have the Ips : 192.168.3.0, 192.168.2.0 and three neighbors networks you know them by ( show ip route ): Dr.Faisal Alzyoud
Routing using packet tracer Dr.Faisal Alzyoud
Routing using packet tracer For router 1 : Dr.Faisal Alzyoud
Routing using packet tracer Dr.Faisal Alzyoud
Routing using packet tracer For router 2 : Dr.Faisal Alzyoud
Routing using packet tracer Now ping from PC to any other PCs to make sure they see each other : Ping from PC 1 to PC0 & PC2: Dr.Faisal Alzyoud
DHCP router To let the router distribute the IPs on the network we do the following : Router 0 : Dr.Faisal Alzyoud
DHCP Notice that the PC1 took a dynamic IP : Dr.Faisal Alzyoud