In this lecture notes, I will be going through another important topics in OSPF which is Special Areas. We know we have Backbone Areas which is the default Area. Backbone Area is required for other Area routers to communicate to one another. Now, Let’s discuss more OSPF Special Areas including Stub Area, Totally Stub Area, NSSA, and Totally NSSA. My main focus for this post will be STUB AREA.
Concepts:
Laboratory Objective:
Here is my topology for my laboratory:
Here are my router configurations:
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#hostname MANILA
MANILA(config)#int s2/0
MANILA(config-if)#ip address 192.168.12.1 255.255.255.0
MANILA(config-if)#no shut
MANILA(config-if)#exit
MANILA(config)#int lo0
MANILA(config-if)#ip add 10.10.10.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo1
MANILA(config-if)#ip add 10.10.11.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo2
MANILA(config-if)#ip address 10.10.12.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo3
MANILA(config-if)#ip add 10.10.13.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#router ospf 1
MANILA(config-router)#network 192.168.12.0 0.0.0.255 area 0
MANILA(config-router)#redistribute connected subnets
MANILA(config-router)#^Z
Enter configuration commands, one per line. End with CNTL/Z.
MELBOURNE(config)#int s2/0
MELBOURNE(config-if)#ip address 192.168.12.2 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)#exit
MELBOURNE(config-if)#ip add 192.168.23.2 255.255.255.0
MELBOURNE(config-if)#exit
MELBOURNE(config)#int lo2
MELBOURNE(config-if)#ip add 20.20.20.1 255.255.255.0
MELBOURNE(config-if)#exit
MELBOURNE(config-router)#network 192.168.12.0 0.0.0.255 area 0
MELBOURNE(config-router)#network 20.20.20.0 0.0.0.255 area 0
MELBOURNE(config-router)#network 192.168.23.0 0.0.0.255 area 1
MELBOURNE(config-router)#^Z
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#hostname SINGAPORE
SINGAPORE(config)#int s2/1
SINGAPORE(config-if)#ip add 192.168.23.3 255.255.255.0
SINGAPORE(config-if)#no shut
SINGAPORE(config-if)#exit
SINGAPORE(config)#int lo3
SINGAPORE(config-if)#ip add 30.30.30.1 255.255.255.0
SINGAPORE(config-if)#exit
SINGAPORE(config)#router ospf 1
SINGAPORE(config-router)#network 30.30.30.0 0.0.0.255 area 1
SINGAPORE(config-router)#network 192.168.23.0 0.0.0.255 area 1
Verifications:
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.10.10.0 10.10.13.1 75 0x80000001 0x0072ED 0
10.10.11.0 10.10.13.1 75 0x80000001 0x0067F7 0
10.10.12.0 10.10.13.1 75 0x80000001 0x005C02 0
10.10.13.0 10.10.13.1 75 0x80000001 0x00510C 0
SINGAPORE# show ip route ospf
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 4 subnets
O E2 10.10.10.0 [110/20] via 192.168.23.2, 00:01:26, Serial2/1
O E2 10.10.11.0 [110/20] via 192.168.23.2, 00:01:26, Serial2/1
O E2 10.10.12.0 [110/20] via 192.168.23.2, 00:01:26, Serial2/1
O E2 10.10.13.0 [110/20] via 192.168.23.2, 00:01:26, Serial2/1
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.1 [110/65] via 192.168.23.2, 00:01:26, Serial2/1
O IA 192.168.12.0/24 [110/128] via 192.168.23.2, 00:01:26, Serial2/1
SINGAPORE#
MANILA(config-router)#summary-address 10.0.0.0 255.0.0.0 <<< This is how we summarized routes that were redistributed into OSPF from the ASBR.
MANILA(config-router)#^Z
MANILA#
OSPF Router with ID (30.30.30.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 416 0x8000000D 0x00229C 2
30.30.30.1 30.30.30.1 411 0x80000008 0x006BCD 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
20.20.20.1 20.20.20.1 439 0x80000005 0x00C6F6
192.168.12.0 20.20.20.1 439 0x80000005 0x00E560
Summary ASB Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.10.13.1 20.20.20.1 439 0x80000001 0x00811B
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 80 0x80000001 0x00591B 0
SINGAPORE#
Summary ASB Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.10.13.1 20.20.20.1 632 0x80000001 0x00811B
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 271 0x80000001 0x00591B 0
MELBOURNE#
router ospf 1
network 20.20.20.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 1
MELBOURNE#config t
Enter configuration commands, one per line. End with CNTL/Z.
MELBOURNE(config)#router ospf 1
MELBOURNE(config-router)#area 1 stub <<< This is the COMMAND to enable STUB AREA on the routers.
MELBOURNE(config-router)#
*Jul 28 00:25:17.131: %OSPF-5-ADJCHG: Process 1, Nbr 30.30.30.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
MELBOURNE(config-router)#
*Jul 28 00:25:42.255: %OSPF-5-ADJCHG: Process 1, Nbr 30.30.30.1 on Serial2/1 from LOADING to FULL, Loading Done
MELBOURNE(config-router)#
router ospf 1
network 30.30.30.0 0.0.0.255 area 1
network 192.168.23.0 0.0.0.255 area 1
SINGAPORE#config t
Enter configuration commands, one per line. End with CNTL/Z.
SINGAPORE(config)#router ospf 1
SINGAPORE(config-router)#area 1 stub
SINGAPORE(config-router)#^Z
SINGAPORE#
*Jul 28 00:25:23.123: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Jul 28 00:25:23.607: %SYS-5-CONFIG_I: Configured from console by console
SINGAPORE#
SINGAPORE#
*Jul 28 00:25:26.215: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.1 on Serial2/1 from LOADING to FULL, Loading Done
SINGAPORE#
OSPF Router with ID (30.30.30.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 269 0x8000000F 0x003C82 2
30.30.30.1 30.30.30.1 266 0x8000000B 0x0083B4 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 20.20.20.1 294 0x80000001 0x00C937
20.20.20.1 20.20.20.1 294 0x80000007 0x00E0DC
192.168.12.0 20.20.20.1 294 0x80000007 0x00FF46
SINGAPORE#
OSPF Router with ID (20.20.20.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.10.13.1 10.10.13.1 1646 0x80000005 0x00E24E 2
20.20.20.1 20.20.20.1 1623 0x80000008 0x0022A2 3
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
30.30.30.1 20.20.20.1 675 0x80000001 0x00E77B
192.168.23.0 20.20.20.1 1623 0x80000002 0x0072CB
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 679 0x8000000F 0x003C82 2
30.30.30.1 30.30.30.1 678 0x8000000B 0x0083B4 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 20.20.20.1 705 0x80000001 0x00C937
20.20.20.1 20.20.20.1 705 0x80000007 0x00E0DC
192.168.12.0 20.20.20.1 705 0x80000007 0x00FF46
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 1425 0x80000001 0x00591B 0
MELBOURNE#
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is 192.168.23.2 to network 0.0.0.0
O*IA 0.0.0.0/0 [110/65] via 192.168.23.2, 00:16:19, Serial2/1
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.1 [110/65] via 192.168.23.2, 00:16:19, Serial2/1
O IA 192.168.12.0/24 [110/128] via 192.168.23.2, 00:16:19, Serial2/1
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
O E2 10.0.0.0/8 [110/20] via 192.168.12.1, 00:18:55, Serial2/0
30.0.0.0/32 is subnetted, 1 subnets
O 30.30.30.1 [110/65] via 192.168.23.3, 00:18:25, Serial2/1
MELBOURNE#
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
O 10.0.0.0/8 is a summary, 00:32:46, Null0
20.0.0.0/32 is subnetted, 1 subnets
O 20.20.20.1 [110/65] via 192.168.12.2, 01:08:11, Serial2/0
30.0.0.0/32 is subnetted, 1 subnets
O IA 30.30.30.1 [110/129] via 192.168.12.2, 00:20:22, Serial2/0
O IA 192.168.23.0/24 [110/128] via 192.168.12.2, 01:06:03, Serial2/0
MANILA#
Verification for Network connectivity:
Leave a comment