An EX4200 Virtual Chassis can be composed of multiple EX4200 switches in different locations. You can install member switches in different wiring closets, interconnecting the member switches by cabling and configuring uplink module ports or SFP network ports on EX4200-24F switches as Virtual Chassis ports (VCPs).
This example shows how to use uplink VCPs to connect Virtual Chassis members that are located too far apart to be connected using the dedicated VCPs. Uplink VCPs can also be used to connect Virtual Chassis members to form link aggregation groups (LAGs). For the latter usage, see Example: Configuring Link Aggregation Groups Using EX4200 Uplink Virtual Chassis Ports.
![]() | Note: You can also configure the SFP networks ports on EX4200-24F switches as VCPs to connect Virtual Chassis member switches across wiring closets and to form LAGs. |
This example describes how to configure a Virtual Chassis access switch interconnected across wiring closets:
This example uses the following hardware and software components:
Before you interconnect the members of the Virtual Chassis configuration across wiring closets, be sure you have:
In this example, four EX4200 switches will be interconnected in a Virtual Chassis configuration. Two of these switches (SWA-0 and SWA-1) are located in wiring closet A, and the two other switches (SWA-2 and SWA-3) are located in wiring closet B.
For ease of monitoring and manageability, we want to interconnect all four switches as members of a Virtual Chassis configuration. Prior to configuring the Virtual Chassis, we installed uplink modules in each of the member switches. In this example, uplink modules are installed in all four members so that there are redundant VCP connections across the wiring closets. If you want to expand this configuration to include more members within these wiring closets, you do not need to add any more uplink modules. Simply use the dedicated VCPs on the rear panel. The redundancy of uplink VCPs provided in this example is sufficient.
We have interconnected the switches in wiring closet A and also interconnected the ones in wiring closet B using the dedicated VCPs. The interfaces for the dedicated VCPs are operational by default. They do not need to be configured.
However, the Virtual Chassis cables that interconnect the dedicated VCPs of member switches within a single wiring closet are not long enough to connect member switches across wiring closets. Instead, we will use the fiber-optic cable connections in the uplink modules to interconnect the member switches in wiring closet A to the member switches in wiring closet B. You only need to interconnect one member switch in wiring closet A to one in wiring closet B to form the Virtual Chassis configuration. However, for redundancy, this example connects uplink module ports from the two member switches in wiring closet A to the two member switches in wiring closet B.
We will specify the highest mastership priority value (255) for SWA-0 to make it the master before we power on SWA-1. Because SWA-0 and SWA-1 are interconnected with the dedicated VCPs, the master detects that SWA-1 is a member of its Virtual Chassis configuration and assigns it a member ID.
We configure SWA-2 in wiring closet B without running EZSetup by directly connecting to the console port. If you wish, you can run EZSetup and specify identification parameters. Later, when you interconnect SWA-2 with SWA-0, the master of the Virtual Chassis configuration, the master overwrites any conflicting parameters.
We will use SWA-2 as the backup of the Virtual Chassis configuration. If a problem occurs in wiring closet A, SWA-2 would take control of the Virtual Chassis configuration and maintain the network connections. We will configure the same mastership priority value for SWA-2 (255) that we configured for the master. Because we power on SWA-0 before we power on SWA-2, SWA-0 has additional prioritization properties that allow it to retain mastership of the Virtual Chassis configuration. We recommend setting identical mastership priority values for the master and backup members for high availability and smooth transition of mastership in case the original master becomes unavailable. (Setting identical mastership priority values for the master and backup members prevents the previous master from pre-empting the master role from the new master when the previous master comes back online.)
After we have configured SWA-2 and set one of its uplink module ports as an uplink VCP, we will interconnect its uplink VCP with an uplink VCP on SWA-0.
Finally, we will power on SWA-3. Because SWA-3 is interconnected with SWA-2 using the dedicated VCPs on the rear panel, the master will detect that SWA-3 is part of the expanded Virtual Chassis configuration and assign it member ID 3. For redundancy, we will configure an uplink VCP on SWA-3 through the master and interconnect that uplink VCP with an uplink VCP on SWA-1.
Table 1 shows the Virtual Chassis configuration settings for a Virtual Chassis composed of member switches in different wiring closets.
Table 1: Components of a Virtual Chassis Interconnected Across Multiple Wiring Closets
| Switch | Member ID | Role and Priority | Location |
|---|---|---|---|
SWA-0 | 0 | master; mastership priority 255 | Wiring closet A |
SWA-1 | 1 | linecard; mastership priority 128 | Wiring closet A |
SWA-2 | 2 | backup; mastership priority 255 | Wiring closet B |
SWA-3 | 3 | linecard; mastership priority 128 | Wiring closet B |
Figure 1 shows the different types of interconnections used for this Virtual Chassis configuration. The rear view shows the member switches within each wiring closet interconnected to each other using the dedicated VCPs. The front view shows the uplink VCPs interconnected across the wiring closets.
Figure 1: EX4200 Virtual Chassis Interconnected Across Wiring Closets

