974 Configuring OSPF and OSPFv3
Configuring Stub Areas and NSSAs
Beginning in Privileged EXEC mode, use the following commands to
configure OSPF stub areas and NSSAs.
network
ip-address
wildcard-mask
area
area-
id
Enable OSPFv2 on interfaces whose primary IP address
matches this command, and make the interface a member
of the specified area.
•
ip-address
— Base IPv4 address of the network area.
•
wildcard-mask
— The network mask indicating the
subnet.
•
area-id
— The ID of the area (Range: IP address or
decimal from 0–4294967295).
exit Exit to Global Config mode.
exit Exit to Privileged EXEC mode.
show ip ospf interface
[vlan
vlan-id
]
View summary information for all OSPF interfaces
configured on the switch or for the specified routing
interface.
show ip ospf interface
stats vlan
vlan-id
View per-interface OSPF statistics.
Command Purpose
configure Enter global configuration mode.
router ospf Enter OSPF configuration mode.
area
area-id
stub Create a stub area for the specified area ID.
area
area-id
stub no-
summary
Prevent Summary LSAs from being advertised into the
stub area.
area
area-id
default-cost
integer
Configure the metric value (default cost) for the type 3
summary LSA sent into the stub area. Range:
1–16777215)
area
area-id
nssa Create an NSSA for the specified area ID.
area
area-id
nssa no-
summary
Configure the NSSA so that summary LSAs are not
advertised into the NSSA.
Command Purpose