Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
 

Related Documentation

 

Example: Configuring Link Aggregation Between a QFX Series Product and an Aggregation Switch

A QFX Series product allows you to combine multiple Ethernet links into one logical interface for higher bandwidth and redundancy. The ports that are combined in this manner are referred to as a link aggregation group (LAG) or bundle. The number of Ethernet links you can combine into a LAG depends on your QFX Series product model. You can configure LAGs to connect a QFX Series product to other switches, like aggregation switches, servers, or routers. This example describes how to configure LAGs to connect a QFX3500, QFX3600, or QFX5100 switch to an aggregation switch.

Requirements

This example uses the following software and hardware components:

  • Junos OS Release 11.1 or later for the QFX3500 and QFX3600 switches, and Junos OS 13.2 or later for the QFX5100 switch.
  • One QFX3500, QFX3600, or QFX5100 switch.

Overview and Topology

In this example, the switch has one LAG comprising two 10-Gigabit Ethernet interfaces. This LAG is configured in port mode trunk so that the switch and the VLAN to which it has been assigned can send and receive traffic.

Configuring the Ethernet interfaces as LAGs has the following advantages:

  • If one physical port is lost for any reason (a cable is unplugged or a switch port fails), the logical port transparently continues to function over the remaining physical port.
  • Link Aggregation Control Protocol (LACP) can optionally be configured for link monitoring and automatic addition and deletion of individual links without user intervention.

Note: If the remote end of the LAG link is a security device, LACP might not be supported because security devices require a deterministic configuration. In this case, do not configure LACP. All links in the LAG are permanently operational unless the switch detects a link failure within the Ethernet physical layer or data link layers.

The topology used in this example consists of one switch with a LAG configured between two of its 10-Gigabit Ethernet interfaces. The switch is connected to an aggregation switch.

Table 1 details the topology used in this configuration example.

Table 1: Components of the Topology for Configuring a LAG Between a QFX3500 Switch and Aggregation Switch

HostnameBase HardwareTrunk Port

switch

QFX3500, QFX3600, or QFX5100 switch

ae0 is configured as a trunk port and combines the following two interfaces:
xe-0/0/2 and
xe-0/0/3
.

Configuration

To configure a LAG between two 10-Gigabit Ethernet interfaces:

CLI Quick Configuration

To quickly configure a LAG between two 10-Gigabit Ethernet interfaces on a switch, copy the following commands and paste them into the switch terminal window:

Note: If you are configuring a LAG on the QFX5100 switch, use the interface-mode statement instead of the port-mode statement. For ELS details, see Getting Started with Enhanced Layer 2 Software.

[edit]
set chassis aggregated-devices ethernet device-count 1
set interfaces ae0 aggregated-ether-options minimum-links 1
set interfaces ae0 aggregated-ether-options link-speed 10g
set interfaces ae0 unit 0 family ethernet-switching vlan members green
set interfaces xe-0/0/2 ether-options 802.ad ae0
set interfaces xe-0/0/3 ether-options 802.ad ae0
set interfaces ae0 unit 0 family ethernet-switching port-mode trunk
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast

Step-by-Step Procedure

To configure a LAG between a QFX Series switch and an aggregation switch:

  1. Specify the number of LAGs to be created on the switch:
    [edit chassis]
    user@switch# set aggregated-devices ethernet device-count 1
  2. Specify the number of links that need to be present for the ae0 LAG interface to be up:
    [edit interfaces]
    user@switch# set ae0 aggregated-ether-options minimum-links 1
  3. Specify the media speed of the ae0 link:
    [edit interfaces]
    user@switch# set ae0 aggregated-ether-options link-speed 10g
  4. Specify the members to be included within the aggregated Ethernet bundle:
    [edit interfaces]
    user@switch# set interfaces xe-0/0/2 ether-options 802.ad ae0
    [edit interfaces]
    user@switch# set interfaces xe-0/0/3 ether-options 802.ad ae0
  5. Assign a port mode of trunk to the ae0 link:

    Note: If you are configuring a LAG on the QFX5100 switch, use the interface-mode statement instead of the port-mode statement. For ELS details, see Getting Started with Enhanced Layer 2 Software.

    [edit interfaces]
    user@switch# set ae0 unit 0 family ethernet-switching port-mode trunk

    or

    [edit interfaces]
    user@switch# set ae0 unit 0 family ethernet-switching interface-mode trunk
  6. Assign the LAG to a VLAN:
    [edit interfaces]
    user@switch# set ae0 unit 0 family ethernet-switching vlan members green vlan-id 200
  7. (Optional): Designate one side of the LAG as active for LACP:
    [edit interfaces]
    user@switch# set ae0 aggregated-ether-options lacp active
  8. (Optional): Designate the interval and speed at which the interfaces send LACP packets:
    [edit interfaces]
    user@switch# set ae0 aggregated-ether-options lacp periodic fast

Results

Display the results of the configuration on a QFX3500 or QFX3600 switch:

[edit]
chassis {aggregated-devices {ethernet {device-count 1;}}}
green {vlan-id 200;}}
interfaces {ae0 {aggregated-ether-options {link-speed 10g;minimum-links 1;}unit 0 {family ethernet-switching {port-mode trunk;vlan {members green;}}}xe-0/0/2 {ether-options {802.ad ae0;}}xe-0/0/3 {ether-options {802.ad ae0;}}}

Verification

To verify that switching is operational and one LAG has been created, perform these tasks:

Verifying That LAG ae0.0 Has Been Created

Purpose

Verify that LAG ae0.0 has been created on the switch.

Action

show interfaces ae0 terse

Interface               Admin Link Proto    Local                 Remote
ae0                     up    up
ae0.0                   up    up eth-switch

Meaning

The output confirms that the ae0.0 link is up and shows the family and IP address assigned to this link.

Verifying That LAG ae0 Has Been Created

Purpose

Verify that LAG ae0 has been created on the switch

Action

show interfaces ae0 terse

Interface               Admin Link Proto    Local                 Remote
ae0                     up    down
ae0.0                   up    down eth-switch

Meaning

The output shows that the ae0.0 link is down.

Troubleshooting

Troubleshooting a LAG That Is Down

Problem

The show interfaces terse command shows that the LAG is down.

Solution

Check the following:

  • Verify that there is no configuration mismatch.
  • Verify that all member ports are up.
  • Verify that a LAG is part of family ethernet switching (Layer 2 LAG) or family inet (Layer 3 LAG).
  • Verify that the LAG member is connected to the correct LAG at the other end.
 

Related Documentation

 

Published: 2014-07-23

Supported Platforms

 

Related Documentation

 

Published: 2014-07-23