LAB - OSPFv2 - Multi-Area
LAB - OSPFv2 - Multi-Area
LAB - OSPFv2 - Multi-Area
OSPFv2 – Multi-Area
[email protected]
Task
1. Configure routers with IP address as shown in topology and configure enable
password as ccna & device access password as cisco (Refer Lab 11)
2. Configure Multi-Area OSPF process as per the topology.
3. Configure Virtual-link to provide communication of Area 45 with Area 0
4. Configure Priority of 255 to make R1 as permanent DR.
R1 OSPF Configuration:
R1#config t
R1(config)#router ospf 1
R1(config-router)#network 14.14.14.1 0.0.0.0 area 14
R1(config-router)#network 10.10.10.0 0.0.0.255 area 0
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#exit
R1(config)#exit
R1#
R2 OSPF Configuration:
1
R2#config t
Page
R2(config)#router ospf 2
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
R2(config-router)#network 10.10.10.0 0.0.0.255 area 0
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2(config-router)#exit
R2(config)#exit
R2#
R3 OSPF Configuration:
R3#config t
R3(config)#router ospf 3
R3(config-router)#network 192.168.3.0 0.0.0.255 area 0
R3(config-router)#network 10.10.10.0 0.0.0.255 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
R3(config-router)#exit
R3(config)#exit
R3#
R4 OSPF Configuration:
We Make Learning Simplified..
R4#config t
R4(config)#router ospf 4
R4(config-router)#network 192.168.4.0 0.0.0.255 area 14
R4(config-router)#network 14.14.14.4 0.0.0.0 area 14
R4(config-router)#network 45.45.45.4 0.0.0.0 area 45
R4(config-router)#network 4.4.4.4 0.0.0.0 area 14
R4(config-router)#exit
R4(config)#exit
R4#
R5 OSPF Configuration:
R5#config t
R5(config)#router ospf 5
R5(config-router)#network 192.168.5.0 0.0.0.255 area 45
R5(config-router)#network 45.45.45.5 0.0.0.0 area 45
R5(config-router)#network 5.5.5.5 0.0.0.0 area 45
R5(config-router)#exit
R5(config)#exit
R5#
R1#sh ip protocols
*** IP Routing is NSF aware ***
Router ID 1.1.1.1
Page
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
1.1.1.1 0.0.0.0 area 0
10.10.10.0 0.0.0.255 area 0
14.14.14.1 0.0.0.0 area 14
Routing Information Sources:
Gateway Distance Last Update
2.2.2.2 110 00:00:22
4.4.4.4 110 00:00:22
3.3.3.3 110 00:00:32
Distance: (default is 110)
R2#sh ip protocols
*** IP Routing is NSF aware ***
[email protected]
Maximum path: 4
Routing for Networks:
2.2.2.2 0.0.0.0 area 0
10.10.10.0 0.0.0.255 area 0
192.168.2.0 0.0.0.255 area 0
Routing Information Sources:
Gateway Distance Last Update
1.1.1.1 110 00:00:31
3.3.3.3 110 00:00:41
Distance: (default is 110)
R3#sh ip protocols
*** IP Routing is NSF aware ***
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
R4#sh ip protocols
*** IP Routing is NSF aware ***
R5#sh ip protocols
*** IP Routing is NSF aware ***
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.10.10.3, 00:02:20, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 14.14.14.4, 00:02:10, FastEthernet1/1
O 192.168.2.0/24 [110/2] via 10.10.10.2, 00:02:10, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 10.10.10.3, 00:02:20, FastEthernet0/0
O 192.168.4.0/24 [110/2] via 14.14.14.4, 00:02:10, FastEthernet1/1
[email protected]
O 1.1.1.1 [110/2] via 10.10.10.1, 00:03:40, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.10.10.3, 00:03:50, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/3] via 10.10.10.1, 00:03:40, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
O IA 14.14.14.0 [110/2] via 10.10.10.1, 00:03:40, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 10.10.10.3, 00:03:50, FastEthernet0/0
O IA 192.168.4.0/24 [110/3] via 10.10.10.1, 00:03:40, FastEthernet0/0
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
O 192.168.2.0/24 [110/2] via 10.10.10.2, 00:03:53, FastEthernet0/0
O IA 192.168.4.0/24 [110/3] via 10.10.10.1, 00:03:43, FastEthernet0/0
R1#
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
R2#sh ip ospf neighbor
[email protected]
R5#sh ip ospf neighbor
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
R1#
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 857 0x80000002 0x00CD06 2
2.2.2.2 2.2.2.2 857 0x80000002 0x002724 3
3.3.3.3 3.3.3.3 857 0x80000002 0x003805 3
[email protected]
Router Link States (Area 14)
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
Link ID ADV Router Age Seq# Checksum
45.45.45.5 5.5.5.5 832 0x80000001 0x00EF85
R4#
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/20 ms
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/16/24 ms
R1#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/19/24 ms
R1#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R1#
R2#ping 1.1.1.1
Page
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/20 ms
R2#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/17/24 ms
R2#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
R2#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R3#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/24 ms
R3#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/20 ms
R3#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/40/44 ms
R3#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R3#
11 Page
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
Ping Loopback IP of all other routers from R4
R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/18/20 ms
R4#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/40/44 ms
R4#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/37/44 ms
We Make Learning Simplified..
R4#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/28 ms
R5#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R5#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R5#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R5#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
12
.....
Page
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
R1 Router Configuration:
R1#config t
R1(config)#router ospf 1
R1(config-router)#area 14 virtual-link 4.4.4.4
R1(config-router)#exit
R1(config)#exit
R1#
R2 Router Configuration:
R4#config t
R4(config)#router ospf 4
R4(config-router)#area 14 virtual-link 1.1.1.1
R4(config-router)##exit
R4(config)#exit
R4#
[email protected]
*Oct 17 16:16:38.203: %OSPF-5-ADJCHG: Process 4, Nbr 1.1.1.1 on OSPF_VL0 from LOADING to
FULL, Loading Done
0 1 no no Base
Page
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/3] via 10.10.10.1, 00:05:07, FastEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/4] via 10.10.10.1, 00:05:07, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
O IA 14.14.14.0 [110/2] via 10.10.10.1, 01:31:14, FastEthernet0/0
45.0.0.0/24 is subnetted, 1 subnets
O IA 45.45.45.0 [110/3] via 10.10.10.1, 00:05:07, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 10.10.10.3, 01:31:24, FastEthernet0/0
O IA 192.168.4.0/24 [110/3] via 10.10.10.1, 00:05:07, FastEthernet0/0
O IA 192.168.5.0/24 [110/4] via 10.10.10.1, 00:05:07, FastEthernet0/0
[email protected]
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/4] via 10.10.10.1, 00:05:12, FastEthernet0/0
14.0.0.0/24 is subnetted, 1 subnets
O IA 14.14.14.0 [110/2] via 10.10.10.1, 01:31:29, FastEthernet0/0
45.0.0.0/24 is subnetted, 1 subnets
O IA 45.45.45.0 [110/3] via 10.10.10.1, 00:05:12, FastEthernet0/0
O 192.168.2.0/24 [110/2] via 10.10.10.2, 01:31:29, FastEthernet0/0
O IA 192.168.4.0/24 [110/3] via 10.10.10.1, 00:05:12, FastEthernet0/0
O IA 192.168.5.0/24 [110/4] via 10.10.10.1, 00:05:12, FastEthernet0/0
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
R5#sh ip route ospf | begin Gateway
Gateway of last resort is not set
R1#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/64 ms
R2#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/57/60 ms
R4#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
16
!!!!!
Page
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
R5#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/40/64 ms
R5#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/64 ms
R5#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/57/80 ms
[email protected]
R5#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/19/24 ms
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
Ping all other PCs from PC3
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
84 bytes from 192.168.2.10 icmp_seq=3 ttl=60 time=77.024 ms
84 bytes from 192.168.2.10 icmp_seq=4 ttl=60 time=78.020 ms
84 bytes from 192.168.2.10 icmp_seq=5 ttl=60 time=81.089 ms
[email protected]
R1(config)#int fa0/0
R1(config-if)#ip ospf priority 255
R1(config-if)#exit
R1(config)#exit
R1#
Note: Because higher priority routers will not pre-empt existing DR and BDR routers, we need
to manually reset the OSPF process on DR and then on BDR router.
www.rsatechforum.in
+91 8551802268
CCNA Labs by Ratan
*Oct 17 18:34:29.075: %OSPF-5-ADJCHG: Process 2, Nbr 1.1.1.1 on FastEthernet0/0 from
LOADING to FULL, Loading Done
*Oct 17 18:34:33.371: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on FastEthernet0/0 from
LOADING to FULL, Loading Done
www.rsatechforum.in
+91 8551802268
CCNA - 200-301 OSPFv2
Important Commands:
sh ip int brief | exclude unassign
sh ip protocols
sh ip ospf interface brief
show ip route ospf
sh ip ospf neighbor
sh ip ospf database
sh ip ospf interface xx
sh ip ospf virtual-links
clear ip ospf process
[email protected]
21 Page
www.rsatechforum.in
+91 8551802268