Send document comments to nexus7k-docfeedback@cisco.com.
6-26
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 6 Configuring OSPFv2
Configuring Advanced OSPFv2
DETAILED STEPS
The following example shows how to create a stub area:
switch# config t
switch(config)# router ospf 201
switch(config-router)# area 0.0.0.10 stub
switch(config-router)# copy running-config startup-config
Configuring a Totally Stubby Area
You can create a totally stubby area and prevent all summary route updates from going into the stub area.
To create a totally stubby area, use the following command in router configuration mode:
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
router ospf
instance-tag
Example:
switch(config)# router ospf 201
switch(config-router)#
Creates a new OSPFv2 instance with the configured
instance tag.
Step 3
area
area-id
stub
Example:
switch(config-router)# area 0.0.0.10
stub
Creates this area as a stub area.
Step 4
area
area-id
default-cost
cost
Example:
switch(config-router)# area 0.0.0.10
default-cost 25
(Optional) Sets the cost metric for the default summary
route sent into this stub area. The range is from 0 to
16777215. The default is 1.
Step 5
show ip ospf
instance-tag
Example:
switch(config-if)# show ip ospf 201
(Optional) Displays OSPF information.
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.