Configuring UCMP
Support not only routing UCMP, but also LSP/Tunnel UCMP which supports L2VPN and MPLS P scenarios.
Routing UCMP can be deployed in two methods.
Method 1: Enable Routing UCMP globally
- Run the system-view command to enter the system view.
Run the load-balance unequal-cost enable command to enable UCMP globally.
By default, UCMP is not enabled in the system.
When the UCMP is enabled globally, the UCMP takes effect on Ethernet interfaces, Gigabit Ethernet interfaces, POS interfaces, Eth-Trunk interfaces and IP-Trunk interfaces, and TE tunnel interfaces.
- Run the commit.
Method 2: Enable UCMP on the interfaces
- Run the system-view command to enter the system view.
- Run the interface interface-type interface-number command to enter the interface view.
Run the load-balance unequal-cost enable command to enable UCMP on the interface.
This command cannot be enabled on logical interfaces. It can be enabled only on physical interfaces.
- Run the shutdown and undo shutdown commands in order to restart the interface so that the UCMP configuration takes effect. Routes and FIB entries are refreshed only when you restart the interface after UCMP is enabled or disabled on the interface.
- Run the commit.
Enable UCMP for LSP/Tunnel
Views |
Command Format |
Function and Scenarios |
---|---|---|
System view |
load-balance mpls unequal-cost enable |
Enables UCMP for LSPs on an MPLS P node (excluding BGP P nodes) If UCMP is enabled and the MPLS P nodes (excluding BGP P nodes) have multiple outbound interfaces, UCMP is performed among the outbound interfaces based on bandwidth weights. If UCMP is disabled and the MPLS P nodes have multiple outbound interfaces, ECMP is performed among the outbound interfaces. To enable UCMP for MPLS P nodes (excluding BGP P nodes), run the load-balance mpls unequal-cost enable command. |
Follow-up Procedure
Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.