beautypg.com

16 ip ospf cost, 17 ip ospf database-filter all out – CANOGA PERKINS 9175 Command Reference User Manual

Page 224

background image

CanogaOS Command Reference

15-15

15.16 ip ospf cost

To explicitly specify the cost of sending a packet on an interface, use the ip ospf cost command in

interface configuration mode. To reset the path cost to the default value, use the no form of this

command.


Command Syntax

ip ospf cost interface-cost

no ip ospf cost

interface-cost

Unsigned integer value expressed as the link-state metric. It can be a value in

the range from 1 to 65535.


Default

No default cost is predefined.


Command Mode

Interface configuration


Usage

You can set the metric manually using this command, if you need to change the default. Using the

bandwidth command changes the link cost as long as this command is not used.

The link-state metric is advertised as the link cost in the router link advertisement.

In general, the path cost is calculated using the following formula:

10

8

/ bandwidth


Examples

The following example sets the interface cost value to 65:

Switch(config-if)# ip ospf cost 65


Related Commands

15.17 ip ospf database-filter all out

To filter outgoing link-state advertisements (LSAs) to an Open Shortest Path First (OSPF) interface, use

the ip ospf database-filter all out command in interface configuration mode. To restore the forwarding

of LSAs to the interface, use the no form of this command.


Command Syntax

ip ospf database-filter all out

no ip ospf database-filter all out


Default

This command is disabled by default. All outgoing LSAs are flooded to the interface.