beautypg.com

Ip ospf cost – LevelOne GTL-2691 User Manual

Page 1496

background image

C

HAPTER

49

| IP Routing Commands

Open Shortest Path First (OSPFv2)

– 1496 –

E

XAMPLE

This example sets a password for the specified interface.

Console(config)#interface vlan 1

Console(config-if)#ip ospf authentication-key badboy

Console(config-if)#

R

ELATED

C

OMMANDS

ip ospf authentication (1494)

ip ospf cost

This command explicitly sets the cost of sending a protocol packet on an

interface, where higher values indicate slower ports. Use the no form to

restore the default value.

S

YNTAX

ip ospf [ip-address] cost cost
no ip ospf [ip-address] cost

ip-address - This parameter can be used to indicate a specific IP

address connected to the current interface. If not specified, the

command applies to all networks connected to the current interface.
cost - Link metric for this interface. Use higher values to indicate

slower ports. (Range: 1-65535)

C

OMMAND

M

ODE

Interface Configuration (VLAN)

D

EFAULT

S

ETTING

1

C

OMMAND

U

SAGE

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.

This router uses a default cost of 1 for all port types. Therefore, if any

VLAN contains 10 Gbps ports, you may want to reset the cost for other

VLANs which do not contain 10 Gbps ports to a value greater than 1.

E

XAMPLE

Console(config)#interface vlan 1

Console(config-if)#ip ospf cost 10

Console(config-if)#