Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Link Aggregation Control Protocol on NFX Series Devices

This example shows how to configure Link Aggregation Control Protocol (LACP) on NFX Series devices.

Requirements

This example uses an NFX Series device running Junos OS Release 20.4R1.

Before you configure LACP, be sure you have:

  • An NFX250 NextGen or NFX350 device running Junos OS Release 20.4R1, which is not in a Chassis Cluster.

Overview

Starting in Junos OS Release 20.4, LACP is supported on NFX250 NextGen and NFX350 devices. LACP is a method to bundle several physical interfaces to form one logical interface. You can configure LACP on the front panel interfaces of the devices.

Note:

Only Layer 2 LACP is supported on NFX250 NextGen and NFX350 devices.

Configuration

Configure LACP

CLI Quick Configuration

To quickly configure this section of the example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from the configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy.

Note:
  • Static LAG and LACP are supported on NFX250 NextGen and NFX350 devices.

  • You can add a minimum of one link and maximum of eight links to a LAG.

To configure LACP:

  1. Configure the interfaces for ae0.

  2. Configure LACP for ae0 and configure periodic transmission of LACP packets.

  3. Configure ae0 as a trunk port.

  4. Configure the VLAN.

  5. Add the ae0 interface to the VLAN.

  6. Create LAG members.

  7. If you are done configuring the device, commit the configuration.

Results

From configuration mode, confirm your configuration by entering the show interfaces command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

Verification

Verifying the LACP configuration

Purpose

Display LACP statistics for aggregated Ethernet interfaces.

Action

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

Meaning

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 packet received
  • 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:

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.

Meaning

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 a 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 if it is collecting and distributing packets.