Chapter 3
Configuring OSPFv2
S e n d d o c u m e n t c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
router ospf instance-tag
Example:
switch(config)# router ospf 201
switch(config-router)#
Step 3
area area-id stub
Example:
switch(config-router)# area 0.0.0.10
stub
Step 4
area area-id default-cost cost
Example:
switch(config-router)# area 0.0.0.10
default-cost 25
Step 5
show ip ospf instance-tag
Example:
switch(config-if)# show ip ospf 201
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to create a stub area:
switch# configure terminal
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:
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Purpose
Enters configuration mode.
Creates a new OSPFv2 instance with the configured
instance tag.
Creates this area as a stub area.
(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.
(Optional) Displays OSPF information.
(Optional) Saves this configuration change.
Configuring Advanced OSPFv2
3-25