Configuring Preferential Forwarding of Local Traffic on an Eth-Trunk in a Stack
On a network where interfaces of multiple switches in a stack form an Eth-Trunk, you can configure the Eth-Trunk to preferentially forward local traffic to increase bandwidth use efficiency between stack devices and improve traffic forwarding efficiency.
Context
Determine whether to enable preferentially forwarding of local traffic on an Eth-Trunk based on actual needs:
- If active interfaces in the local Eth-Trunk have sufficient bandwidth to forward traffic on the local device, enable this function to improve traffic forwarding efficiency and increase bandwidth use efficiency between stack devices.
- If active interfaces in the local Eth-Trunk do not have sufficient bandwidth to forward traffic on the local device, disable this function to prevent packet loss. Some traffic on the local device is forwarded through member interfaces on another device.
Pre-configuration Tasks
Before enabling local preferential forwarding on an Eth-Trunk, complete the following tasks:
Create an Eth-Trunk and add physical interfaces to the Eth-Trunk.
Establish a stack.
- Ensure that member interfaces of the local Eth-Trunk have sufficient bandwidth to forward local traffic.
Procedure
- Run system-view
The system view is displayed.
- Run interface eth-trunk trunk-id
The view of an Eth-Trunk is displayed.
- Run undo local-preference disable
The Eth-Trunk is configured to preferentially forward local traffic.
By default, an Eth-Trunk forwards traffic preferentially through local member interfaces.
This function is valid only for known unicast packets, and does not work with unknown unicast packets, broadcast packets, and multicast packets.
- (Optional) Run local-preference least active-linknumber linknumber
The minimum number of active links for enabling preferential forwarding of local traffic is configured for the Eth-Trunk.
By default, the minimum number of active links for enabling preferential forwarding of local traffic is not configured for an Eth-Trunk.
If the number of active links on an Eth-Trunk is smaller than the value of linknumber, the system automatically disables preferential forwarding of local traffic on the Eth-Trunk.
- Run commit
The configuration is committed.