Example: Configuring LACP on Standalone Devices
This example shows how to configure LACP on standalone devices.
Requirements
Before you begin:
- Add the aggregated Ethernet interfaces using the device count. See Example: Configuring the Number of Aggregated Ethernet Interfaces on a Device.
- Associate physical interfaces with the aggregated Ethernet Interfaces. See Example: Associating Physical Interfaces with Aggregated Ethernet Interfaces.
- Configure the aggregated Ethernet link speed. See Example: Configuring Aggregated Ethernet Link Speed.
- Configure the aggregated Ethernet minimum links speed. See Example: Configuring Aggregated Ethernet Minimum Links.
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:
- Set the first LACP.[edit interfaces]user@host# set ae0 aggregated-ether-options lacp passive
- Set the second LACP.[edit interfaces]user@host# set ae1 aggregated-ether-options lacp activeuser@host# set ae1 aggregated-ether-options lacp periodic slow
- 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 ae0Aggregated 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:
- The LACP received counter that increments for each normal hello
- The number of LACP transmit packet errors logged
- The number of unrecognized packet errors logged
- The number of invalid packets received
Use the following command to clear the statistics and see only new changes:
Related Documentation
- Junos OS CLI Reference.
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 ae0Aggregated 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:
- The LACP state—Indicates whether the link in the bundle is an actor (local or near-end of the link) or partner (remote or far-end of the link).
- The LACP mode—Indicates whether both ends of the aggregated Ethernet interface are enabled (active or passive)—at least one end of the bundle must be active.
- The periodic link aggregation control PDU transmit rate.
- The LACP protocol state—Indicates the link is up ifit is collecting and distributing packets.
Related Documentation
- Junos OS CLI Reference.
Related Documentation
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- Verifying LACP on Redundant Ethernet Interfaces
Hide Navigation Pane
Show Navigation Pane
SHA1