Configured LAG not showing on Juniper EX switch.

Building an aggregated ethernet interface with LACP didn’t work on a switch that was but back to factory defaults (load factory-defaults).

Creating an LAG with LACP between switches is quite easy, at least I thought it was… I followed the steps in: Configuring Link Aggregation Control Protocol

root@switch# set interfaces ae0 aggregated-ether-options lacp active
root@switch# set interfaces ae0 aggregated-ether-options lacp periodic fast
root@switch# set interfaces ae0 unit 0 description "LAG to Upstream Switch"
root@switch# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk
root@switch# set interfaces ae0 unit 0 family ethernet-switching vlan members all

{master:0}[edit]
root@switch# set interfaces ge-0/0/22 ether-options 802.3ad ae0

{master:0}[edit]
root@switch# set interfaces ge-0/0/23 ether-options 802.3ad ae0

{master:0}[edit]
root@switch# commit check
configuration check succeeds
fpc1:
configuration check succeeds

{master:0}[edit]
root@switch# commit
configuration check succeeds
fpc1:
commit complete
commit complete

{master:0}[edit]
root@switch# run show interfaces terse |match ae0
ge-0/0/22.0             up    up   aenet    --> ae0.0
ge-0/0/23.0             up    up   aenet    --> ae0.0

{master:0}[edit]

I was expecting an ae0 interface with up/up state, but no interface is listed?

Something like this:

root@switch# run show interfaces terse |match ae0
ge-0/0/22.0 up up aenet --> ae0.0
ge-0/0/23.0 up up aenet --> ae0.0
ae0         up up
ae0.0       up up eth-switch

{master:0}[edit]

I guess that anyone with a decent Juniper background already guessed it, but apparently I followed an incomplete guide, since my factory default switch was missing a statement telling the switch how many LAGs are defined on the switch. I assumed (and assumptions are the mother of all ….) that if you don’t set a limit there won’t be any limit. Since this isn’t a limit, it is simply the number of (virtual) interfaces that the switch (pre-)creates. A LAG (ae) interface needs to exist before it can be configured. My bad. As stated in (Configuring Aggregated Ethernet Links) I needed to set the ‘aggregated-devices ethernet device-count’:

{master:0}[edit]
root@switch# set chassis aggregated-devices ethernet device-count 1

Now the LAG is allowed, and operational:

root@switch# run show interfaces terse |match ae0
ge-0/0/22.0 up up aenet --> ae0.0
ge-0/0/23.0 up up aenet --> ae0.0
ae0 up up
ae0.0 up up eth-switch

More information on aggregated devices can be found here

Advertisement