To configure the Virtual Chassis across multiple wiring closets, perform this task:
To configure a Virtual Chassis across multiple wiring closets:
[edit virtual-chassis]
user@SWA-0# set member 0 mastership-priority 255user@SWA-0> request virtual-chassis vc-port set pic-slot 1 port 0
user@SWA-0> request virtual-chassis
vc-port set pic-slot 1 port 0 member 1
![]() |
|
[edit virtual-chassis]
user@SWA-2# set member 0 mastership-priority
255
![]() | Note: SWA-2 is configured with the same mastership priority value that we configured for SWA-0. However, the longer uptime of SWA-0 ensures that, once the interconnection is made, SWA-0 functions as the master and SWA-2 functions as the backup. |
![]() | Note: The setting of the uplink VCP remains intact when SWA-2 reboots and joins the Virtual Chassis configuration as member 2. |
user@SWA-2> request virtual-chassis
vc-port set pic-slot 1 port 0
![]() | Note: Member ID 3 is assigned to SWA-3 because SWA-3 was powered on after members 0, 1, and 2. |
user@SWA-0> request virtual-chassis
vc-port set pic-slot 1 port 0 member 3
![]() | Note: We recommend that you use the commit synchronize command to save any configuration changes that you make to a multimember Virtual Chassis. |
Display the results of the configuration on SWA-0:
To confirm that the configuration is working properly, perform these tasks:
Verify that all the interconnected member switches are included within the Virtual Chassis configuration and that their roles are assigned appropriately.
Display the members of the Virtual Chassis configuration:
user@SWA-0> show virtual-chassis status
Virtual Chassis ID: 000.e255.00e0
Mastership Neighbor List
Member ID Status Serial No Model Priority Role ID Interface
0 (FPC 0) Prsnt abc123 ex4200-48p 255 Master* 1 vcp-0
2 vcp-1
2 vcp-255/1/0
1 (FPC 1) Prsnt def456 ex4200-24t 128 Linecard 0 vcp-0
0 vcp-1
3 vcp-255/1/0
2 (FPC 2) Prsnt ghi789 ex4200-48p 255 Backup 3 vcp-0
3 vcp-1
0 vcp-255/1/0
3 (FPC 3) Prsnt jkl012 ex4200-24t 128 Linecard 2 vcp-0
2 vcp-1
3 vcp-255/1/0The show virtual-chassis status command lists the member switches interconnected as a Virtual Chassis configuration with the member IDs that have been assigned by the master, the mastership priority values, and the roles. It also displays the neighbor members with which each member is interconnected.
Verify that the dedicated VCPs interconnecting member switches in wiring closet A and the uplink VCPs interconnecting the member switches between wiring closets are operational.
Display the VCP interfaces:
user@SWA-0> show virtual-chassis status all-membersfpc0: -------------------------------------------------------------------------- Interface Type Trunk Status Speed Neighbor or ID (mbps) ID Interface PIC / Port vcp-0 Dedicated 1 Up 32000 vcp-1 Dedicated 2 Up 32000 1 vcp-0 1/0 Auto-Configured —1 Up 1000 2 vcp-255/1/0 fpc1: -------------------------------------------------------------------------- Interface Type Trunk Status Speed Neighbor or ID (mbps) ID Interface PIC / Port vcp-0 Dedicated 1 Up 32000 0 vcp-0 vcp-1 Dedicated 2 Up 32000 0 vcp-1 1/0 Auto-Configured —1 Up 1000 3 vcp-255/1/0 fpc2: -------------------------------------------------------------------------- Interface Type Trunk Status Speed Neighbor or ID (mbps) ID Interface PIC / Port vcp-0 Dedicated 1 Up 32000 3 vcp-0 vcp-1 Dedicated 2 Up 32000 1/0 Auto-Configured —1 Up 1000 0 vcp-255/1/0 fpc3: -------------------------------------------------------------------------- Interface Type Trunk Status Speed Neighbor or ID (mbps) ID Interface PIC / Port vcp-0 Dedicated 1 Up 32000 2 vcp-0 vcp-1 Dedicated 2 Up 32000 2 vcp-1 1/0 Auto-Configured —1 Up 1000 1 vcp-255/1/0
The dedicated VCPs are displayed as vcp-0 and vcp-1. The interface on the switch that has been set as an uplink VCP is displayed as 1/0. The member interface names of uplink VCPs are of the form vcp-255/pic/port—for example, vcp-255/1/0. In that name, vcp-255 indicates that the interface is an uplink VCP, 1 is the uplink PIC number, and 0 is the uplink port number. The fpc number is the same as the member ID. The Trunk ID is a positive number ID assigned to the LAG formed by the Virtual Chassis. If no LAG is formed, the value is –1.
To troubleshoot a Virtual Chassis configuration that is interconnected across wiring closets, perform these tasks:
An uplink VCP shows a status of down.