Example: Configuring LACP on Standalone Devices

This example shows how to configure LACP on standalone devices.

Requirements

Before you begin:

Overview

In this example, you set LACP to passive mode for the ae0 interface. You set the LACP mode for the ae1 interface to active and set the link aggregation control PDU transmit interval to slow, which is every 30 seconds.

Configuration

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

To configure LACP on standalone devices:

  1. Set the first LACP.
    [edit interfaces]user@host# set ae0 aggregated-ether-options lacp passive
  2. Set the second LACP.
    [edit interfaces]user@host# set ae1 aggregated-ether-options lacp activeuser@host# set ae1 aggregated-ether-options lacp periodic slow
  3. If you are done configuring the device, commit the configuration.
    [edit interfaces]user@host# commit

Verification

To confirm that the configuration is working properly, perform these tasks:

Verifying LACP Statistics

Purpose

Display LACP statistics for aggregated Ethernet interfaces.

Action

From operational mode, enter the show lacp statistics interfaces ae0 command.


user@host> show lacp statistics interfaces ae0
Aggregated interface: ae0
    LACP Statistics:       LACP Rx     LACP Tx   Unknown Rx   Illegal Rx 
      ge-2/0/0                1352        2035            0            0
      ge-2/0/1                1352        2056            0            0
      ge-2/2/0                1352        2045            0            0
      ge-2/2/1                1352        2043            0            0

The output shows LACP statistics for each physical interface associated with the aggregated Ethernet interface, such as the following:

Use the following command to clear the statistics and see only new changes:

user@host# clear lacp statistics interfaces ae0

Related Documentation

Verifying LACP Aggregated Ethernet Interfaces

Purpose

Display LACP status information for aggregated Ethernet interfaces.

Action

From operational mode, enter the show lacp interfaces ae0 command.


user@host> show lacp interfaces ae0
Aggregated interface: ae0
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      ge-2/0/0       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/0/0     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/0/1       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/0/1     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/2/0       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/2/0     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/2/1       Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-2/2/1     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
    LACP protocol:        Receive State  Transmit State          Mux State 
      ge-2/0/0                  Current   Fast periodic Collecting distributing
      ge-2/0/1                  Current   Fast periodic Collecting distributing
      ge-2/2/0                  Current   Fast periodic Collecting distributing
      ge-2/2/1                  Current   Fast periodic Collecting distributing

The output shows aggregated Ethernet interface information, including the following information:

Related Documentation

Related Documentation