Area parameters can be configured only after enabling the OSPF process. They are configured in the Router Configuration Mode.
A stub area is an area in which advertisements of external routes are not allowed, which thus reduces the size of the database even more. Instead, a default summary route (0.0.0.0) is inserted into the stub area in order to reach these external routes. If you have no external routes in your network, then you have no need to define stub areas.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 stub
Execute the following command to reconfigure the area 0.0.0.6 as a normal area.
iS5comm(config-router)# no area 0.0.0.6 stub
For Sample Configuration for Stub area, ASBR and route redistribution, refer to Figure - Topology for Configuration of Stub area, ASBR and route redistribution.
iS5comm(config-if)# end
Routers that act as gateways (redistribution) between OSPF and other routing protocols (IGRP, EIGRP, RIP, BGP, Static) or other instances of the OSPF routing process are called autonomous system boundary router (ASBR).
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# asbr router
Disable the ASBR router by executing the following command
iS5comm(config-router)# no asbr router
For Sample Configuration for Stub area, ASBR and route redistribution, refer to Figure - Topology for Configuration of Stub area, ASBR and route redistribution.
iS5comm(config-if)# end
Redistribution configures the protocol from which the routes have to be redistributed into OSPF.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# asbr router
iS5comm(config-router)# redistribute all
Disable redistribution of routes by executing the following command.
iS5comm(config-router)# no redistribute all
Some prerequisite configuration (refer Configuration Guidelines (Prerequisite)) must be done in the switches ISS4, ISS5, and ISS7 before configuring OSPF.
An NSSA area has the capability to import limited number of external routes. Execute the following commands to configure an area as an NSSA (Not-So-Stubby-Area) area.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
Execute the following command to reconfigure the area 0.0.0.6 as a normal area
iS5comm(config-router)# no area 0.0.0.6 nssa
iS5comm(config-if)# end
Refer to Sample NSSA Configuration, summary address configuration, and area-default cost.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
iS5comm(config-router)# summary-address 90.0.0.0 255.0.0.0 0.0.0.6
Delete the summary address configuration for 90.0.0.0/8 in the NSSA area by executing the following command
iS5comm(config-router)# no summary-address 90.0.0.0 255.0.0.0 0.0.0.6
iS5comm(config-if)# end
Configuring Area-default Cost specifies the cost for the default summary route sent into a stub or NSSA.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
iS5comm(config-router)# area 0.0.0.6 default-cost 50
Go back to default cost for the default summary route sent into NSSA area by executing the following command.
iS5comm(config-router)# no area 0.0.0.6 default-cost
iS5comm(config-if)# end
Some prerequisite configuration (refer to section 3.2 Configuration Guidelines (Prerequisite)) must be done in the switches ISS2, ISS4, ISS9 before configuring OSPF.
Type the following:
Configuration of ISS2
ISS4 is configured as an ASBR (Autonomous System Border Router) for redistributing the external routes into OSPF domain.
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.4.0.4
iS5comm(config-router)# network 10.4.0.2 area 0.0.0.0
iS5comm(config-router)# network 10.2.2.2 area 0.0.0.2
iS5comm(config-router)# area 0.0.0.2 nssa
iS5comm(config-router)# end
Configuration of ISS4
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.4.0.4
iS5comm(config-router)# network 10.4.0.4 area 0.0.0.0
iS5comm(config-router)# end
Configuration of ISS9
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# asbr router
iS5comm(config-router)# redistribute static
iS5comm(config-router)# router-id 10.2.2.9
iS5comm(config-router)# network 10.2.2.9 area 0.0.0.2
iS5comm(config-router)# area 0.0.0.2 nssa
iS5comm(config-router)# summary-address 90.0.0.0 255.0.0.0 0.0.0.2
iS5comm(config-router)# exit
iS5comm(config)# ip route 90.1.0.0 255.255.0.0 10.2.2.2
iS5comm(config)# ip route 90.2.0.0 255.255.0.0 10.2.2.2
iS5comm(config)# ip route 90.3.0.0 255.255.0.0 10.2.2.2
iS5comm(config)# ip route 90.4.0.0 255.255.0.0 10.2.2.2
iS5comm(config)# ip route 90.5.0.0 255.255.0.0 10.2.2.2
iS5comm(config-router)# end
Type the following:
In ISS2
View the two NSSA-external LSAs, one for 90.0.0.0/8 matching the summary range configured and the other for the default external route in the NSSA area.
Another external LSA is generated in the area 0.0.0.0 corresponding to the NSSA-external LSA 90.0.0.0/8.
iS5comm# show ip ospf database nssa-external
OSPF Router with ID (10.4.0.2)
---------------------------------------------
LS age : 300
Options : (No ToS Capability, DC)
NSSA External Link States (Area 0.0.0.2)
LS Type : NSSA External Link
Link State ID : 90.0.0.0
Advertising Router : 10.2.2.9
LS Seq Number : 0x80000001
Checksum : 0xc84f
Length : 36
NSSA External Link States (Area 0.0.0.2)
LS age : 300
Options : (No ToS Capability, DC)
LS Type : AS External Link
Link State ID : 0.0.0.0
Advertising Router : 10.4.0.2
LS Seq Number : 0x80000002
Checksum : 0x120
Length : 36
iS5comm# show ip ospf database external
OSPF Router with ID (10.4.0.2)
AS External Link States
---------------------------------------------
LS age: 0
Options: (No ToS Capability, DC)
LS Type: AS External Link
Link State ID: 90.0.0.0
Advertising Router : 10.4.0.2
LS Seq Number : 0x80000001
Checksum : 0x49fd
Length : 36
Network Mask : 255.0.0.0
Metric Type : 0x80
Metric : 10
Forward Address : 10.2.2.9
External Route Tag: 0
iS5comm# show ip ospf route
OSPF Process Routing Table
Dest/Mask TOS NextHop/Interface Cost Rt.Type Area
--------- --- -------/--------- ---- ------- ----
10.2.2.0/255.255.255.0 0 0.0.0.0/vlan2 1 IntraArea 0.0.0.2
10.4.0.0/255.255.0.0 0 0.0.0.0/vlan1 1 IntraArea 0.0.0.0
90.0.0.0/255.0.0.0 0 10.2.2.9/vlan2 10 Type2 Ext 0.0.0.2
In ISS4
iS5comm# show ip ospf route
OSPF Process Routing Table
Dest/Mask TOS NextHop/Interface Cost Rt.Type Area
--------- --- -------/--------- ---- ------- ----
10.2.2.0/255.255.255.0 0 10.4.0.2/vlan1 2 InterArea 0.0.0.0 10.4.0.0/255.255.0.0 0 0.0.0.0/vlan1 1 IntraArea 0.0.0.0
90.0.0.0/255.0.0.0 0 10.4.0.2/vlan1 10 Type2Ext 0.0.0.0
In ISS4
iS5comm# show ip ospf database nssa-external
OSPF Router with ID (10.2.2.9)
NSSA External Link States (Area 0.0.0.2)
---------------------------------------------
LS age: 300
Options: (No ToS Capability, DC)
LS Type: NSSA External Link
Link State ID: 90.0.0.0
Advertising Router : 10.2.2.9
Advertising Router : 10.2.2.9
LS Seq Number : 0x80000001
Checksum : 0xc84f
Length : 36
NSSA External Link States (Area 0.0.0.2)
---------------------------------------------
LS age : 300
Options : (No ToS Capability, DC)
LS Type : NSSA External Link
Link State ID : 0.0.0.0
Advertising Router : 10.4.0.2
LS Seq Number : 0x80000002
Checksum : 0x120
Length : 36
iS5comm# show ip ospf summary-address
Display of Summary addresses for Type5 and Type7 from redistributed routes
OSPF External Summary Address Configuration Information
-----------------------------------------------------
Network Mask Area Effect TranslationState
------- ---- ---- ------ ---------------
90.0.0.0 255.0.0.0 0.0.0.2 advertiseMatching enabled
iS5comm# show ip route
O 0.0.0.0/0 [2] via 10.2.2.2
C 10.2.2.0/24 is directly connected, vlan2
O 10.4.0.0/16 [2] via 10.2.2.2
90.0.0.0 255.0.0.0 0.0.0.2 advertiseMatching enabled
C 12.0.0.0/8 is directly connected, vlan1
S 90.1.0.0/16 [1] via 10.2.2.2
S 90.2.0.0/16 [1] via 10.2.2.2
S 90.3.0.0/16 [1] via 10.2.2.2
S 90.4.0.0/16 [1] via 10.2.2.2
S 90.5.0.0/16 [1] via 10.2.2.2
iS5comm# show ip ospf route
iS5comm# show ip ospf route
OSPF Process Routing Table
Dest/Mask TOS NextHop/Interface Cost Rt.Type Area
-------- --- -------/--------- ---- ------- ----
0.0.0.0/0.0.0.0 0 10.2.2.2/vlan2 2 Type1Ext 0.0.0.2
10.2.2.0/255.255.255.0 0 0.0.0.0/vlan2 1 IntraArea 0.0.0.210.4.0.0/255.255.0.0 0 10.2.2.2/vlan2 2 InterArea 0.0.0.2
Configuring NSSA asbr-default-route translator enables/disables setting of P bit in the default Type-7 LSA generated by NSSA internal ASBR.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
iS5comm(config-router)# set nssa asbr-default-route translator enable
Disable nssa asbr-default-route translator by executing the following command
iS5comm(config-router)# set nssa asbr-default-route translator disable
iS5comm(config-if)# end
Configuring NSSA Area Translation Role configures the translation role for the NSSA as always or candidate.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
iS5comm(config-router)# set nssa asbr-default-route translator enable
Disable nssa asbr-default-route translator by executing the following command
iS5comm(config-router)# set nssa asbr-default-route translator disable
iS5comm(config-if)# end
This section configures the number of seconds after which an elected translator determines that its services are no longer required, and that it must continue to perform its translation duties for NSSA.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# asbr router
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 nssa
iS5comm(config-router)# area 0.0.0.6 stability-interval 120
Go back to the default stability interval for the NSSA area 0.0.0.6 by executing the following command.
iS5comm(config-router)# no area 0.0.0.6 stability-interval
The default value for stability interval is 40 seconds and is configured using the command no area <area-id> stability-interval.
iS5comm(config-if)# end
Configuring abr-type sets the ABR-Type as either standard, or Cisco, or IBM.
Configuring RFC 1583 Compatibility sets the OSPF compatibility list to be compatible with the RFC 1583.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# compatible rfc1583
Configuring Default-information Originate Always enables generation of a default external route into the OSPF routing domain and other parameters related to that area.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# asbr router
iS5comm(config-router)# default-information originate always metric 40
Disable generation of a default external route by executing the following command.
iS5comm(config-router)# no default-information originate always
Refer to Figure Topology for Testing Generation of a Default External Route and Redistribution Configuration.
Configuring redistribution configuration configures the information to be applied to routes learnt from RTM.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# asbr router
iS5comm(config-router)# redistribute static
iS5comm(config-router)# redist-config 20.0.0.0 255.0.0.0 metric-value 100 metric-type asExttype1 tag 10
Delete the information applied to the routes learnt from RTM by executing the following command
iS5comm(config-router)# no redist-config 20.0.0.0 255.0.0.0
Some prerequisite configuration (refer to Section Configuration Guidelines (Prerequisite)) must be done in the switches ISS1 & ISS2 before configuring OSPF.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# asbr router
iS5comm(config-router)# default-information originate always metric 40
iS5comm(config-router)# end
Configuration in ISS1
Configuration in ISS2
Configuring Neighbor specifies an NBMA (Non Broadcast Multi Access) neighbor router and its priority.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# end
iS5comm(config-if)# interface vlan 1
iS5comm(config-if)# ip ospf network non-broadcast
iS5comm(config-if)# exit
iS5comm(config)# router ospf
iS5comm(config-router)# neighbor 10.4.0.2 priority 10
iS5comm(config-if)# no neighbor 10.4.0.2 priority 10
Delete the configured neighbor by executing the following command.
iS5comm(config-router)# no neighbor 10.4.0.2
Configuring Virtual Link defines an OSPF virtual link and its related parameters.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 virtual-link 20.0.0.1 authentication message-digest hello-interval 100 retransmit-interval 100 transmit-delay 50 dead-interval 200 authentication-key asdf
iS5comm(config-router)# no area 0.0.0.6 virtual-link 20.0.0.1
Configuring Virtual Link defines an OSPF virtual link and its related parameters.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# no area 0.0.0.6 virtual-link 20.0.0.1
The area-range is configured to consolidate and summarize routes at an area boundary.
Type the following:
iS5comm# configure terminal
iS5comm(config)# router ospf
iS5comm(config-router)# router-id 10.10.2.1
iS5comm(config-router)# network 10.4.0.1 area 0.0.0.0
iS5comm(config-router)# network 10.10.2.1 area 0.0.0.6
iS5comm(config-router)# area 0.0.0.6 range 10.10.0.0 255.255.0.0 summary