Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 4 IS-IS Configuration Commands
4-3
Use the
undo auto-cost enable
command to disable the function.
This function is disabled by default.
The preference of interface cost set by the
auto-cost
command is lower than that set
by the
circuit-cost
command. The preference from high to low is: the cost set by the
isis cost
command, the global cost set by the
circuit cost
command, the cost
automatically calculated and the default cost.
When the
cost-style
is
wide
or
wide-compatible
, the cost value of an interface is
calculated by using the following formula:
cost = (reference value/bandwidth)×10.
Related commands:
bandwidth-reference
,
cost-style.
Examples
# Enable interfaces of IS-IS process 1 to calculate interface cost automatically.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] auto-cost enable
4.1.3 bandwidth-reference
Syntax
bandwidth-reference
value
undo bandwidth-reference
View
IS-IS view
Parameters
value
: Bandwidth reference value in Mbps, ranging from 1 to 2147483648.
Description
Use the
bandwidth-reference
command to set the bandwidth reference value for
calculating link cost.
Use the
undo
bandwidth-reference
command to restore the default.
By default, the reference value is 100 Mbps.
In the case no interface cost is specified in interface view or system view and automatic
cost calculation is enabled:
z
When the cost style is
wide
or
wide-compatible
, IS-IS automatically calculates
the interface cost based on the interface bandwidth, using the formula: interface