Network lab Lab 6 Cisco packet tracer Router
Network lab Lab 6 Cisco packet tracer
Router dynamic configuration (Routing protocols) RIP-EIGRP -OSPF
R 1 10. 0 126. 0. 0. 0 R 3 R 2 200. 1. 1. 0 180. 10. 0. 0 R 4
Add serial port to all Routers
Serial port used to connect Router with another Router
Objective: § set hostname §Configure Router 1, 2 and 3, 4 with IP Address §Configure RIP for all Router §Select the directly connected networks § view routing table §View RIP protocol information §From R 1 ping R 4
�The Commands used to configure RIP protocol Router (config)#router RIP �Router (config-router)#network ip address
View RIP protocol information �Router#show ip protocols
Commands used to configure IGRP protocol �Router (config)#router IGRP 100 �Router (config-router)#
Configure R 1 with IP address �R 1(config)#int s 0/0/0 �R 1(config-if)#ip address 10. 1. 1. 1 255. 0. 0. 0 �R 1(config-if)#clock rate 64000 �R 1(config-if)#no shut �R 1(config-if)#exit �R 1(config)#int s 0/0/1 �R 1(config-if)#ip address 126. 1. 1. 1 255. 0. 0. 0 �R 1(config-if)#no shut
Configure R 2 with IPaddress �Router>en �Router#config t �Router(config)#hostname R 2 �R 2(config)#int s 0/0/0 �R 2(config-if)#ip address 10. 1. 1. 2 255. 0. 0. 0 �R 2(config-if)#no shut �R 2(config-if)#exit �R 2(config)#int s 0/0/1 �R 2(config-if)#ip address 200. 1. 1. 1 255. 0 �R 2(config-if)# clock rate 64000 �R 2(config-if)#no shut
Configure R 3 with IP address �Router>en �Router#config t �. Router(config)#hostname R 3 �R 3(config)#int s 0/0/0 �R 3(config-if)#ip address 126. 1. 1. 2 255. 0. 0. 0 �R 3(config-if)#clock rate 64000 �R 3(config-if)#no shut �R 3(config-if)#exit �R 3(config)#int s 0/0/1 �R 3(config-if)#ip address 180. 1. 1 255. 0. 0 �R 3(config-if)#no shut �R 3(config-if)#
Configure R 4 with IP address �Router>enable �Router#config �Router(config)# hostname R 4 �R 4(config)#int s 0/0/1 �R 4(config-if)#ip address 80. 1. 2 255. 0. 0 �R 4(config-if)#clock rate 64000 �R 4(config-if)#no shut �R 4(config-if)#exit �R 4(config)#int s 0/0/0 �R 4(config-if)#ip address 200. 1. 1. 2 255. 0 �R 4(config-if)# no shut
R 1 (How to configure RIP protocol) �R 1>en �R 1#config �R 1(config)#router rip �R 1(config-router)#net 10. 0 �R 1(config-router)#net 126. 0. 0. 0
R 2 (How to configure RIP protocol) R 2>enable R 2#configure terminal R 2(config)#router rip R 2(config-router)#net 10. 0 R 2(config-router)#net 200. 1. 1. 0
R 3 (How to configure RIP protocol) �R 3(config)#router RIP �R 3(config-router)#net 126. 0. 0. 0 �R 3(config-router)#net 180. 10. 0. 0
R 4 (How to configure RIP protocol) �R 4(config)#router rip �R 4(config-router)#net 200. 1. 1. 0 �R 4(config-router)#net 80. 10. 0. 0
From R 1 ping R 4 �R 1#ping 200. 1. 1. 2 �Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
R 1#show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 3 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip • Default version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain Serial 0/0/1 1 21 Serial 0/0/0 1 21 Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 10. 0 126. 0. 0. 0 Passive Interface(s): Routing Information Sources: Gateway Distance Last Update 126. 1. 1. 2 120 00: 22 10. 1. 1. 2 120 00: 18 Distance: (default is 120)
�R 1#show ip route � Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP � D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area � N 1 - OSPF NSSA external type 1, N 2 - OSPF NSSA external type 2 � E 1 - OSPF external type 1, E 2 - OSPF external type 2, E - EGP � i - IS-IS, L 1 - IS-IS level-1, L 2 - IS-IS level-2, ia - IS-IS inter area � * - candidate default, U - per-user static route, o - ODR � P - periodic downloaded static route � Gateway of last resort is not set � � C R 10. 0/8 is directly connected, Serial 0/0/0 80. 0/8 [120/1] via 126. 1. 1. 2, 00: 07, Serial 0/0/1 126. 0. 0. 0/8 is directly connected, Serial 0/0/1 200. 1. 1. 0/24 [120/1] via 10. 1. 1. 2, 00: 05, Serial 0/0/0
Assignment NO 2 100. 0 90. 1. 0. 0 200. 1. 1. 0
Objective: § set hostname §Configure Router 1, 2 and pc 1 and pc 2 with IP Address outlined above §Configure. E IGRP for all Router §view routing table §View EIGRP protocol information §From PC 4 ping PC 1
OSPF Protocol 192. 168. 1. 1 120. 1. 1. 1 192. 168. 2. 1 192. 168. 1. 2 172. 16. 1. 1 192. 168. 2. 2 10. 1. 1. 1
Objective: § set hostname §Configure all Router and all PC with IP Address outlined above §Configure OSPF protocol for all Router §view routing table §View OSPF protocol information §From R 3 ping F 0/0 R 1 §From PC 1 ping PC 6
R 1 configurations �Router(config)#hostname R 1 �R 1(config)#int s 0/2 �R 1(config)#int s 2/0 �R 1(config-if)#ip address 192. 168. 1. 1 255. 0 �R 1(config-if)#no shut �R 1(config-if)#exit �R 1(config)#int f 0/0 �R 1(config-if)#ip address 120. 1. 1. 1 255. 0. 0. 0 �R 1(config-if)#no shut
R 2 configurations � Router>en � Router#config t � Router(config)#hostname R 2 � R 2(config)#int s 2/0 � R 2(config-if)#ip address 192. 168. 1. 2 255. 0 � R 2(config-if)#clock rate 64000 � R 2(config-if)#no shut � R 2(config-if)#exit �. R 2(config)#int s 3/0 � R 2(config-if)#ip address 192. 168. 2. 1 255. 0 � R 2(config-if)#no shut � R 2(config-if)#exit � R 2(config)#int f 0/0 � R 2(config-if)#ip address 172. 16. 1. 1 255. 0. 0 � R 2(config-if)#no shut � R 2(config-if)#
R 2 configurations � Router(config)#hostname R 3 � R 3(config)#int s 2/0 � R 3(config-if)#ip address 192. 168. 2. 2 255. 0 � R 3(config-if)#clock rate 64000 � R 3(config-if)#no shut � R 3(config-if)#exit � R 3(config)#int f 0 � R 3(config-if)#int f 0/0 � R 3(config-if)#ip address 10. 1. 1. 1 255. 0. 0. 0 � R 3(config-if)#no shut � R 3(config-if)#
OSPF Protocols Configuration (R 1) � R 1>en � R 1#config t � R 1(config)#router ospf 100 � R 1(config-router)#net 192. 168. 1. 0 0. 0. 0. 255 area 0 R 1(config-router)#net 120. 0 0. 255 area 0
OSPF Protocols Configuration (R 2) �R 2>en �R 2#config t �R 2(config)#router ospf 100 �R 2(config-router)#net 192. 168. 1. 0 0. 0. 0. 255 area 0 �R 2(config-router)#net 192. 168. 2. 0 0. 0. 0. 255 area 0 �R 2(config-router)#net 172. 16. 0. 0. 255 area 0 R 2(config-router)#
OSPF Protocols Configuration (R 3) �R 3>en �R 3#config t �R 3(config)#router ospf 100 �R 3(config-router)#net 192. 168. 2. 0 0. 0. 0. 255 area 0 �R 3(config-router)#net 10. 0 0. 255 area 0
View OSPF protocols informations �R 2#show ip protocols �Routing Protocol is "ospf 100“ �Router ID 192. 168. 2. 1 �Routing for Networks: � 192. 168. 1. 0 0. 0. 0. 255 area 0 � 192. 168. 2. 0 0. 0. 0. 255 area 0 � 172. 16. 0. 0. 255 area 0 �
PC 1 configuration
PC 2 configuration
PC 3 configuration
PC 4 configuration
PC 5 configuration
PC 6 configuration
From R 3 ping F 0/0 R 1 �R 3#ping 120. 1. 1. 1 �Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
From PC 1 ping PC 6
- Slides: 40