Configure Static LAG

About this task

Perform this procedure to configure a static LAG.

Procedure

  1. Enter the global configuration mode and configure the LAG or port-channel with single or multiple interfaces.
    device# configure terminal 
    device(config)# interface port-channel 1
  2. Enter the interface configuration mode and add LAG interfaces or port-channels to ingress (LAG1) and egress (LAG2) groups, as required.
    An interface cannot be part of two LAGs.
    device(config)# interface ethernet 1/1 
    device(config-if)# channel-group LAG1 mode on
    device(config-if)# channel-group LAG2 mode on
  3. Configure the required options for L2 (MAC) or L3 (IP or IPv6) ACL in the access list:
    • L2 (MAC) ACL:
      # match mac access-list name
    • L3 (IP) ACL:
      # match ip access-list name
    • L3 (IPv6) ACL:
      # match ipv6 access-list name
  4. Enter the route-map configuration mode and configure L2 or L3 ACL in the route-map.
    • Deny: Traffic flows or packets that match this criteria are dropped.
    • Permit: Traffic flows or packets that match this criteria are forwarded to egress group or egress port.
    device# config-route-map
    device(config-route-map)# forward-action [ permit | deny ]
    The traffic flows or packets are dropped or forwarded based on the configured criteria in the route-map.
  5. Apply the route-map policy to the ingress group.
    device (config-ingress-group)# set route-map name
  6. Send the traffic flows to the device under test.
  7. Verify that the traffic flows received from multiple interfaces of LAG1 are aggregated.
  8. Verify that the forwarded traffic received at LAG2 is symmetric load balanced across multiple egress ports.
  9. Verify the CLI LAG or port-channel statistics to determine the number of flows that are aggregated or load balanced.
  10. Verify the CLI ingress or egress group statistics to determine the number of packets or flows dropped.