Setting a link metric value for a provider network port
The following are methods to assign a link metric value to an interface:
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 in SPBM view 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.
Setting a port-specific link metric value
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view. | interface interface-type interface-number | N/A |
3. Set a port-specific link metric value. | spbm cost cost-value | By default, automatic link metric calculation applies. |
Setting the global link metric value
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter SPBM view. | spbm | N/A |
3. Set a global SPBM link metric value. | circuit-cost cost-value | By default, no global SPBM link metric value is set. |
Setting the bandwidth reference for automatic link metric calculation
ISIS-SPB automatically calculates a link metric value for an interface if both the global and interface-specific link metric value are not set.
The following is the calculation formula:
Link metric value=(Reference bandwidth/Interface rate)x10
The value range for the link metric value is 1 to 16777214.
To set the bandwidth reference for automatic link metric calculation:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter SPBM view. | spbm | N/A |
3. Set the reference bandwidth for automatic link metric calculation. | bandwidth-reference value | The default bandwidth reference is 40000 Mbps. |