The mode command configures the uplink selection mode.
The undo mode command restores the default link selection mode, which is load balancing by link weight.
mode { priority-of-link-quality | priority-of-userdefine | proportion-of-bandwidth | proportion-of-weight }
undo mode
| Parameter | Description | Value |
|---|---|---|
| priority-of-link-quality | Indicates load balancing by link quality. | - |
| priority-of-userdefine | Indicates active/standby backup by link priority. | - |
| proportion-of-bandwidth | Indicates load balancing by link bandwidth. | - |
| proportion-of-weight | Indicates load balancing by link weight. | - |
The global route selection policy and PBR-based intelligent uplink selection policy are independent from each other, and the latter policy has a higher priority.
# Set the intelligent uplink selection mode for global route selection policies to load balancing by link bandwidth.
<sysname> system-view [sysname] multi-interface [sysname-multi-inter] mode proportion-of-bandwidth
# Set the intelligent uplink selection mode for PBR to load balancing by link bandwidth.
<sysname> system-view [sysname] policy-based-route [sysname-policy-pbr] rule name 1 [sysname-policy-pbr-rule-1] action pbr egress-interface multi-interface [sysname-policy-pbr-rule-1-multi-inter] mode proportion-of-bandwidth