Example: Configuring Aggregated Ethernet Interfaces With Multicast Load Balancing on EX8200 Switches
You can use aggregated Ethernet with multicast load balancing over 10-gigabit links on EX8200 switches to increase bandwidth, provide graceful degradation when link failures occur, and increase availability. The feature aggregates up to four 10-gigabit links into a 40-gigabit virtual link or link aggregation group (LAG) on EX8200 switches.
![]() | Note: An interface with an already configured IP address cannot form part of the LAG. |
![]() | Note: Only standalone EX8200 switches (not EX8200 Virtual Chassis) with 10-gigabit links are supported. |
This example shows how to configure mulicast load balancing on a LAG:
Requirements
This example uses the following hardware and software components:
- Three EX8200 switches, two used as the access switches and one used as the distribution switch
- Junos OS Release 12.2 or later for EX Series switches
Before you begin:
- Configure four 10-gigabit interfaces on the EX8200 distribution switch: xe-0/1/0, xe-1/1/0, xe-2/1/0, and xe-3/1/0. See Configuring Gigabit Ethernet Interfaces (J-Web Procedure).
Overview and Topology
Multicast load balancing works uses one of seven algorithms to balance traffic between the individual 10-gigabit links in the LAG. The default algorithm is CRC SGIP, which gave the best results in testing. You can experiment with the different hash modes (algorithms) until you determine the optimum mode for your situation .
When a link larger than 10 gigabits is needed on an EX8200 switch, you can combine up to four 10-gigabit links to create more bandwidth. This example uses the link aggregation feature to aggregate the maximum four 10-gigabit links to form a 40-gigabit LAG on the distribution switch. In addition, multicast load balancing is applied to the 40-gigabit link to ensure even distribution of traffic. In this example, illustrated in Figure 1, an EX8200 switch in the distribution layer is connected to an EX8200 switch in the access layer.
![]() | Note: Link speed is automatically determined based on the size of the LAG configured (20 gigabit, 30 gigabit, or 40 gigabit) . |
![]() | Note: The default hash mode used for multicast load balancing is CRC-SGI, cyclic redundancy check of both the multicast packet source and group IP addresses (CRC SGIP). For a description of all seven hashing algorithms, see multicast-loadbalance. |
Figure 1: 40-Gigabit LAG Composed of Four 10-Gigabit Links

You will configure a LAG, then apply multicast load balancing to the LAG. Speed will be automatically set to 10g for each link in the LAG.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
set chassis aggregated-devices ethernet device-count
1set interfaces ae0 aggregated-ether-options
minimum-links 1 set interfaces xe-0/1/0 aggregated-ether-options
802.3ad ae0 set interfaces xe-1/1/0 aggregated-ether-options
802.3ad ae0set interfaces xe-2/1/0 aggregated-ether-options
802.3ad ae0set interfaces xe-3/1/0 aggregated-ether-options
802.3ad ae0set interfaces ae0 unit 0 family ethernet-switching
port-mode trunk set chassis ae0 unit 0 multicast-loadbalance Step-by-Step Procedure
To configure a LAG with multicast load balancing:
- Specify the number of aggregated Ethernet interfaces to
be created:
[edit chassis]
user@switch# set aggregated-devices ethernet device-count 1 - Specify the minimum number of links for the aggregated
Ethernet interface (aex), that is, the LAG, to
be labeled “up”:

Note: By default, only one link must be up for the LAG to be labeled “up”.
[edit interfaces]
user@switch# set ae0 aggregated-ether-options minimum-links 1 - Specify the four members to be included within the LAG:
[edit interfaces]
user@switch# set xe-0/1/0 ether-options 802.3ad ae0
user@switch# set xe-1/1/0 ether-options 802.3ad ae0
user@switch# set xe-2/1/0 ether-options 802.3ad ae0
user@switch# set xe-3/1/0 ether-options 802.3ad ae0 - Specify an interface family for the LAG:
[edit interfaces]
user@switch# set ae0 unit 0 family ethernet-switching port-mode trunk - Configure multicast load balancing:
[edit chassis]user@switch# set ae0 unit 0 multicast-loadbalance
Note: You do not have to set link speed the way you do for LAGs that do not use multicast load balancing. Link-speed is automatically set to 40 on a 40-gigabit LAG.
The algorithm used by default is cyclic rededundancy check of source and group address (crc-gip). You can experiment with the different hash modes (algorithms) until you determine the optimum mode for your situation by changing the value of the hash mode option in the multicast-loadbalance statement. You can then use the show interfaces command to see the result.
Results
From configuration mode, confirm your configuration by entering the show interfaces and the show chassis commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
user@switch> show interfaces
aggregated-ether-options {
minimum-links 4;
link-speed 40g;
}
unit 0 {
family ethernet-switching {
port-mode trunk;
}
}
user@switch# show chassisIf you are finished configuring the device, enter commit from configuration mode.
Verification
Verify the Status of a LAG Interface
Purpose
Verify that a link aggregation group (LAG) (ae0) has been created on the switch.
Action
Verify that the ae0 LAG has been created:
user@switch> show interfaces ae0 terse
Interface Admin Link Proto Local Remote ae0 up up ae0.0 up up inet 10.10.10.2/24
Meaning
The interface aeX indicates that this is a LAG. A stands for aggregated, and E stands for interface. The number differentiates the various LAGs.
Verify Multicast Load Balancing
Purpose
After configuring load balancing, check that traffic is load-balanced equally across paths.
Action
Verify load balancing across the four interfaces:
Meaning
The interfaces should be carrying approximately the same amount of traffic.