Ip ospf cost – Allied Telesis AT-S83 User Manual

Page 319

Advertising
background image

AT-S83 Management Software Command Line Interface User’s Guide

319

IP OSPF COST

Syntax

ip ospf (A.B.C.D) cost COST <1-65535>

no ip ospf (A.B.C.D) cost

Parameters

A.B.C.D

Specifies the IP address of the interface. This is an
optional parameter.

COST

Specifies the link-state metric. The default value is 10.
Enter a value between 1 to 65,535.

Description

Use the IP OSPF COST command to specify the cost of link-state metric in
a router-LSA. The interface cost indicates the overhead required to send
packets across the interface specified. This cost is stated in the Router-
LSA’s link. The cost is inversely proportional to the bandwidth of an
interface. By default, the cost of an interface is calculated based on the
bandwidth (10

8

/ bandwidth). Use the IP OSPF COST command to set the

cost manually.

Use the no form of this command to reset the interface cost to the default
value.

Command Mode

Interface mode

Example

The following example sets the OSPF cost value to 12 on interface 3 for IP
address 192.43.23.23:

switch# configure terminal

switch(config)# interface xe3

switch(config-if)# ip ospf 192.43.23.23 cost 12

Related Commands

“AUTO-COST REFERENCE-BANDWIDTH” on page 312

Advertising