5-39
isis cost
Syntax
isis cost
value
[
level-1
|
level-2
]
undo
isis cost
[
level-1
|
level-2
]
View
Interface view
Default Level
2: System level
Parameters
value
: Specifies an IS-IS cost for the interface. The cost range differs with cost styles.
z
For cost styles
narrow
,
narrow-compatible
and
compatible
, the cost ranges from 1 to 63.
z
For cost styles
wide
and
wide-compatible
, the cost ranges from 1 to 16777215.
level-1
: Applies the cost to Level-1.
level-2
: Applies the cost to Level-2.
Description
Use the
isis cost
command to set the IS-IS cost of an interface.
Use the
undo isis cost
command to restore the default.
No cost is configured by default.
If neither
level-1
nor
level-2
is included, the cost applies to both
level-1
and
level-2
.
You are recommended to configure a proper IS-IS cost for each interface to guarantee correct route
calculation.
Relate command:
circuit-cost
.
Examples
# Configure the Level-2 IS-IS cost as 5 for VLAN-interface10.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] isis cost 5 level-2
isis dis-name
Syntax
isis dis-name
symbolic-name
undo isis dis-name
View
Interface view
Default Level
2: System level
Parameters
symbolic-name
: Specifies a DIS name, a string of 1 to 64 characters.