To specify a cost for the default summary route sent into a stub area, use thearea default-cost router configuration 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
no area area-id
area-id  Identifier for the stub area. The identifier can be specified as either a decimal value or as an IP address.
cost  Cost for the default summary route used for a stub area. The acceptable value is a 24-bit number.
Cost of 1
Router configuration
Release | Modification | 10.0 | This command was introduced. |
---|
The command is used only on an area border router attached to a stub area.
There are two stub area router configuration commands: the stub and default-cost options of the areacommand. In all routers and access servers attached to the stub area, the area should be configured as a stub area using the stub option of the area command. Use the default-cost option only on an area border router attached to the stub area. Thedefault-cost option provides the metric for the summary default route generated by the area border router into the stub area.
To remove the specified area from the software configuration, use the command no area area-id (with no other keywords). That is, no areaarea-id removes all area options, such as area authentication, area default-cost , area nssa, area range, area stub, and area virtual-link.
The following example assigns a default-cost of 20 to stub network 36.0.0.0:
interface ethernet 0 ip address 36.56.0.201 255.255.0.0 ! router ospf 201 network 36.0.0.0 0.255.255.255 area 36.0.0.0 area 36.0.0.0 stub area 36.0.0.0 default-cost 20
Command | Description |
---|---|
area authentication | Enables authentication for an OSPF area. |
area stub | Defines an area as a stub area. |
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.