CCNP Class Notes (Ospf)
CCNP Class Notes (Ospf)
FR
SWITCH Cloud
Backbone
Internal ABR Internal
Internal
AREA 5
AREA 52 ABR
Backbone
Internal ASBR
Exter
nal
RA RB AS
No Hello sent or
Received
Constructing
I am Router RB, My router ID is 10.0.0.1 224.0.0.5
Down State
INT State
EXSTART
STATE
I will start exchange process because my router ID is 10.0.0.1
DBD
(Exchange State)
Sharing Routing Information
DBD
10.0.0.2
EXCHANGE
STATE
10.1.12.0/24 .2 10.1.33.0/24
S0/2/0 .3 S0/0/0
2811_R1 1841_R3
Area 0 Area 23
R3(config)#router OSPF 1
R3(config-router)#net 0.0.0.0 255.255.255.255 area 23 [all interface in this router are in OSPF
area 23]
R1-2811#sh ip route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
(Not So Stubby
Area)
Type 8 External Attribute
LSA for BGP
Type 9, 10, Opaque LSA
and 11
Type 2 LSA:
Type 2
The DR of the Internal Type 2
network enforces DR
the network LSA Internal
Type 2
(Type 2) and then Type 2
Type 2 LSA is
flooded within the Internal
internal routers. Internal Area 1
Type LSAs don’t
cross the ABRs.
Area 3 Area 0
Type 3 LSA: Type 3
The ABR sent
Type 3 summary ABR ABR Area 1
LSA, is advertise
into the backbone Type 1 & 2 Type 1 & 2
by the ABRs only.
Backbone
Type 4 LSA:
The type 4
summary LSA is
generated by an Area 0
ABR only when an
ASBR exists ABR
within an area Type 4ABR Type 1 & 2
and then LSA are
subsequently
flooded
Area 3 Type 1 & 2
throughout the
OSPF domain. In Area 1
short type 4 LSA
are generated by ASBR Backbone
the ABRs of the
area which
Extern
contains ASBR.
al AS
Extern
Extern
al AS
al AS
Created by: Naim Ahmed 7
CCNP (Cisco Certified Network Professional) Class Note
Type of Areas
1. Backbone Area: Known as area 0. It is the area which acts like a transit to all
other area.
2. Off Backbone area: Areas which must be connected with area 0. Logically or
physical ranges between area 1 to 4294967295. Off backbone cannot
communicate each other without traversing area 0.
Area types depend upon the characteristic of the internal router
administrative privilege and accommodation of redistributed route. Based on
the information area can be of three types.
a. Stub Area – Does not accept information about external routes to the
OSPF domain, such as route from non OSPF sources (other routing
protocol). These mean that no type 5 LSA will be known inside this area
and consequently type 4 LSA is unnecessary. ABRs at the age of the Stub
area are used Type 3 LSA to advertise a single default route into the all
internal routers within the stub area, So that if the router need to route
to the network outside of the OSPF area will use default route.
b. Not So Stubby Area (NSSA) – An NSSA is another area to the OSPF area
terminology which offers the benefit that are similar to the Stub or
Totally Stubby area, but also all external route to be advertise into the
OSPF domain. These forms of NSSA allow ASBR (Redistribution Point).
The ASBR originated type 7 LSA to advertise the external
distribution. Type 7 LSAs are flooded throughout the NSSA but are
blocked by the ABR. the ABR convert the type 7 LSA into a type 5 LSA
which is propagated through the OSPF domain.
c. Totally Stubby Area – These type of area is even restricted than stubby
area. The internal router can communicate, within their networks, within
their area via OSPF routing. But, any communication beyond the area
must be communicated via default route. Totally stubby cannot contain
the ASBR. Except that the ASBR may also be ASBR.
External Type 1 Router (OE1) – Type OE1 extended route calculate the cost by adding
the external to the internal cost of each link that the packet process. We will use this
type route when there are multiple ASBR advertise an external route to the same
OSPF domain.
External Type 1 Router (OE2) – The external cost of OE2 packet is a value only and
that same value propagating throughout the OSPF domain. This is the default
external route type.
LAB 06: OSPF with Multi Area Configuration and Stub Configuration
Lb0: 10.1.2.1/24
2811 – R2
10.1.23.0/24
10.1.12.0/24 S0/0/0 S0/1/0
.2 .2
.1 DCE Lb0: 10.1.3.1/24
S0/2/0 S0/0/0 Lb200: 10.1.200.1/24
2811 – R1 .3
AREA 0 AREA 23
Based on the above scenario following will be the configuration for the OSPF.
R1-2811(config-router)#net 0.0.0.0 255.255.255.255 area 0
R1-2811#sh ip route
O - OSPF, IA - OSPF inter area
R3-1841#sh ip route
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial1/0
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 10.1.2.1/32 [110/65] via 10.1.12.2,
O IA00:00:12, Serial1/0
10.1.12.0/24 [110/128] via 10.1.23.2, 00:00:06, Serial1/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2,
C 00:00:03, Serial1/0
10.1.3.0/24 is directly connected, Loopback0
C 10.1.1.0/24 is directly connected, Loopback0
O IA 10.1.2.1/32 [110/65] via 10.1.23.2, 00:00:06, Serial1/0
O IA 10.1.23.0/24 [110/128] via 10.1.12.2,
O IA 00:00:12, Serial1/0
10.1.1.1/32 [110/129] via 10.1.23.2, 00:00:06, Serial1/0
O IA 10.1.200.1/32 [110/129] via 10.1.12.2,
C 00:00:03, Serial1/0
10.1.23.0/24 is directly connected, Serial1/0
C 10.1.200.0/24 is directly connected, Loopback200
R2-2811#sh ip ospf database
R3-1841#sh ip ospf database
OSPF Router with ID (10.1.2.1) (Process ID 1)
OSPF Router with ID (10.1.200.1) (Process ID 1)
Router Link States (Area 0)
Router Link States (Area 23)
Link ID
R1-2811#sh ADV database
ip ospf Router Age Seq# Checksum Link
Link ID ADV Router Age countSeq# Checksum Link count
10.1.2.1 10.1.2.1 398 0x80000002
10.1.1.1 0x000467
10.1.1.1
OSPF 2
Router with ID 298 0x80000004
(10.1.1.1) (Process ID 0x0060CB
1) 3
10.1.200.1 10.1.200.1 403 0x80000003 0x00FCA0
10.1.2.1 10.1.2.1 4 278 0x80000003 0x00FD2B 3
Router Link States (Area 0)
Summary Net Link States (Area 23) Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link
Link ID ADV Router Age Link Seq#
countID Checksum
ADV Router Age Seq# Checksum
10.1.1.1 10.1.2.1 404 0x80000001 0x00FBE4
10.1.3.1
10.1.1.1 10.1.2.1
10.1.1.1 263
331 0x80000001
0x80000004 0x00E5F8
0x0060CB 3
10.1.2.1 10.1.2.1 404 0x80000001 0x006EB1
10.1.23.0
10.1.2.1 10.1.2.1
10.1.2.1 273
313 0x80000001
0x80000003 0x0009C3
0x00FD2B 3
10.1.12.0 10.1.2.1 404 0x80000001 0x008255
10.1.200.1 10.1.2.1 263 0x80000001 0x0066B2
Summary Net Link States (Area 0)
Router Link States (Area 23)
Link ID ADV Router Age Seq# Checksum
Link ID
10.1.3.1 ADV Router
10.1.2.1 Age
298 Seq#
0x80000001 Checksum
0x00E5F8 Link
count
10.1.23.0 10.1.2.1 308 0x80000001 0x0009C3
10.1.2.1
10.1.200.1 10.1.2.1
10.1.2.1 272
298 0x80000002
0x80000001 0x000467
0x0066B2 2
10.1.200.1 10.1.200.1 278 0x80000003 0x00FCA0 4
R2-2811#sh ip ospf
Routing Process "ospf 1" with ID 10.1.2.1
!! Output omitted !!
Area BACKBONE(0)
Number of interfaces in this area is 2 (1 loopback)
Area has no authentication
SPF algorithm last executed 00:07:44.720 ago
SPF algorithm executed 4 times
Area ranges are
Number of LSA 5. Checksum Sum 0x02B463
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 23
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:07:34.728 ago
SPF algorithm executed 3 times
Area ranges are
Number of LSA 5. Checksum Sum 0x02EDF1
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
R3-1841(config)#router ospf 1
R3-1841(config-router)#area 23 stub no-summary
R2-2811#sh ip route
R3-1841#sh ip route
Codes: 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
AREA 0 AREA 23
As NSSA is not compatible with stub area we will remove the stub configuration first
and then area 23 as NSSA with common at “config-router” router mode.
Assume as LB200 is a static external (non OSPF route).
R3-1841(config)#int loopback 172
R3-1841(config-if)#ip address 172.16.200.1 255.255.255.0
Router(config-router)#area 23 NSSA
R2-2811(config)#router ospf 1
R2-2811(config-router)#area 23 nssa
R3-1841(config)#router ospf 1
R3-1841(config-router)#area 23 nssa
• For redistribute connected route in OSPF
R3-1841(config-router)#redistribute connected subnet
R2-2811#sh ip route
Codes: 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
R1-2811#sh ip route
172.16.0.0/24 is subnetted, 1 subnets
O E2 172.16.200.0 [110/20] via 10.1.12.2, 00:00:05, Serial1/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial1/0
O 10.1.2.1/32 [110/65] via 10.1.12.2, 00:27:19, Serial1/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2, 00:27:09, Serial1/0
C 10.1.1.0/24 is directly connected, Loopback0
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:27:19, Serial1/0
R1-2811#sh ip route
172.16.0.0/24 is subnetted, 1 subnets
O E1 172.16.200.0 [110/149] via 10.1.12.2, 00:00:50, Serial1/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial1/0
O 10.1.2.1/32 [110/65] via 10.1.12.2, 00:30:46, Serial1/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2, 00:30:37, Serial1/0
C 10.1.1.0/24 is directly connected, Loopback0
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:30:46, Serial1/0
The hello protocol works over the virtual link as it does over standard link in 10
second interval, however LSA updates works differently on virtual link and LSA
usually refresh every 30 munities but, LSAs learn through virtual link have “Do Not
Age (DNA)” option set. So, the LSA does age out. DNA is required to prevent
excessive flooding over the virtual link.
Area 0 Area 24
R4
Router ID 10.1.4.1/24
From the above scenario the virtual link command should be like:
ABR(config)#router ospf 1
ABR(config-router)#area 23 virtual link 10.1.4.1
R4(config)#router ospf 1
R4(config-router)#area 23 virtual link 10.1.2.1
LAB 07: OSPF with Multi Area, Virtual Link, Route summarization
Lb0:10.1.2.1/24 ABR
To External Global Route R2-2811
10.1.23.0/24
S0/0/0 S0/1/0 Area 23
Lb10:172.16.10.1/24 10.1.12.0/24 .2 S0/0/0
.1 .3 R3-1841
S0/2/0 Area 0 Lb0: 10.1.3.1/24
R1-2811
Lb0: 10.1.1.1/24 Lb100: 192.168.100.1/24
Lb101: 192.168.101.1/24
ASBR Lb200:192.168.200.1/24 Lb102: 192.168.102.1/24
Redistributed networks LB201: 192.168.201.1/24
Lb103: 192.168.103.1/24 Router ID
LB202: 192.168.202.1/24 Area 100
LB203: 192.168.203.1/24
Additional configuration
R3-1841(config)#router ospf 1
R3-1841(config-router)#network 192.168.100.0 0.0.3.255 area 100
R3-1841(config-router)#exit
For virtual link
R2(config)#router ospf 1
R2(config-router)#area 23 virtual link 192.168.103.1………[ <Router ID>
R3(config)#router ospf 1
R3(config-router)#area 23 virtual link 10.1.2.1 ……….[<Router ID>
R2-2811#sh ip route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial1/0
O 10.1.3.1/32 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
C 10.1.2.0/24 is directly connected, Loopback0
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:00:05, Serial1/0
C 10.1.23.0/24 is directly connected, Serial1/1
192.168.102.0/32 is subnetted, 1 subnets
O IA 192.168.102.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.103.0/32 is subnetted, 1 subnets
O IA 192.168.103.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.100.0/32 is subnetted, 1 subnets
O IA 192.168.100.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.101.0/32 is subnetted, 1 subnets
O IA 192.168.101.1 [110/65] via 10.1.23.3, 00:00:06, Serial1/1
R3(config)#router OSPF 1
R3(config-router)#area 100 range 192.168.100.0 255.255.252.0
R2-2811#sh ip route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
R2-2811#sh ip route
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial1/0
O 10.1.3.1/32 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
C 10.1.2.0/24 is directly connected, Loopback0
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:00:05, Serial1/0
C 10.1.23.0/24 is directly connected, Serial1/1
192.168.102.0/32 is subnetted, 1 subnets
O IA 192.168.102.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.103.0/32 is subnetted, 1 subnets
O IA 192.168.103.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.100.0/32 is subnetted, 1 subnets
O IA 192.168.100.1 [110/65] via 10.1.23.3, 00:00:05, Serial1/1
192.168.101.0/32 is subnetted, 1 subnets
O IA 192.168.101.1 [110/65] via 10.1.23.3, 00:00:06, Serial1/1
Injecting Defaults into OSPF
An autonomous system boundary router (ASBR) can be forced to generate a default
route into the OSPF domain. However, an ASBR does not, by default, generate a
default route into the OSPF routing domain.
To have OSPF generate a default route use the following:
Router(config-router)#default-information originate
R1-2811#sh ip route
!!Output omitted!!
C 10.1.1.0/24 is directly connected, Loopback0
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:06:34, Serial1/0
C 192.168.203.0/24 is directly connected, Loopback203
S* 0.0.0.0/0 [1/0] via 172.16.10.2
R3-1841#sh ip route O IA 192.168.100.0/22 [110/129] via 10.1.12.2, 00:06:35, Serial1/0
!!Output omitted!!
192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O*E2 0.0.0.0/0 [110/1] via 10.1.23.2, 00:01:08, Serial1/0
O 192.168.100.0/22 is a summary, 00:14:10, Null0
2. Non Broadcast
3. Point to Multipoint
5. Point to Point
Command
Description
Option
Point to It is a RFC complain, single IP subnet, use OSPF multicast hello. But
Multipoint DR BDR not required. Typically used in star topology.
DCE
1751_Spoke1
.1 S0/0/1 .2 S0/0
S0/0/0 DLCI – 201
DCE S0/1/0 Lb0: 10.1.2.1/24
2811_Hub
S0/2/0 .3
DLCI – 102 1841_Spoke2
DLCI – 103 S0/0/0
Lb0: DLCI – 301
10.1.1.1/24 Lb0: 10.1.3.1/24
1751_Spoke1(config)#router OSPF 1
1751_Spoke1 (config-router)#net 10.1.123.0 0.0.0.255 area 0
1751_Spoke1 (config-router)#ip route 10.1.2.0 0.0.0.255 area 0
1841_Spoke2 (config)#router OSPF 1
1841_Spoke2 (config-router)#net 10.1.123.0 0.0.0.255 area 0
1841_Spoke2 (config-router)#net 10.1.3.0 0.0.0.255 area 0
HUB#sh ip route
2811_Hub(config)#int s0/2/0
2811_Hub(config)#ip ospf network point-to-multipoint
1751_Spoke1(config)#int s0/0
1751_Spoke1 (config)#ip ospf priority 0
1751_Spoke1(config-if)#ip ospf network point-to-multipoint
1841_Spoke2(config)#int s0/0/0
1841_Spoke2 (config)#ip ospf priority 0
1841_Spoke2(config-if)#ip ospf network point-to-multipoint
HUB#sh ip ospf interface s1/0
Serial1/0 is up, line protocol is up
Internet Address 10.1.123.1/24, Area 0
Process ID 1, Router ID 10.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:25
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 2, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)