Ip Ospf Cost - Allied Telesis AT-AR3050S Command Reference Manual

Next-generation firewall
Hide thumbs Also See for AT-AR3050S:
Table of Contents

Advertisement

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 or a PPP 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.
The following example shows setting ospf cost to 10 on VLAN interface vlan25
Example
for IP address 10.10.10.50
awplus#
awplus(config)#
awplus(config-if)#
The following example shows setting ospf cost to 10 on PPP interface ppp0 for IP
address 10.10.10.50
awplus#
awplus(config)#
awplus(config-if)#
Related
show ip ospf interface
Commands
auto-cost reference bandwidth
C613-50077-01 REV A
Parameter
Description
<ip-address>
The IPv4 address of the interface, in dotted decimal notation.
<1-65535>
The link-state metric.
auto-cost reference bandwidth
configure terminal
interface vlan25
configure terminal
interface ppp0
Command Reference for AT-AR3050S
AlliedWare Plus™ Operating System - Version 5.4.5-2.x
command.
ip ospf 10.10.10.50 cost 10
ip ospf 10.10.10.50 cost 10
772

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents