How to Configure Routing Information Protocol (RIP)

584 views
485 views

Published on

How to configure routing information protocol (rip)

Published in: Self Improvement
1 Comment
1 Like
Statistics
Notes
  • Hi, how can i download the lessons. thanks!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
584
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
54
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

How to Configure Routing Information Protocol (RIP)

  1. 1. How to Configure Routing Information Protocol (RIP)?If you are not familiar with Routing Information Protocol (RIP), click the following linkto view an introduction to Routing Information Protocol (RIP).Routing Information Protocol (RIP) ConfigurationRouting Information Protocol (RIP) can be configured in a router using thefollowing IOS commands. The "version 2" IOScommand specifies that we are usingRIPv2.Router>enableRouter#configure terminalRouter(config)# router ripRouter(config-router)# version 2Router(config-router)# network network_idRouting Information Protocol (RIP) - Lab PracticeThe following diagram shows our lab setup. We have three routers, three switchesand three hosts connected as below. The host names, IP addresses andthe interfaces of the routers are shown in diagram. The IP addresses of the hosts arealso shown in the diagram.Notes: If you are not familiar with a router console connection, click the following linkto learn how to connect the serial port of your computer to router console port.Click the following link to learn how to connect to the console port of the router ifthere is no serial port in your computer.http://blog.router-switch.com/
  2. 2. Click the following links to learn how to use HyperTerminal terminalemulator and PuTTY terminal emulator to configure router.Hostname and IP address configuration in Router01Connect to Router01 console and use the following IOS commands to configure hostname as Router01.Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router01Router01(config)#Use the following IOS commands to open the fast ethernet interface Fa0/0configuration mode on Router01 and configure IP address as 172.16.0.1/16.Router01>enableRouter01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router01(config)#interface fa0/0Router01(config-if)#ip address 172.16.0.1 255.255.0.0Router01(config-if)#no shutdownUse the following IOS commands to open the serial interface S0/0 configurationmode on Router01 and configure IP addressas 172.17.0.1/16. You have to set a clockrate also using the "clock rate" command on S0/0 interface, since this is the DCE side.Router01>enableRouter01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router01(config)#interface s0/0Router01(config-if)#clock rate 64000Router01(config-if)#ip address 172.17.0.1 255.255.0.0Router01(config-if)#no shutdownDo remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.Hostname and IP address configuration in Router02Connect to Router02 console and use the following IOS commands to configure hostname as Router02.Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router02Router02(config)#http://blog.router-switch.com/
  3. 3. Use the following IOS commands to open the fast ethernet interface Fa0/0configuration mode on Router02 and configure IP address as 172.18.0.1/16.Router02>enableRouter02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router02(config)#interface fa0/0Router02(config-if)#ip address 172.18.0.1 255.255.0.0Router02(config-if)#no shutdownUse the following IOS commands to open the serial interface S0/0 configurationmode on Router02 and configure IP addressas 172.17.0.2/16.Router02>enableRouter02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router02(config)#interface s0/0Router02(config-if)#ip address 172.17.0.2 255.255.0.0Router02(config-if)#no shutdownUse the following IOS commands to open the serial interface S0/1 configurationmode on Router02 and configure IP addressas 172.19.0.1/16. You have to set a clockrate also using the "clock rate" command on S0/1 interface, since this is the DCE side.Router02>enableRouter02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router02(config)#interface s0/1Router02(config-if)#clock rate 64000Router02(config-if)#ip address 172.19.0.1 255.255.0.0Router02(config-if)#no shutdownDo remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.Hostname and IP address configuration in Router03Connect to Router03 console and use the following IOS commands to configure hostname as Router03.Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router03Router03(config)#Use the following IOS commands to open the fast ethernet interface Fa0/0configuration mode on Router03 and configure IP address as 172.20.0.1/16.Router03>enablehttp://blog.router-switch.com/
  4. 4. Router03#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router03(config)#interface fa0/0Router03(config-if)#ip address 172.20.0.1 255.255.0.0Router03(config-if)#no shutdownUse the following IOS commands to open the serial interface S0/1 configurationmode on Router03 and configure IP addressas 172.19.0.2/16.Router03>enableRouter03#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router03(config)#interface s0/1Router03(config-if)#ip address 172.19.0.2 255.255.0.0Router03(config-if)#no shutdownDo remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.Routing Information Protocol Version 2 (RIPv2) configuration in Router01Connect to Router01 console and use the following IOS commands toconfigure Routing Information Protocol Version 2 (RIPv2) in Router01. Please referthe beginning of this lesson to view the Routing Information Protocol Version 2(RIPv2) configuration IOS commands.Using the IOS "network" command, as shown below, we specify only the directlyconnected networks of this router.Router01>enableRouter01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router01(config)#router ripRouter01(config-router)#version 2Router01(config-router)#network 172.16.0.0Router01(config-router)#network 172.17.0.0Router01(config-router)#exitRouter01(config)#exitRouter01#Do remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.Routing Information Protocol Version 2 (RIPv2) configuration in Router02Connect to Router02 console and use the following IOS commands to configureRouting Information Protocol Version 2 (RIPv2) in Router02. Please refer thebeginning of this lesson to view the Routing Information Protocol Version 2 (RIPv2)http://blog.router-switch.com/
  5. 5. configurationIOS commands.Using the IOS "network" command, as shown below, we specify only the directlyconnected networks of this router.Router02>enableRouter02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router02(config)#router ripRouter02(config-router)#version 2Router02(config-router)#network 172.17.0.0Router02(config-router)#network 172.18.0.0Router02(config-router)#network 172.19.0.0Router02(config-router)#exitRouter02(config)#exitRouter02#Do remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.Routing Information Protocol Version 2 (RIPv2) configuration in Router03Connect to Router03 console and use the following IOS commands to configureRouting Information Protocol Version 2 (RIPv2) in Router03. Please refer thebeginning of this lesson to view the Routing Information Protocol Version 2 (RIPv2)configurationIOS commands.Using the IOS "network" command, as shown below, we specify only the directlyconnected networks of this router.Router03>enableRouter03#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router03(config)#router ripRouter03(config-router)#version 2Router03(config-router)#network 172.19.0.0Router03(config-router)#network 172.20.0.0Router03(config-router)#exitRouter03(config)#exitRouter03#Do remember to run the "copy running-config startup-config" command from enablemode, if you want to save the changes you have made in the router.How to View the Routing Table in Router01After the network is converged after the initial configuration andRouting Information Protocol Version 2 (RIPv2) configuration, we can use the "showhttp://blog.router-switch.com/
  6. 6. ip route" to view the routing table in Router01, as shown below.Router01>enableRouter01#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 172.16.0.0/16 is directly connected, FastEthernet0/0C 172.17.0.0/16 is directly connected, Serial0/0R 172.18.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0R 172.19.0.0/16 [120/1] via 172.17.0.2, 00:00:22, Serial0/0R 172.20.0.0/16 [120/2] via 172.17.0.2, 00:00:22, Serial0/0The "R" character at the beginning of a line in routing table shows that it is a routediscovered by Routing Information Protocol Version 2 (RIPv2) and "C" charactershows that it is a directly connected network.How to View the Routing Table in Router02When the network is converged after the initial configuration and RoutingInformation Protocol Version 2 (RIPv2) configuration, we can use the "show ip route"to view the routing table in Router02, as shown below.Router02>enableRouter02#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:07, Serial0/0C 172.17.0.0/16 is directly connected, Serial0/0C 172.18.0.0/16 is directly connected, FastEthernet0/0C 172.19.0.0/16 is directly connected, Serial0/1R 172.20.0.0/16 [120/1] via 172.19.0.2, 00:00:20, Serial0/1The "R" character at the beginning of a line in routing table shows that it is a routediscovered by Routing Information Protocol Version 2 (RIPv2) and "C" charactershows that it is a directly connected network.http://blog.router-switch.com/
  7. 7. How to View the Routing Table in Router03When the network is converged after the initial configuration and RoutingInformation Protocol Version 2 (RIPv2) configuration, we can use the "show ip route"to view the routing table in Router03, as shown below.Router03>enableRouter03#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 172.16.0.0/16 [120/2] via 172.19.0.1, 00:00:02, Serial0/1R 172.17.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1R 172.18.0.0/16 [120/1] via 172.19.0.1, 00:00:02, Serial0/1C 172.19.0.0/16 is directly connected, Serial0/1C 172.20.0.0/16 is directly connected, FastEthernet0/0The "R" character at the beginning of a line in routing table shows that it is a routediscovered by Routing Information Protocol Version 2 (RIPv2) and "C" charactershows that it is a directly connected network.Verify the Connectivity between Networks Using the Ping CommandTo verify the Routing Information Protocol Version 2 (RIPv2) routes and theconnectivity between networks, run the ping command from Host01 (IP address:172.16.0.10/16) to Host03 (IP address: 172.20.0.10/16).C:>ping 172.20.0.10Pinging 172.20.0.10 with 32 bytes of data:Reply from 172.20.0.10: bytes=32 time=172ms TTL=125Reply from 172.20.0.10: bytes=32 time=188ms TTL=125Reply from 172.20.0.10: bytes=32 time=157ms TTL=125Reply from 172.20.0.10: bytes=32 time=188ms TTL=125Ping statistics for 172.20.0.10:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 157ms, Maximum = 188ms, Average = 176msThe ping reply from Host03 (IP address: 172.20.0.10/16) shows that the RoutingInformation Protocol Version 2 (RIPv2) is configured well in three routers and there isnetwork connectivity between different networks.More Related Routing Protocol Tips:http://blog.router-switch.com/
  8. 8. How to Configure IGRP (Interior Gateway Routing Protocol)?http://blog.router-switch.com/

×