Setting a link metric value for a provider network port

The following are methods to assign a link metric value to an 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.