Configuring LAG Hashing

To configure symmetric LAG hashing on supported devices, complete the following tasks.

  1. Define where to start picking headers for the key generation, using the lag hash hdr-start command.
    • fwd - Start from the header that is used for the forwarding of the packet (inner header). This is the default option.
    • term - Start from the last terminated header (outer header) - the header after the forwarding header. For switching traffic, as there is no header below the forwarding header, hashing is not visible.
  2. Configure the number of headers to be considered for LAG hashing, using the lag hash hdr-count command. The default value is 1. There can be a maximum of 3 headers - based on the first header selected using the command in the previous step.

The following options provide other LAG configurations to achieve specific tasks: