Related Documentation
- EX Series
- Understanding Multichassis Link Aggregation
- Configuring Multichassis Link Aggregation on EX Series Switches
- Example: Configuring Multichassis Link Aggregation for Layer 3 Unicast Using VRRP on EX9200 Switches
- Additional Information
- Example: Configuring DHCP Relay on MC- LAG with VRRP on an EX9200 Switch
Example: Configuring Multichassis Link Aggregation for Layer 3 Multicast Using VRRP on EX9200 Switches
There are two methods for enabling Layer 3 multicast functionality across a multichassis link aggregation group (MC-LAG). You can choose either to configure Virtual Router Redundancy Protocol (VRRP) over the integrated routing and bridging (IRB) interface or to synchronize the MAC addresses for the Layer 3 interfaces of the switches participating in the MC-LAG. This provides redundancy and load balancing between the two MC-LAG peers. The procedure to configure VRRP for use in a Layer 3 multicast MC-LAG is included in this example.
Requirements
This example uses the following hardware and software components:
- Two EX9200 switches
- Junos OS Release 13.2R1 or later
Before you configure an MC-LAG for Layer 3 multicast using VRRP, be sure that you understand how to:
- Configure aggregated Ethernet interfaces on a switch. See Configuring an Aggregated Ethernet Interface.
- Configure Link Aggregation Control Protocol (LACP) on aggregated Ethernet interfaces on a switch. See Configuring Aggregated Ethernet LACP.
- Configure Virtual Router Redundancy Protocol (VRRP) on a switch. See Configuring Basic VRRP Support.
For a list of best practice configuration guidelines and important functional behavior for MC-LAGs, see the “MC-LAG Configuration Guidelines and Functional Behavior” section in the topic Understanding Multichassis Link Aggregation.
Overview
In this example, you configure two MC-LAGs between two switches, consisting of two aggregated Ethernet interfaces (ae1 and ae2). To support the MC-LAG, you create a third aggregated Ethernet interface (ae0) for the interchassis link (ICL). You also configure a multichassis protection link for the ICL, Inter-Chassis Control Protocol (ICCP) for the peers hosting the MC-LAG, and Layer 3 connectivity between MC-LAG peers.
![]() | Note: Layer 3 connectivity is required for ICCP. |
To complete the MC-LAG configuration, enable VRRP by completing the following tasks for each MC-LAG:
- Create an IRB interface.
- Create a VRRP group and assign a virtual IP address that is shared between each switch in the VRRP group.
- Enable a member of a VRRP group to accept all packets destined for the virtual IP address if it is the master in the VRRP group.
- Configure Layer 3 connectivity between the VRRP groups.
Topology
The topology used in this example consists of two switches hosting two MC-LAGs—ae1 and ae2. The two switches are connected to a multicast source (Server 1) over MC-LAG ae1, and a multicast receiver (Server 2) over MC-LAG ae2. Figure 1 shows the topology for this example.
Figure 1: Configuring Two MC-LAGs Between Switch A and Switch B

