2 area default-cost, 2 area, Cost – CANOGA PERKINS 9175 Command Reference User Manual

Page 211

Advertising
background image

CanogaOS Command Reference

15-2

no switchport

ip address 10.56.0.201/16

ip ospf authentication-key ijklmnop

!

router ospf 201

network 10.0.0.0 0.255.255.255 area 10.0.0.0

network 192.168.0.0/16 area 0

area 10.0.0.0 authentication

area 0 authentication


Related Commands

ip ospf authentication-key

15.2 area

Default

-cost

To specify a cost for the default summary route sent into a stub or not-so-stubby area (NSSA), use the

area

Default

-cost command in router configuration mode. To remove the assigned default route cost,

use the no form of this command.


Command Syntax

area area-id default-cost cost

no area area-id default-cost

area-id

Identifier for the stub or NSSA. 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 or NSSA. The acceptable value is

a 24-bit number.


Default

cost: 1


Command Mode

Router configuration


Usage

The command is used only on an Area Border Router (ABR) attached to a stub or NSSA.

There are two stub area router configuration commands: the stub and

Default

-cost options of the area

command. 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 ABR

attached to the stub area. The

Default

-cost option provides the metric for the summary default route

generated by the ABR into the stub area.


Examples

The following example assigns a default cost of 20 to stub network 10.0.0.0:

interface eth-0-1

Advertising