load-balance

Enables or disables masking of tunnel ID while computing hashing for per LAG basis.

Syntax

load-balance [ src-dst-ip-l4port-tid | src-dst-ip-l4port ]
no load-balance

Parameters

src-dst-ip-l4port-tid
Specifies source IP, destination IP, l4 port, protocol, and specific GTP tunnel ID-based load-balancing.
src-dst-ip-l4port
Specifies source IP, destination IP, l4port, and protocol-based load balancing (default) method.

Modes

Port-channel config mode

Usage Guidelines

This command is available only to users with the admin role.

The no load-balance command sets the default value to LAG hash.

The port-channel must be created first.

The load-balance method configured in other egress-objects that co-exist in the same egress-group must match the new load-balance setting.

If there is a conflict in load-balance setting with other egress objects:

  1. Remove the port-channels from other egress objects co-existing in egress-groups.
  2. Configure the new load-balance method in all port-channels that co-exist in egress-groups with the current port-channel.
  3. Add the port-channels back to egress objects with the original configuration.

Examples

The following example enables the src-dst-ip-l4port-tid load balancing method.

device# configure terminal  
device#(config)# interface port-channel 1  
device(config-if-po-1)# load-balance src-dst-ip-l4port-tid 

The following example shows how to resolve a conflicting load-balance type setting.

device# show egress-group all 

Number of egress-groups: 1 
    Name : egg1 
          egress : eg2 
          egress : eg3 

device# show egress eg2 
    Name : eg2 
        Precedence : 20 
         Interface : port-channel 1 

device# show egress eg3 
    Name : eg3 
        Precedence : 30 
         Interface : port-channel 2 

device# show run interface port-channel 1 
interface port-channel 1 
  no shutdown --> load-balance type is default (src-dst-ip-l4port) 
device# show run interface port-channel 2 

interface port-channel 2 
  no shutdown --> load-balance type is default (src-dst-ip-l4port) 

device(config)# interface port-channel 1 
device(config-if-po-1)# load-balance src-dst-ip-l4port-tid 

Error: all egress objects present in group should have same loadbalance type. eg3 has type SRC_DST_IP_L4_PORT in group egg1

device(config-if-po-1)# exit 
device(config)# egress eg2 
device(config-egress)# no precedence 20 
device(config-egress)# exit
 
device(config)# egress eg3 
device(config-egress)# no precedence 30 
device(config-egress)# exit 

device(config)# interface port-channel 1 
device(config-if-po-1)# load-balance src-dst-ip-l4port-tid 
device(config-if-po-1)# exit
 
device(config)# interface port-channel 2 
device(config-if-po-2)# load-balance src-dst-ip-l4port-tid 
device(config-if-po-2)# 
device(config-if-po-2)# exit 
 
device(config)# egress eg2 
device(config-egress)# precedence 20 interface port-channel 1 
device(config-egress)# exit 

device(config)# egress eg3 
device(config-egress)# precedence 30 interface port-channel 2