Table 1 details the topology used in this configuration example.
Table 1: Components of the Topology for Configuring Two MC-LAGs Between Switch A and Switch B
| Hostname | Base Hardware | Link Aggregation Groups |
|---|---|---|
Switch A Switch B | EX9200 switch |
|
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them in 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 configuration mode.
Switch A
Switch B
Configuring MC-LAG for Layer 3 Multicast Using VRRP on Two Switches
Step-by-Step Procedure
The following procedure requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To enable a multichassis protection link between MC-LAG peers:
- Configure the number of LAGs on both Switch A and
Switch B.
Switch A and Switch B:
[edit chassis]user@switch# set aggregated-devices ethernet device-count 3 - Add member interfaces to the aggregated Ethernet interfaces
on both Switch A and Switch B.
Switch A and Switch B:
[edit interfaces]user@switch# set xe-0/0/2 ether-options 802.3ad ae0user@switch# set xe-0/0/3 ether-options 802.3ad ae0Switch A:
[edit interfaces]user@switch# set xe-0/0/4 ether-options 802.3ad ae1user@switch# set xe-0/0/5 ether-options 802.3ad ae2Switch B:
[edit interfaces]user@switch# set xe-0/0/6 ether-options 802.3ad ae1user@switch# set xe-0/0/7 ether-options 802.3ad ae2 - Configure ae0 as the trunk interface between Switch A
and Switch B.
Switch A and Switch B:
[edit interfaces]user@switch# set ae0 unit 0 family ethernet-switching interface-mode trunk - Configure ae0 as the multichassis protection link between
Switch A and Switch B.
Switch A:
[edit]user@switch# set multi-chassis multi-chassis-protection 3.3.3.1 interface ae0Switch B:
[edit]user@switch# set multi-chassis multi-chassis-protection 3.3.3.2 interface ae0
Step-by-Step Procedure
To enable ICCP:
- Configure the local IP address to be in the ICCP connection
on Switch A and Switch B.
Switch A:
[edit protocols]user@switch# set iccp local-ip-addr 3.3.3.2Switch B:
[edit protocols]user@switch# set iccp local-ip-addr 3.3.3.1 - Configure the peer IP address, minimum receive interval,
and minimum transmit interval for a Bidirectional Forwarding Detection
(BFD) session for ICCP on Switch A and Switch B.

Note: Configuring the minimum receive interval is required to enable BFD. We recommend a minimum receive interval value of 60 seconds.
Switch A:
[edit protocols]user@switch# set iccp peer 3.3.3.1 liveness-detection minimum-receive-interval 60user@switch# set iccp peer 3.3.3.1 liveness-detection transmit-interval minimum-interval 60Switch B:
[edit protocols]user@switch# set iccp peer 3.3.3.2 liveness-detection minimum-receive-interval 60user@switch# set iccp peer 3.3.3.2 liveness-detection transmit-interval minimum-interval 60 - (Optional) Configure the time during which an ICCP connection
must be established between MC-LAG peers on Switch A and Switch B.

Note: Configuring session establishment hold time helps to establish a faster ICCP connection . The recommended value is 50 seconds.
Switch A:
[edit protocols]user@switch# set iccp peer 3.3.3.1 session-establishment-hold-time 50Switch B:
[edit protocols]user@switch# set iccp peer 3.3.3.2 session-establishment-hold-time 50 - (Optional) Configure the backup-liveness-detection statement on
the management interface (fxp0) only.
We recommend that you configure the backup liveness detection feature to implement faster failover of data traffic during an MC-LAG peer reboot.

Note: The backup-liveness-detection statement is supported starting in Junos OS Release 13.2R1.
Switch A:
[edit protocols]user@switch# set iccp peer 3.3.3.1 backup-liveness-detection backup-peer-ip 10.207.64.233Switch B:
[edit protocols]user@switch# set iccp peer 3.3.3.2 backup-liveness-detection backup-peer-ip 10.207.64.234 - Configure Layer 3 connectivity between the MC-LAG peers
on both Switch A and Switch B.
Switch A and Switch B:
[edit vlans]user@switch# set v500 vlan-id 500user@switch# set v500 l3-interface irb.500[edit interfaces]user@switch# set ae0 unit 0 family ethernet-switching vlan members v500Switch A:
[edit interfaces]user@switch# set irb unit 500 family inet address 3.3.3.2/24Switch B:
[edit interfaces]user@switch# set irb unit 500 family inet address 3.3.3.1/24
Step-by-Step Procedure
To enable the ae1 and ae2 MC-LAG interfaces:
- Enable LACP on the MC-LAG interfaces on Switch A
and Switch B.

Note: At least one end needs to be active. The other end can be either active or passive.
- Specify the same multichassis aggregated Ethernet identification number for each MC-LAG peer on Switch A and Switch B.
- Specify a unique chassis ID for the MC-LAG on the MC-LAG
peers on Switch A and Switch B.
Switch A:
- Specify the operating mode of the MC-LAGs on both Switch A and Switch B.
- Specify the status control for the MC-LAGs on Switch A
and Switch B.

Note: You must configure status control on both Switch A and Switch B that host the MC-LAGs. If one peer is in active mode, the other must be in standby mode.
Switch A:
Switch B:

