108 CHAPTER 15: ROUTING CONFIGURATION GUIDE
# Redistribute the static route to specify Switch D as an ASBR.
[SwitchD-ospf-1] import-route static
[SwitchD-ospf-1] quit
nThe above-mentioned steps configure non-backbone areas, backbone area,
and ABRs/ASBRs.
By using the display ospf lsdb command on Switch C, you can see that Type-3
LSAs, Type-4 LSAs, and Type-5 LSAs exist in the link state database (LSDB). You
can control the generation of Type-4 LSAs and Type-5 LSAs by configuring the
stub attribute.
Configure a stub area (area 1)
Based on the configuration in “Non-backbone area and backbone area
configuration (area 1 is a non-backbone area)” on page 107, perform the
following steps:
# Configure area 1 as a stub area.
[SwitchA-ospf-1-area-0.0.0.1] stub
[SwitchC-ospf-1-area-0.0.0.1] stub
nUse the display ospf lsdb command on Switch C to display the LSDB. You can
see that no Type-4 LSAs or Type-5 LSAs exist in the LSDB. But a default Type-3
LSA is added.
Configure a totally stub area (area 1 is a totally stub area)
Based on the configuration in “Non-backbone area and backbone area
configuration (area 1 is a non-backbone area)” on page 107, perform the
following steps:
# Configure area 1 as a totally stub area.
[SwitchA-ospf-1-area-0.0.0.1] stub no-summary
[SwitchC-ospf-1-area-0.0.0.1] stub
nTo configure a stub area as a totally stub area, use the stub no-summary
command on the ABR of the stub area.
Use the display ospf lsdb command on Switch C to display the LSDB. You can
see that no Type-3 LSAs, Type-4 LSAs, or Type-5 LSAs exist in the LSDB. But a
Type-3 default LSA is added.
Complete Configuration Configuration information when area 1 is a non-backbone area:
Perform the following configuration on Switch A.
#
vlan 100
#
vlan 200
#
interface Vlan-interface100
ip address 10.1.1.1 255.255.255.0
#
interface Vlan-interface200