OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : Link Aggregation Commands : port-channel weight
port-channel weight
Use this command to configure weighted load balancing on port-channel member links. As per the weights configured, traffic distribution will be happening across the member interfaces.
Consider if ports xe1 and xe2 associated with the L2 lag, having default load-balance as src-dst-mac and by default, best traffic distribution can happen upto 50% on each link (by varying source and destination macs). After weight configured as 2 on interface xe1, the best traffic distribution can happen as 66.66% and 33.33% on xe1 and xe2 respectively.
Note: Maximum weights configured over member interfaces should not cross the maximum member supported under a LAG as per device capacity.
Command Syntax
port-channel weight <1-16>
no port-channel weight
Parameters
<1-16>
Load balance weight for the interface.
Default
By default, port channel weight is disabled.
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
Static lag:
 
#configure terminal
(config)#interface sa1
(config)#exit
(config)#interface xe2
(config-if)#static-channel-group 1
(config-if)#port-channel-weight 2
(config-if)#exit
(config)#Interface xe3
(config-if)#static-channel-group 1
Dynamic lag:
 
#configure terminal
(config)#interface po1
(config)#exit
(config)#interface xe2
(config-if)#channel-group 1 mode active
(config-if)#port-channel-weight 3
Last modified date: 07/06/2023