show lag
User EXEC mode
Privileged EXEC mode
LAG configuration mode
The
show lag command displays the following information:
| Output Field | Description |
|---|---|
| Total number of LAGS | The total number of LAGs that have been configured on the device. |
| Total number of deployed LAGS | The total number of LAGs on the device that are currently deployed. |
| Total number of trunks created | The total number of trunks that have been created on the LAG. The total number of LAGs available is shown also. Because keep-alive LAGs do not use LAG IDs, they are not listed and do not subtract from the number of LAGs available. |
| LACP System Priority /ID | The system priority configured for the device. The ID is the system priority that is the base MAC address of the device. |
| LACP Long timeout | The number of seconds used for the LACP long timeout mode. This is only applicable for dynamic or keep-alive LAGs. |
| LACP Short timeout | The number of seconds used for the LACP short timeout mode. This is only applicable for dynamic or keep-alive LAGs. |
The following information is displayed per-LAG in the
show lag
brief command:
| Output Field | Description |
|---|---|
| LAG | The name of the LAG, LAG ID number, the configured type of the LAG: static, dynamic, or keep-alive, and the status of LAG deployment (Y/N). |
The following information is displayed per-LAG in the
show lag command for each LAG configured:
The following information is displayed for the
show lag
deployed command:
The following example shows sample output of the show lag command. Information displayed is in sequential order by LAG ID.
device# show lag
Total number of LAGs: 2
Total number of deployed LAGs: 2
Total number of trunks created:2 (126 available)
LACP System Priority / ID: 1 / 609c.9fbc.bf14
LACP Long timeout: 90, default: 90
LACP Short timeout: 3, default: 3
=== LAG "tosp12" ID 1 (dynamic Deployed) ===
LAG Configuration:
Ports: e 1/1/5 e 1/1/7
Port Count: 2
Lag Interface: lg1
Trunk Type: hash-based
LACP Key: 20001
Deployment: HW Trunk ID 1
Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name
1/1/5 Down None None None 1 No 1 0 609c.9fbc.bf14
1/1/7 Disable None None None 1 No 1 0 609c.9fbc.bf14
Port [Sys P] [Port P] [ Key ] [Act][Tio][Agg][Syn][Col][Dis][Def][Exp][Ope]
1/1/5 1 1 20001 Yes S Agg Syn No No Def No Dwn
1/1/7 1 1 20001 Yes S Agg Syn No No Def No Dwn
Partner Info and PDU Statistics
Port Partner Partner LACP LACP
System ID Key Rx Count Tx Count
1/1/5 1-0000.0000.0000 4 0 0
1/1/7 1-0000.0000.0000 6 0 0
=== LAG "tosp16" ID 2 (static Deployed) ===
LAG Configuration:
Ports: e 1/1/6 e 1/1/8
Port Count: 2
Lag Interface: lg2
Trunk Type: hash-based
Deployment: HW Trunk ID 2
Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name
1/1/6 Down None None None 2 No 1 0 609c.9fbc.bf14
1/1/8 Down None None None 2 No 1 0 609c.9fbc.bf14
The following output from the
show lag brief command indicates there is an SPX LAG logical block. Use the
show spx ring chain command to obtain detailed information on the logical block.
device(config)# show lag brief Total number of LAGs: 2 Total number of deployed LAGs: 2 Total number of trunks created:2 (254 available) LACP System Priority / ID: 1 / cc4e.2438.8e00 LACP Long timeout: 90, default: 90 LACP Short timeout: 3, default: 3 LAG Type Deploy Trunk Intf Port List Logical-block spx_lag_257 spx Y 257 lg257 e 2/1/3 to 2/1/4 y spx_lag_258 spx Y 258 lg258 e 3/1/3 to 3/1/4
The following example shows sample output of the
show lag command with the resilient-hash ("hash-based") trunk type in the LAG configuration.
device(config)# show lag id 1 Total number of LAGs: 4 Total number of deployed LAGs: 2 Total number of trunks created:2 (126 available) LACP System Priority / ID: 1 / 609c.9fbc.bf14 LACP Long timeout: 90, default: 90 LACP Short timeout: 3, default: 3 === LAG "tosp16" ID 2 (static Deployed) === LAG Configuration: Ports: e 1/1/6 e 1/1/8 Port Count: 2 Lag Interface: lg2 Trunk Type: hash-based Deployment: HW Trunk ID 2 Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name 1/1/6 Down None None None 2 No 1 0 609c.9fbc.bf14 1/1/8 Down None None None 2 No 1 0 609c.9fbc.bf14