25
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
area default-cost (OSPF)
area default-cost (OSPF)
To specify a cost for the default summary route sent into an Open Shortest Path First (OSPF) stub or
not-so-stubby area (NSSA)
, use the area default-cost command. To remove the assigned default route
cost, use the no form of this command.
area area-id default-cost cost
no area area-id default-cost cost
Syntax Description
Command Default The summary route cost is based on the area border router that generated the summary route.
Command Modes Router configuration mode
Command History
Usage Guidelines Use the area default-cost command on an Area Border Router (ABR) attached to a stub or NSSA to
configure the metric for the summary default route generated by the ABR into the stub area.
This command requires the LAN Base Services license.
Examples This example shows how to set a default cost of 20 to stub network 192.0.2.0:
switch# configure terminal
switch(config)# router ospf 201
switch(config-router)# area 192.0.2.0 stub
switch(config-router)# area 192.0.2.0 default-cost 20
switch(config-router)#
Related Commands
area-id Identifier for the OSPF area where you want to configure the default
cost. The area ID can be from 0 to 4294967295 or an IP address.
cost Cost for the default summary route used for a stub or NSSA. The
range is from 0 to 16777215.
Release Modification
5.0(3)A1(1) This command was introduced.
Command Description
area stub Defines an area as a stub area.
copy running-config
startup-config
Saves the configuration changes to the startup configuration file.
show ip ospf Displays OSPF information.