Note: You can configure the prefer-status-control-active statement with the mc-ae status-control standby configuration to prevent the LACP MC-LAG system ID from reverting to the default LACP system ID on ICCP failure. Use this configuration only if you can ensure that ICCP will not go down unless the switch is down. You must also configure the hold-time down value (at the [edit interfaces interface-name] hierarchy level) for the ICL with the mc-ae status-control standby configuration to be higher than the ICCP BFD timeout. This configuration prevents data traffic loss by ensuring that when the switch with the mc-ae status-control active configuration goes down, the switch with the mc-ae status-control standby configuration does not go into standby mode.
To make the prefer-status-control-active configuration work with the mc-ae status-control standby configuration when an ICL logical interface is configured on an aggregated Ethernet interface, you must either configure the lacp periodic interval statement at the [edit interfaces interface-name aggregated-ether-options] hierarchy level as slow or configure the detection-time threshold statement at the [edit protocols iccp peer liveness-detection] hierarchy level as less than 3 seconds.
The prefer-status-control-active statement is supported starting in Junos OS Release 13.2R1.
- To minimize traffic loss, specify the number of seconds by which to delay bringing the multichassis aggregated Ethernet interface back to the up state when you reboot Switch A or Switch B.
- Specify the same LACP system ID for each MC-LAG on Switch A and Switch B.
- Specify the same LACP administration key on both Switch A and Switch B.
- Enable a VLAN for each MC-LAG on Switch A and Switch B.[edit vlans]user@switch# set v100 vlan-id 100user@switch# set v200 vlan-id 200[edit interfaces]user@switch# set ae1 unit 0 family ethernet-switching vlan members v100user@switch# set ae2 unit 0 family ethernet-switching vlan members v200
- Configure ae1 and ae2 as trunk interfaces between Switch A
and Switch B. [edit interfaces]user@switch# set ae1 unit 0 family ethernet-switching interface-mode trunkuser@switch# set ae2 unit 0 family ethernet-switching interface-mode trunk
Step-by-Step Procedure
To enable VRRP on the MC-LAGs:
- Create an integrated routing and bridging (IRB) interface
for each MC-LAG, assign a virtual IP address that is shared between
each switch in the VRRP groups, and assign an individual IP address
for each switch in the VRRP groups.
Switch A:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.11/24 vrrp-group 1 virtual-address 10.1.1.1user@switch# set irb unit 200 family inet address 10.1.1.21/24 vrrp-group 2 virtual-address 10.1.1.2Switch B:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.10/24 vrrp-group 1 virtual-address 10.1.1.1user@switch# set irb unit 200 family inet address 10.1.1.20/24 vrrp-group 2 virtual-address 10.1.1.2 - Assign the priority for each switch in the VRRP groups.

Note: The switch configured with the highest priority is the master.
Switch A:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.11/24 vrrp-group 1 priority 200user@switch# set irb unit 200 family inet address 10.1.1.21/24 vrrp-group 2 priority 200Switch B:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.10/24 vrrp-group 1 priority 150user@switch# set irb unit 200 family inet address 10.1.1.20/24 vrrp-group 2 priority 150 - Enable the switch to accept all packets destined for the
virtual IP address if it is the master in a VRRP group.
Switch A:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.11/24 vrrp-group 1 accept-datauser@switch# set irb unit 200 family inet address 10.1.1.21/24 vrrp-group 2 accept-dataSwitch B:
[edit interfaces]user@switch# set irb unit 100 family inet address 10.1.1.10/24 vrrp-group 1 accept-datauser@switch# set irb unit 200 family inet address 10.1.1.20/24 vrrp-group 2 accept-data - Configure Layer 3 connectivity between Switch A and
Switch B.[edit]user@switch# set v100 l3-interface irb.100user@switch# set v200 l3-interface irb.200
Step-by-Step Procedure
To enable IGMP snooping:
- Enable IGMP snooping for all VLANs on Switch A and
Switch B.[edit protocols]user@switch# set igmp-snooping vlan v100user@switch# set igmp-snooping vlan v200user@switch# set igmp-snooping vlan v500

