Example
This example sets a message-digest key identifier and password.
Console(config)#interface vlan 1
Console(config-if)#ip ospf message-digest-key 1 md5 aiebel
Console(config-if)#
Related Commands
ip ospf authentication (42-32)
ip ospf cost
This command explicitly sets the cost of sending a packet on an inte rface. Use t he
no
form to restore the default value.
Syntax
ip ospf cost cost
no ip ospf cost
cost - Link metric for this interface. Use higher val ues to indicate slow er
ports. (Range: 1-65535)
Command Mode
Interface Configuration (VLAN)
Default Setting
1
Command Usage
The interface cost indicates the overhead re quired to se nd packets ac ross a
certain interface. This is advertised as the link cost i n 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 def ault cost o f 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 greate r 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), th e c ost
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 cost 10
Console(config-if)#
42-35
Open Shortest Path First (OSPF)
42