Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Understanding How the Master in a Virtual Chassis Is Elected

 
Note

This topic does not apply to EX8200 Virtual Chassis.

All switches that are interconnected in a Virtual Chassis configuration are member switches of that Virtual Chassis. Each Virtual Chassis configuration has one member that functions as the master in a Routing Engine role and controls the Virtual Chassis configuration.

When a Virtual Chassis configuration boots, it automatically runs a master election algorithm to determine which member switch assumes the role of master. The algorithm compares the Virtual Chassis members against the following criteria (in the order listed) until only one member remains under consideration, and that member becomes the master:

  1. Choose the member with the highest mastership priority.

    Members have mastership priority 128 by default, and 255 is the highest possible value you can manually configure. A member with mastership priority 0 will never be elected as master (or backup), and always stays in the linecard role.
  2. Choose the member that was master the last time you rebooted the Virtual Chassis.
  3. Choose the member that has been in the Virtual Chassis configuration for the longest period of time.

    (The member switches under consideration must have more than 1 minute between power-up times for this condition to make a difference.)
  4. Choose the member with the lowest MAC address.

The master election algorithm does not consider the different switch models or platforms in the Virtual Chassis. For some Virtual Chassis that can contain different types of switches, we require or recommend you configure certain switches in the master and backup Routing Engine roles. See Understanding Mixed EX Series and QFX Series Virtual Chassis for details on the types of switches that can be mixed in a Virtual Chassis and which switches can or must be the master or backup members.

To make sure a specific member is elected as the master:

  1. Power on only the switch that you want to configure as master of the Virtual Chassis configuration.
  2. Configure the mastership priority of that member to have the highest possible value (255).
  3. Continue to configure other members through the master member.
  4. Power on the other members.

You usually want to assign the same (highest) mastership priority value to the members you want to be the master and backup Routing Engine members to ensure reliable graceful Routing Engine switchover (GRES) operation. The other election considerations also help keep mastership from switching back and forth rapidly between the two members under failover conditions.

You can also specify the switch roles by preprovisioning your Virtual Chassis. When you preprovision a Virtual Chassis, you manually assign the member ID and role for each switch in the Virtual Chassis. See Configuring an EX3300 Virtual Chassis (CLI Procedure), Configuring an EX4200, EX4500, or EX4550 Virtual Chassis (CLI Procedure), Configuring an EX2300, EX3400, or EX4300 Virtual Chassis, or Configuring an EX4650 or a QFX Series Virtual Chassis.