LAG Operational Commands

Show Commands

Viewing LAG Running Configuration

The following command displays the LAG running configuration on the system.

Syntax:

show config link-aggregation

Example: LAG Running Configuration

supervisor@rtbrick: op> show config link-aggregation
{
  "rtbrick-config:link-aggregation": {
    "interface": [
      {
        "interface-name": "lag-3",
        "mode": "lacp",
        "minimum-link-count": 2,
        "member-interface": [
          {
            "member-interface-name": "ifp-0/0/4",
            "lacp-mode": "active",
            "lacp-timeout": "long"
          },
          {
            "member-interface-name": "ifp-0/0/5",
            "lacp-mode": "active",
            "lacp-timeout": "long"
          }
        ]
      }
    ]
  }
}

Viewing LAG Information

The following command displays the LAG information.

Syntax:

show lag <lag-name> <options>

Option Description

<lag-name>

Displays information for a specific LAG interface

detail

Displays detailed LAG information

mode <mode>

Displays information for a LAG mode: static or LACP

lacp

Detailed LACP information for the LAG member interface.

Example: Viewing LAG Information

supervisor@rtbrick: op> show lag detail
LAG interface name: lag-3
  Status             : Resolved
  Speed              : -
  Minimum link count : 2
  Mode               : lacp
    Member interface name: ifp-0/0/4
      Member Resolution : lacp
      LACP mode         : active
      Timeout           : long
      Actor system ID   : e8:c5:7a:8e:c1:83
      Actor key         : 3
      Partner system ID : 02:ff:ff:ff:ff:00
      Partner key       : 1
    Member interface name: ifp-0/0/5
      Member Resolution : lacp
      LACP mode         : active
      Timeout           : long
      Actor system ID   : e8:c5:7a:8e:c1:83
      Actor key         : 3
      Partner system ID : 02:ff:ff:ff:ff:00
      Partner key       : 1

LAG Hierarchy

Using the commands, you can view LAG hierarchy. It provides a structured view of the properties of the specified LAG interface, including its member interfaces and hierarchical relationships.

Syntax:

show lag hierarchy <lag-name>

Option Description

<lag-name>

Specifies the name of the LAG.

Example:

supervisor@rtbrick.net: cfg> show lag hierarchy lag-2
lagd:
  LAG interface name: lag-2
    Status: Resolved
    Type: Lag
    Mode: Lacp
    Member interface name: ifp-0/0/12
      Member resolved state: True
    Member interface name: ifp-0/0/13
      Member resolved state: True
    Admin status: Up
    Link status: Up
    Operational status: Up
    Mac address: f4:1e:5e:02:da:fa
    Minimum link count status: Up
    Minimum link count: 1
    Layer2 mtu: 9000
    Holddown: Enable
    Stability: Holddown
ifmd:
  LAG interface name: lag-2
    Status: Resolved
    Type: Lag
    Mode: Lacp
    Member interface name: ifp-0/0/12
      Member resolved state: True
    Member interface name: ifp-0/0/13
      Member resolved state: True
    Admin status: Up
    Link status: Up
    Operational status: Up
    Mac address: f4:1e:5e:02:da:fa
    Minimum link count status: Up
    Minimum link count: 1
    Layer2 mtu: 9000
    Holddown: Enable
    Stability: Stable
fibd:
  LAG interface name: lag-2
    Status: Resolved
    Type: Lag
    Mode: Lacp
    Member interface name: ifp-0/0/12
      Member resolved state: True
    Member interface name: ifp-0/0/13
      Member resolved state: True
    Admin status: Up
    Link status: Up
    Operational status: Up
    Mac address: f4:1e:5e:02:da:fa
    Minimum link count status: Up
    Minimum link count: 1
    Layer2 mtu: 9000
    Holddown: Enable
    Stability: Holddown
    VPP
      Status: Download Success
      Hw if name: BondEthernet2
      Hw if index: 39
      Sw if index: 46
    BCM
      Ifmapping_pp_port: 85
      Trunk id: 33554434
      Trunk gport: 234881026

Viewing LAG QoS Policer Counters

The following command displays the QoS Policer Counters.

Syntax:

show qos policer counter

Example 1: QoS policer counter

supervisor@rtbrick: op> show qos policer counter
Interface                         Level  Units      Total            Received         Dropped
lag-3                             1      Packets    910              903              7
                                         Bytes      131342           130320           1022
lag-3                             2      Packets    0                0                0
                                         Bytes      0                0                0
lag-3                             3      Packets    0                0                0
                                         Bytes      0                0                0
lag-3                             4      Packets    0                0                0
                                         Bytes      0                0                0

Syntax:

show qos policer counter <lag interface>

Example 2: QoS policer counter for a specified LAG

supervisor@rtbrick: op> show qos policer counter lag-3
Interface                         Level  Units      Total            Received         Dropped
lag-3                             1      Packets    910              903              7
                                         Bytes      131342           130320           1022
lag-3                             2      Packets    0                0                0
                                         Bytes      0                0                0
lag-3                             3      Packets    0                0                0
                                         Bytes      0                0                0
lag-3                             4      Packets    0                0                0
                                         Bytes      0                0                0