beautypg.com

Ip ospf cost – LevelOne GTL-2690 User Manual

Page 748

background image

Open Shortest Path First (OSPF)

42-35

42

Example
This example sets a message-digest key identifier and password.

Related Commands

ip ospf authentication (42-32)

ip ospf cost

This command explicitly sets the cost of sending a packet on an interface. Use the
no form to restore the default value.

Syntax

ip ospf cost cost
no ip ospf cost

cost - Link metric for this interface. Use higher values to indicate slower
ports. (Range: 1-65535)

Command Mode

Interface Configuration (VLAN)

Default Setting

1

Command Usage

• The interface cost indicates the overhead required to send packets across a

certain interface. This is advertised as the link cost in router link state
advertisements.

• Routes are assigned a metric equal to the sum of all metrics for each interface

link in the route.

• Interface cost reflects the port speed. This router uses a default cost of 1 for

all ports. Therefore, if you install a 10 Gigabit module, you may have to reset
the cost for all of the 100 Mbps ports to a value greater than 1.

• This router uses a default cost of 1 for all interfaces. Therefore, if any of the

interfaces used operate at 10 Gbps or greater (when using trunking), the cost
for all 1000 Mbps ports should be reset using this command to a value greater
than 1 to reflect the actual interface bandwidth.

Example

Console(config)#interface vlan 1
Console(config-if)#ip ospf message-digest-key 1 md5 aiebel
Console(config-if)#

Console(config)#interface vlan 1
Console(config-if)#ip ospf cost 10
Console(config-if)#