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.
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.
set interfaces ge-0/0/6 gigether-options 802.3ad ae0 set interfaces ge-0/0/7 gigether-options 802.3ad ae0 set interfaces ae0 aggregated-ether-options lacp active periodic fast set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk set vlan vlan1000 vlan-id 1000 set interfaces ae0 unit 0 family ethernet-switching vlan members vlan1000 set chassis aggregated-devices ethernet device-count 5
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy.
-
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:
-
Configure the interfaces for ae0.
[edit]
user@host# set interfaces ge-0/0/6 gigether-options 802.3ad ae0
user@host# set interfaces ge-0/0/7 gigether-options 802.3ad ae0
-
Configure LACP for ae0 and configure periodic transmission of LACP packets.
[edit]
user@host# set interfaces ae0 aggregated-ether-options lacp active periodic fast
-
Configure ae0 as a trunk port.
[edit]
user@host# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk
-
Configure the VLAN.
[edit]
user@host# set vlan vlan1000 vlan-id 1000
-
Add the ae0 interface to the VLAN.
[edit]
user@host# set interfaces ae0 unit 0 family ethernet-switching vlan members vlan1000
-
Create LAG members.
[edit]
user@host# set chassis aggregated-devices ethernet device-count 5
-
If you are done configuring the device, commit the configuration.
[edit]
user@host# commit
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.
[edit]
user@host# show interfaces ge-0/0/6 { ether-options { 802.3ad ae0; } } ge-0/0/7 { ether-options { 802.3ad ae0; } } ae0 { vlan- tagging; aggregated-ether-options { lacp { active; periodic fast; } } unit 0 { family ethernet-switching { interface-mode trunk; vlan { members vlan1000; } } } }
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.
user@host> show lacp statistics interfaces ae0 Aggregated interface: ae0 LACP Statistics: LACP Rx LACP Tx Unknown Rx Illegal Rx ge-0/0/6 1352 2035 0 0 ge-0/0/7 1352 2056 0 0
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:
user@host# clear lacp statistics interfaces ae0
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-0/0/6 Actor No No Yes Yes Yes Yes Fast Active ge-0/0/6 Partner No No Yes Yes Yes Yes Fast Passive ge-0/0/7 Actor No No Yes Yes Yes Yes Fast Active ge-0/0/7 Partner No No Yes Yes Yes Yes Fast Passive LACP protocol: Receive State Transmit State Mux State ge-0/0/6 Current Fast periodic Collecting distributing ge-0/0/7 Current Fast periodic Collecting distributing
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.