C613-50170-01 Rev B
Command Reference for x510 Series
1007
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
OSPF C
OMMANDS
IP
OSPF
COST
ip ospf cost
Overview
This command explicitly specifies the cost of the link-state metric in a router-LSA.
The
no
variant of this command resets the VLAN interface cost to the default.
Syntax
ip ospf [<
ip-address
>] cost <
1-65535
>
no ip ospf [<
ip-address
>] cost
Default
By default there is no static value set and the OSPF cost is automatically calculated
by using the
Mode
Interface Configuration for a VLAN interface.
Usage
This command explicitly sets a user specified cost of sending packets out the
interface. Using this command overrides the cost value calculated automatically
with the auto-cost reference bandwidth feature.
The interface cost indicates the overhead required to send packets across a certain
VLAN interface. This cost is stated in the Router-LSA’s link. Typically, the cost is
inversely proportional to the bandwidth of an interface. By default, the cost of a
VLAN interface is calculated according to the following formula:
reference bandwidth/interface bandwidth
To set the VLAN interface cost manually, use this command.
Example
The following example shows setting ospf cost to 10 on VLAN interface
vlan25
for IP address 10.10.10.50
awplus#
configure terminal
awplus(config)#
interface vlan25
awplus(config-if)#
ip ospf 10.10.10.50 cost 10
Related
Commands
Parameter
Description
<
ip-address
>
The IPv4 address of the interface, in dotted decimal notation.
<
1-65535
>
The link-state metric.