Ip Ospf Cost - Cisco Nexus 3548 Command Reference Manual

Nx-os unicast routing command reference
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

ip ospf cost

ip ospf cost
To specify the cost of sending a packet on an interface, use the ip ospf cost command. To reset the path
cost to the default, use the no form of this command.
Syntax Description
interface-cost
Command Default
Calculates the cost based on the reference bandwidth divided by the configured interface bandwidth. You
can configure the reference bandwidth or it defaults to 40 Gb/s.
Command Modes
Interface configuration mode
Command History
Release
5.0(3)A1(1)
Usage Guidelines
This command overrides any settings for the reference bandwidth that you set using the
reference-bandwidth command in router configuration mode.
If this command is not used, the link cost is calculated using the following formula:
This command requires the LAN Base Services license.
Examples
This example shows how to configure the interface cost value to 65:
switch# configure terminal
switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# ip ospf cost 65
switch(config-if)#
Related Commands
Command
reference-bandwidth
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
180
ip ospf cost interface-cost
no ip ospf cost interface-cost
Modification
This command was introduced.
link cost = reference bandwidth / interface bandwidth
Description
Specifies the reference bandwidth that OSPF uses to calculate the link cost.
Unsigned integer value expressed as the link-state metric. The range
is from 1 to 65535.
Chapter
Unicast Routing Commands
OL-27852-01

Advertisement

Table of Contents
loading

Table of Contents