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 value
undo spbm cost
Default
SPBM automatically calculates link metric values for interfaces.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
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 is up.
Usage guidelines
The following methods are available for you to assign a link metric value to an interface:
Setting an interface-specific value in interface view.
Setting a global value in SPBM view. This global value applies to all SPBM-enabled interfaces.
Setting 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 FortyGigE 1/0/1.
<Sysname> system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] spbm cost 5