1 NET323 D: NETWORKS PROTOCOLS Networks and Communication Systems Department TA. Anfal AlHazzaa Lab # 5 : Dynamic Route (RIP)
Lab Objectives 2 To connect small LANs using routers. To configure dynamic route on the routers using RIP (Routing Information Protocol). To send ICMP message between devices in different networks.
Lab Content 3 Dynamic Route RIP (Routing Information Protocol) RIP properties RIPv2 (Routing Information Protocol version 2) How to configure RIP on the router How to configure RIPv2 on the router Scenario (Configuring RIP on the router)
Building a routing table 4 There are two basic methods of building a routing table: 1. Static Routing 2. Dynamic Routing
Dynamic Route 5 A dynamic routing table is created, maintained, and updated by a routing protocol running on the router. Examples of routing protocols include RIP (Routing Information Protocol) OSPF (Open Shortest Path First) EIGRP (Enhanced Interior Gateway Routing Protocol) Dynamic routing table is updated periodically using one of the dynamic routing protocols such as RIP, OSPF, or EIGRP. Whenever there is a change in the Internet, such as the shutdown of a router or breaking of a link, the dynamic routing protocols update all of the tables in the routers.
RIP (Routing Information Protocol) 6 Routing Information Protocol (RIP) is a standards-based on distance-vector algorithm to exchange routing information. RIP uses hop count to determine the best path between two locations. Hop count is the number of routers the packet must go through till it reaches the destination network. The maximum allowable number of hops a packet can traverse in an IP network implementing RIP is 15 hops (small networks) There are two version of RIP: RIP and RIPv2
RIP properties 7 1- Based on distance-vector. 2- Each router has only one table which is Routing Table 3- Broadcast the routing table to all routers (broadcast address 255.255.255.255) 4- Sending tables each 30 seconds even if there is change or not overload 5- Can support classful addresses only 6- Letter that used to represent RIP on the routing table is R 7- the Administrative distance value of RIP is 120 8- RIP uses the hop count as metric or cost. 9- Suitable for small networks (The maximum allowable number of hops is 15 hops, if the destination is on 16 th hop then it will be a host unreachable for RIP)
RIPv2 8 RIPv2 is an improvement of RIP RIPv2 properties : 1. Can support classless as well as classful addresses 2. Multicast the routing table to routers that used RIP as routing protocol only (multicast address is 224.0.0.9) less overload
How to configure RIP on the router? 9 RIP configuration For each router, you have to configure only its directly connected networks by using the following command ( in the global configuration mode): Router rip network [network address].. exit
How to configure RIP on the router? Cont. 10 Command Router rip Network [network address] Exit description Puts you in router rip configuration mode Tell the routing protocol what network to advertise (followed by the network address) in dotted-decimal notation To exit from the router rip configuration mode.
11 [Example] Configuring RIP on a router (Router 1) Example : 10.0.0.0 /8 192.168.1.0 /24 Router 1 Router 2 Router 1: router rip network 10.0.0.0 network 50.0.0.0 exit
12 [Example] Configuring RIP on a router (Router 2) Example : 10.0.0.0 /8 192.168.1.0 /24 Router 1 Router 2 Router 2: router rip network 50.0.0.0 network 192.168.1.0 exit
How to configure RIPv2 on the router? 13 RIPv2 configuration For each router, you have to configure only its directly connected networks by using the following command ( in the global configuration mode): Router rip Version 2 network [network address].. exit
[Example] Configuring RIPv2 on Router 1 14 Example : 10.0.0.0 /8 192.168.1.0 /24 Router 1 Router 2 Router 1: router rip Version 2 network 10.0.0.0 network 50.0.0.0 exit
[Example] Configuring RIPv2 on Router 2 15 Example : 10.0.0.0 /8 192.168.1.0 /24 Router 1 Router 2 Router 1: router rip version 2 network 50.0.0.0 network 192.168.1.0 exit
Scenario # 1 16 1. Create two simple LANs (each LAN contains three devices) 2. Connect the two LANs using two router to create the third network (as shown in the following figure) 3. Configure RIP on the routers. 4. Perform a ping between PC A and PC D in realtime mode.
Step 1 (Create the first network) 17 1. Open The Packet tracer 2. Add three PCs to the workspace ( by select the Generic PC under End Devices and drag it onto the workspace) 3. Rename them and set their IPs as the following: Note: the network address will be 10.0.0.0 why?? PC name IP Mask A 10.1.1.1 255.0.0.0 B 10.2.2.2 255.0.0.0 C 10.3.3.3 255.0.0.0
Step 1 (Create the first network) cont. 18 4. Drag Switch-PT to the workspace 5. Using Copper Straight-through cable connect the three PCs to the switch as the following: PC name Switch ports A Fast Ethernet 1/1 B Fast Ethernet 2/1 C Fast Ethernet 3/1
Step 1 (Create the first network) cont. 19 Then perform a ping between PCs to test the connection in real time mode.
Step 2 (Create 2 nd network) 20 1. Add one PCs and one laptop to the workspace ( by select the Generic PC and Generic laptop under End Devices and drag them onto the workspace) 2. Rename them and set their IPs as the following: Note: the network address will be 192.168.1.0 why?? End device type name IP Mask PC D 192.168.1.1 255.255.255.0 laptop E 192.168.1.2 255.255.255.0 laptop G 192.168.1.3 255.255.255.0
Step 2 (Create the 2 nd network) cont. 21 3. Drag Switch-PT to the workspace 4. Using Copper Straight-through cable connect the devices to the switch as the following: Device name Switch ports D Fast Ethernet 1/1 E Fast Ethernet 2/1 G Fast Ethernet 3/1
Step 2 (Create the 2 nd network) cont. 22 Then perform a ping between devices (PC and laptops) to test the connection in realtime mode.
Step 3 (Create the 3 rd network) 23 1. Drag two Generic Router-PT to the workspace 2. Using Copper Straight-through cable, connect first Router to the switch in the 1 st network(using interface f0/0 in the router) 3. Using Copper Straight-through cable, connect second Router to the switch in the 2 nd network(using interface f0/0 in the router) 4. Using Copper Cross-over cable, connect the first Router with the second Router (using interface f1/0 in both routers)
Step 4 ( Assigning IPs to router interfaces) 24 Assign the following IPs to the router interfaces: Router 1 : Connection IP Mask Fast Ethernet 0/0 10.1.1.1 255.0.0.0 Fast Ethernet 1/0 50.1.1.1 255.0.0.0 Router 2 : Connection IP Mask Fast Ethernet 0/0 192.168.1.1 255.255.255.0 Fast Ethernet 1/0 50.1.1.1 255.0.0.0
Step 4 ( Assigning IPs to router interfaces) cont. 25 You have to enter to the CLI of the router by clicking on it and then choose CLI tab 1
Router 1 Configuration ( interface f0/0) 26
Router 1 Configuration ( interface f1/0) 27
Router 2 Configuration ( interface f0/0) 28
Router 2 Configuration ( interface f1/0) 29
Step 5 ( Adding Gateway) 30 Network # 1 For each PC, change the gateway to 10.1.1.1 which is the gateway of the first network The gateway of first network
Step 5 ( Adding Gateway) cont. 31 1 2 3 Adding gateway Desktop tab IP configuration enter gateway *Repeat the same steps for PC B and PC C
Step 5 ( Adding Gateway) cont. 32 Network # 2 For each PC, change the gateway to 192.168.1.1which is the gateway of the second network The gateway of second network
Step 5 ( Adding Gateway) cont. 33 1 2 3 Adding gateway Desktop tab IP configuration enter gateway *Repeat the same steps for laptop E and laptop G
Step 6 ( RIP Configuration) 34 In RIP configuration: For each router, you have to configure only its directly connected networks (that you want to advertise to another routers) By using the following command in global configuration mode: router rip network [ network address].. List all directly connected networks exit
RIP Configuration on Router 1 35 Router 1
RIP Configuration on Router 2 36 Router 2
Step 7 (Performing a Ping in Realtime mode) 37 Click on PC A Desktop tap Command Prompt Write the following command Ping 192.168.1.2
Step 8 (Showing Routing table for the two Routers) 38 Use the following command to show the routing table at privilege mode Show ip route
Routing table (Router 1) 39 C Identifies that the network connected directly with the router. R Identifies that the route was dynamically created by RIP. Identifies the network address of the connected network. Identifies the interface that used to route the packet to the network. Identifies the next hop address that used to route the packet to the network. Identifies the Administrative Distance and the metric of this route. **The 1st number is administrative distance and the 2nd number is the metric
Routing table (Router 2) 40 C Identifies that the network connected directly with the router. R Identifies that the route was dynamically created by RIP. Identifies the network address of the connected network. Identifies the interface that used to route the packet to the network. Identifies the next hop address that used to route the packet to the network. Identifies the Administrative Distance and the metric of this route. **The 1st number is administrative distance and the 2nd number is the metric
References 41 Cisco Packet Tracer Help Balchunas, A. (2007). Static vs. Dynamic Routing. Retrieved 2015, from http://www.routeralley.com/guides/static_dynamic_routing.pdf Cisco Networking Academy's Introduction to Routing Dynamically. (2015, September 3). Retrieved 2015, from http://www.ciscopress.com/articles/article.asp?p=2180210&seqnum=12 Jabbar, G. (2012, January 3). Cisco ASA Administrative Distance and Metric. Retrieved 2015, from http://www.gomjabbar.com/2012/01/03/cisco-asa-administrative-distance-and-metric/#sthash.cbkhldvf.dpbs Cisco Networking Academy's Introduction to Routing Dynamically. (2014, March 24). Retrieved 2015, from http://www.ciscopress.com/articles/article.asp?p=2180210&seqnum=12 Basic Cisco IOS Commands and Descriptions Cisco Forum FAQ DSLReports, ISP Information. (2015, August 19). Retrieved 2015, from http://www.dslreports.com/faq/8979 Difference between RIP Version 1 And RIP Version 2(n.d.). Retrieved 2015, from http://cforcyber.blogspot.com/2015/06/difference-between-rip-version-1-and.html Distance Vector and Link State Protocols. (2012, August 7). Retrieved 2015, from https://www.youtube.com/watch?v=ygxbbmztt4u