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

    Mastership Election in a Virtual Chassis

    In a two-member MX Series or EX9200 Virtual Chassis, either member device can be elected as the master device (also known as the protocol master, or VC-M) of the Virtual Chassis. The first member device to join the Virtual Chassis becomes the initial master device by default. After the Virtual Chassis is formed with both member devices, the Virtual Chassis Control Protocol (VCCP) software runs a mastership election algorithm to elect the master device for the Virtual Chassis configuration.

    If the master device in a Virtual Chassis fails, the backup device (also known as the protocol backup, or VC-B) takes over mastership of the Virtual Chassis. You can also switch the global roles of the master device and backup device in a Virtual Chassis by issuing the request virtual-chassis routing-engine master switch command.

    Note: You cannot configure mastership election for an MX Series or EX9200 Virtual Chassis in the current release.

    The VCCP software uses the following algorithm to elect the master device for an EX9200 or MX Series Virtual Chassis:

    1. Choose the member device that has the highest value for the internal mastership election flag.

      The mastership election algorithm uses an internal flag that keeps track of the member state for the purpose of electing the Virtual Chassis master device. In most cases, VCCP elects the member device with the higher flag value over the member device with the lower flag value as the protocol master.

      To display the mastership election flag value, issue the show virtual-chassis protocol database extensive command. The flag value used for mastership election appears in the TLVs field of the command output, as shown in the following example:

      {master:member1-re0}
      user@host> show virtual-chassis protocol database member 0 extensive
       ...
        TLVs:
          Node Info: Member ID: 1, VC ID: 5a6a.e747.8511, Flags: 3, Priority: 129
      System ID: 001d.b510.0800, Device ID: 1
      ...
    2. Choose the member device with the highest mastership priority value.

      The mastership priority value is assigned to the member device by the VCCP software, and is not configurable in the current release. The mastership priority value can be one of the following:

      • 129—The routing-engine role is assigned to the member device.
      • 128—No role is assigned to the member device.
      • 0—The line-card role is assigned to the member device (not supported in the current release).

      To display the mastership priority value for the member devices in the Virtual Chassis, issue the show virtual-chassis status command.

    3. Choose the member device that is active in the Virtual Chassis.
    4. Choose the member device that belongs to the Virtual Chassis with the largest number of members.

      Note: This criterion is not used in the current release because all EX9200 and MX Series Virtual Chassis configurations have two member devices.

    5. Choose the member device that is the accepted (elected) protocol master of the Virtual Chassis.
    6. Choose the member device that is the current protocol master (VC-M) of the same Virtual Chassis.
    7. Choose the member device that is the current protocol backup (VC-B) of the same Virtual Chassis.
    8. Choose the member device that has been part of the Virtual Chassis configuration for the longest period of time.
    9. Choose the member device that was the previous protocol master of the same Virtual Chassis.
    10. Choose the member device with the lowest media access control (MAC) address.

    Published: 2013-11-12