Graceful Routing Engine Switchover (GRES) is not enabled by default, and it is strongly recommended to be enabled on a EX Virtual Chassis (VC). This article includes a FAQ on the why, what, and how of enabling GRES on a VC.
Enabling Graceful Routing Engine Switchover to minimize traffic disruption when Primary Routing Engine fails over to the Backup.
It is strongly recommended to configure GRES on a Virtual Chassis. It is not enabled by default.
_____________________________________________________________________________________ Q1. What is GRES? A1. The following links in the Technical Documentation explain the concepts and behavior in detail:
When the backup Routing Engine assumes primary role in a redundant failover configuration (that is, when graceful Routing Engine switchover is not enabled), the Packet Forwarding Engines initialize their state to the boot state before they connect to the new primary Routing Engine. In contrast, in a graceful switchover configuration, the Packet Forwarding Engines do not reinitialize their state, but resynchronize their state to that of the new primary Routing Engine. The interruption to traffic is minimal.
Back-up RE’s Interfaces details when GRES is not enabled {backup:1}[edit] root@router-VC# run show interfaces terse | no-more Interface Admin Link Proto Local Remote vcp-0 up up vcp-0.32768 up up vcp-1 up up vcp-1.32768 up up bme0 up up bme0.32768 up up inet 128.0.0.17/2 128.0.0.32/2 tnp 0x11 bme0.32770 down up eth-switch dsc up up gre up up ipip up up lo0 up up lsi up up me0 up up me0.0 up up eth-switch mtun up up pimd up up pime up up tap up up
{backup:1}[edit] root@router-VC# run show interfaces terse | no-more Interface Admin Link Proto Local Remote vcp-0 up up vcp-0.32768 up up vcp-1 up up vcp-1.32768 up up bme0 up up bme0.32768 up up inet 128.0.0.17/2 128.0.0.32/2 tnp 0x11 bme0.32770 down up eth-switch dsc up up gre up up ipip up up lo0 up up lsi up up me0 up up me0.0 up up eth-switch mtun up up pimd up up pime up up tap up up
Q3. How do you configure Graceful Routing Engine Switchover (GRES)?
A3. Enable GRES:
root@router-VC# set chassis redundancy graceful-switchover
root@router-VC# deactivate chassis redundancy graceful-switchover OR root@router-VC# delete chassis redundancy graceful-switchover
root@router-VC# deactivate chassis redundancy graceful-switchover OR
root@router-VC# delete chassis redundancy graceful-switchover
show chassis
root@router-VC#show chassis redundancy { graceful-switchover; }
root@router-VC# run request chassis routing-engine master switch Toggle mastership between routing engines ? [yes,no] (no) yes Command aborted. Not ready for mastership switch, try after 230 secs.
root@router-VC# run show log messages Aug 23 05:29:52 router-VC mgd[4496]: UI_MASTERSHIP_EVENT: Toggle routing engine mastership by 'root' Aug 23 05:29:52 router-VC vccp[741]: auto_cnf_mastership_changed: new mastership = 1 Aug 23 05:29:53 router-VC chas[739]: cm_ipc_chasd_cleanup: CMCD: closed chassisd connection, try again Aug 23 05:29:53 router-VC chas[739]: cm_pic_cleanup FPC 1 PIC 1 NULL Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE : state 0->1, slotid 1->1 mode 2->1 1M 0B gid_changed 0 master_changed 1 master_detected 0 members_changed 1 new_ineligible_member = 0 Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE: 0B 1M 2L Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE: Mastership 0->1 Aug 23 05:29:53 router-VC /kernel: mastership: routing engine 1 becoming master Aug 23 05:29:53 mcontrol_acquire_mastership Calling reconnect Aug 23 05:29:53 CHASSISD_RELEASE_MASTERSHIP: Release mastership notification
root@router-VC# run show log messages
Aug 23 05:29:52 router-VC mgd[4496]: UI_MASTERSHIP_EVENT: Toggle routing engine mastership by 'root' Aug 23 05:29:52 router-VC vccp[741]: auto_cnf_mastership_changed: new mastership = 1 Aug 23 05:29:53 router-VC chas[739]: cm_ipc_chasd_cleanup: CMCD: closed chassisd connection, try again Aug 23 05:29:53 router-VC chas[739]: cm_pic_cleanup FPC 1 PIC 1 NULL Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE : state 0->1, slotid 1->1 mode 2->1 1M 0B gid_changed 0 master_changed 1 master_detected 0 members_changed 1 new_ineligible_member = 0 Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE: 0B 1M 2L Aug 23 05:29:53 router-VC chas[739]: CM_CHANGE: Mastership 0->1 Aug 23 05:29:53 router-VC /kernel: mastership: routing engine 1 becoming master Aug 23 05:29:53 mcontrol_acquire_mastership Calling reconnect Aug 23 05:29:53 CHASSISD_RELEASE_MASTERSHIP: Release mastership notification
root@router-VC# run show log messages | grep mastership
2021-03-25: Updated the article terminology to align with Juniper's Inclusion & Diversity initiatives. 2021-12-09: Archive since it is already covered extensively in https://www.juniper.net/documentation/us/en/software/junos/high-availability/topics/concept/gres-overview.html