PREV NEXT INDEX

Avici Systems Inc.


ip ospf cost


Explicitly configures the OSPF cost metric for the interface.

Syntax: ip ospf cost cost

no ip ospf cost

cost

The cost of sending a packet on this interface. An interface with a low cost is favored over an interface with a higher cost. Valid values for cost are 1 to 65535. Default: 0 for Loopback, 10 for all other interfaces.

Description: Cost is used by OSPF to set the metric in the router's link state advertisement. The shortest path first (SPF) algorithm uses this value to compute the cost for each route. Routes with lower costs are preferred over routes with higher costs.

Use the ip ospf cost cost command to configure the cost of sending a packet on this interface.

Use the no ip ospf cost command to set the cost for this interface at the default value.

Factory Default: For loopback interfaces: 0, for all other interfaces: 10.

Command Mode: Interface configuration.

Example: In the following example, the ip ospf cost cost command configures the cost for interface POS 1/1/1 to 12, and the show ip ospf interface pos 1/1/1 command displays the setting:

router(config)#router ospf 1

router(config-router)#network 10.1.1.0 0.0.0.255 area 1

router(config-router)#interface pos 1/1/1

router(config-if)#ip ospf cost 12

router(config-if)#end

router#show ip ospf interface pos 1/1/1

Name: POS 1/1/1

Address: 201.1.1.10

Net type: PointToPoint

State: P To P

Area: 0.0.0.0

DR: 0.0.0.0

BDR: 0.0.0.0

Priority: 1

Cost: 12

Hello int: 10

Dead int: 40

Retrans int: 5

Transmit delay: 1

Related Commands: area default-cost
network area
router ospf
show ip ospf interface


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: ospf.fm
    HTML File Name: ospf8.html
    Last Updated: 05/10/04 at 16:34:58

Please email suggestions and comments to: doc@avici.com