Configuring LACP in Juniper MX80 Router with 5 Easy Steps

Today we will learn Juniper Router's Link Aggregation Control Protocol configuration A-Z. On the opposite side of the Juniper is a Cisco Nexus 3000 series switch. We will configure LACP between these 2 devices. So let's get started.


Why is LACP needed?

LACP is very important. For those who don't know why, LACP is primarily needed to increase path capacity. To convert multiple physical links to one logical link. Let's say your device has 4 10G ports. If you combine those ports together, you get 40GB of capacity. So let's start LACP Configuration. First, we will configure the Juniper router.


Lacp configuration command in juniper example

First, log in to the router. Then on the chassis, the aggregated device Ethernet device count should be set. You decide how many LACPs you will do on this device. If doing 4 LACP then the device count should be 4. And if doing 4 LACP then the device count should be 2. I gave device count 2. That means I can create 2 LACP port channels from this router. Follow the rest of the commands below.

See also LACP Configuration In Cisco:


LACP Configuration In Cisco Nexus Series Switch




Juniper LACP Configuration Script:

login: afnan
Password:

--- JUNOS 17.3R3.10 built 2018-09-06 23:15:56 UTC

afnan@NIS-Core> configure

Entering configuration mode

Users currently editing the configuration:
afnan terminal u0 (pid 31768) on since 2023-10-16 12:54:47 UTC, idle 3w4d 20:38

[edit]
afnan@NIS-Core# set chassis aggregated-device ethernet device-count 2
[edit]
afnan@NIS-Core# set interfaces ae1 aggregated-ether-options minimum-links 1
[edit]
afnan@NIS-Core# set interface ae1 aggregated-ether-option lacp active
[edit]
afnan@NIS-Core# set interface ae1 aggregated-ether-option lacp periodic fast
[edit]
afnan@NIS-Core# set interfaces xe-0/0/0 gigether-options 802.3ad ae1
[edit]
afnan@NIS-Core# set interfaces xe-0/0/1 gigether-options 802.3ad ae1
[edit]
afnan@NIS-Core# set interfaces xe-1/0/0 gigether-options 802.3ad ae1
[edit]
afnan@NIS-Core# set interfaces xe-1/1/0 gigether-options 802.3ad ae1
[edit]
afnan@NIS-Core# set interfaces ae1 description UPLINK
[edit]
afnan@NIS-Core# set interfaces ae1 flexible-vlan-tagging
[edit]
afnan@NIS-Core#commit check
configuration check succeeds
[edit]
afnan@NIS-Core#commit
commit complete


Then LACP is set to be UP if there is at least 1 physical link. Then a port channel is created. Port-channel 1 as in Cisco, but starting from ae0 in Juniper. Then make LACP active and periodic fast on that port channel interface. Then you need to make the physical links as members of the port channel. Then that port channel should be flexible-vlan-tagging. This means that the interface must be trunked.


Conclusion:

From this article, we have understood how to configure LACP on a Juniper router very easily. Hope you understand. Comment if you have any curiosity. thank you

Post a Comment

Previous Post Next Post

Contact Form