spbm cost
Use spbm cost to set an interface-specific SPBM link metric value for an interface.
Use undo spbm cost to restore the default.
Syntax
spbm cost cost-value
undo spbm cost
Default
SPBM automatically calculates link metric values for interfaces.
Views
Layer 2 aggregate interface view
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
cost-value: Specifies a link metric value in the range of 1 to 16777215. If the link metric is set to 16777215, the link will not be used for transmitting data traffic even if the adjacency can be established and the link is up.
Usage guidelines
To assign a link metric value to an interface, use one of the following methods:
Set an interface-specific value in interface view.
Set a global value in SPBM view. This global value applies to all SPBM-enabled interfaces.
Set a bandwidth reference for the system to calculate a value automatically for the interface.
The system chooses a link metric value for an interface in order of interface-specific value, global value, and autocalculated value.
Examples
# Set the SPBM link metric to 5 on HundredGigE 1/0/1.
<Sysname> system-view [Sysname] interface hundredgige 1/0/1 [Sysname-HundredGigE1/0/1] spbm cost 5