Note: You must configure the multichassis-lag-replicate-state statement for IGMP snooping to work properly in an MC-LAG environment.
Step-by-Step Procedure
To configure OSPF as the Layer 3 protocol:
- Configure an OSPF area on Switch A and Switch B.[edit protocols ospf]user@switch# set area 0.0.0.0
- Assign the VLAN interfaces for the MC-LAGs as interfaces
to the OSPF area on Switch A and Switch B.[edit protocols ospf area 0.0.0.0]user@switch# set interface irb.100user@switch# set interface irb.200
- Configure the minimum receive interval, minimum transmit
interval, and transmit interval threshold for a Bidirectional Forwarding
Detection (BFD) session for the OSPF interfaces on Switch A and
Switch B.[edit protocols ospf area 0.0.0.0]user@switch# set interface irb.100 bfd-liveness-detection minimum-receive-interval 700user@switch# set interface irb.100 bfd-liveness-detection transmit-interval minimum-interval 350user@switch# set interface irb.100 bfd-liveness-detection transmit-interval threshold 500user@switch# set interface irb.200 bfd-liveness-detection minimum-receive-interval 700user@switch# set interface irb.200 bfd-liveness-detection transmit-interval minimum-interval 350user@switch# set interface irb.200 bfd-liveness-detection transmit-interval threshold 500
Step-by-Step Procedure
To configure Protocol Independent Multicast (PIM) as the multicast protocol:
- Configure a static rendezvous point (RP) address on Switch A
and Switch B.[edit protocols pim]user@switch# set rp static address 1.0.0.3
- Configure the address ranges of the multicast groups for
which Switch A and Switch B can be an RP.[edit protocols pim rp static address 1.0.0.3]user@switch# set group-ranges 239.0.0.0/8
- Configure the priority of each PIM interface for being
selected as the designated router.
An interface with a higher priority value has a higher probability of being selected as the designated router.

Note: Configure the IP address on the active MC-LAG peer with a high IP address or a high designated router priority.
Switch A:
[edit protocols pim]user@switch# set interface irb.100 priority 200user@switch# set interface irb.200 priority 600Switch B:
[edit protocols pim]user@switch# set interface irb.100 priority 100user@switch# set interface irb.200 priority 500
Results
From configuration mode on Switch A, confirm your configuration by entering the show chassis, show interfaces, show multi-chassis, show protocols, and show vlans commands. If the output does not display the required configuration, repeat the instructions in this example to correct the configuration.
Switch A
Switch B
Verification
Verify that the configuration is working properly.
- Confirm That Switch A Is the Master Designated Router
- Verifying That Switch B Is the Backup Designated Router
Confirm That Switch A Is the Master Designated Router
Purpose
Verify that Switch A is the master designated router (DR).
Action
user@switch> show pim interfacesStat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address pime.32769 Down S 4 2 P2P,NotCap 0 0/0 irb.100 Up S 4 2 DDR-DR,NotCap 1 0/0 10.1.1.11 irb.200 Up S 4 2 DDR-DR,NotCap 2 0/0 10.1.1.21
Meaning
The DDR-DR state of the VLAN interfaces in the output shows that Switch A is the master designated router.
Verifying That Switch B Is the Backup Designated Router
Purpose
Confirm that Switch B is the backup designated router.
Action
user@switch> show pim interfacesStat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address pime.32769 Down S 4 2 P2P,NotCap 0 0/0 irb.100 Up S 4 2 DDR-BDR,NotCap 1 0/0 10.1.1.11 irb.200 Up S 4 2 DDR-BDR,NotCap 2 0/0 10.1.1.21
Meaning
The DDR-BDR state of the VLAN interfaces in the output shows that Switch B is the backup designated router.
Related Documentation
- EX Series
- Understanding Multichassis Link Aggregation
- Configuring Multichassis Link Aggregation on EX Series Switches
- Example: Configuring Multichassis Link Aggregation for Layer 3 Unicast Using VRRP on EX9200 Switches
- Additional Information
- Example: Configuring DHCP Relay on MC- LAG with VRRP on an EX9200 Switch