ip ospf cost

Syntax

ip ospf cost没有ip ospf cost

描述

Sets the cost (metric) associated with a particular interface. The interface cost is used as a parameter to calculate the best routes.

没有形式of this command sets the cost (metric) associated with a particular interface to the default cost 1.

Command context

config-if-vlan

Parameters

Specifies the interface cost value. Range: 1 to 65535. Default: 1.

权威

Administrators or local user group members with execution rights for this command.

Examples

Setting OSPF interface cost

switch(config)#接口vlan 1switch(config-if-vlan)#ip ospf cost 100

Setting the OSPF interface cost to default

switch(config)#接口vlan 1switch(config-if-vlan)#没有ip ospf cost