This article explains the behavior of the Link Aggregation Control Protocol (LACP) flap 10 minutes after the primary Routing Engine is halted or shut down in a Virtual Chassis (VC) and Virtual Chassis Fabric (VCF) environment.
In a Virtual Chassis (VC) and Virtual Chassis Fabric (VCF) environment, when the primary Routing Engine goes down, the backup Routing Engine takes over the role of primary. The nonstop bridging (NSB) feature is available to ensure that the LACP daemon runs on both the primary and backup Routing Engine. NSB ensures that the LACP adjacency is maintained with the neighbor device and that LACP PDUs are seamlessly received and transmitted even when a primary Routing Engine switchover takes place.
However, in a VC and VCF environment on an EX/QFX device, we consistently notice that if the primary Routing Engine is permanently shut down, removed, or halted, then the LACP flap is seen exactly 10 minutes after the successful completion of the mastership switchover.
Available workarounds to avoid the LACP flap 10 minutes after old primary Routing Engine shutdown:
Configure the MAC persistence timer for the backup Routing Engine to start using Its own base MAC address as the system MAC address for the entire VC/VCF (CLI):
When a backup member takes control of a VC configuration, due to reset or some other temporary failure, the backup uses the MAC address of the old primary. This helps to ensure a smooth transition of mastership with no disruption to network connectivity. The MAC persistence timer is used in situations where the primary is no longer a member of the Virtual Chassis configuration, as it has been physically disconnected or removed.
The default timer value is 10 minutes. There are no minimum or maximum limits; this timer can be modified as per the network requirement. The maximum timer limit is 60 minutes starting with Junos OS Release 12.2.
Before configuring the timer, ensure that at least two member switches are present in the Virtual Chassis configuration.
To configure or modify the MAC persistence timer, use the following command:
[edit virtual-chassis] user@switch# set mac-persistence-timer < value>
Configure a static system-identifier for a particular LACP LAG bundle:
set interfaces ae1 aggregated-ether-options lacp system-priority <value> set interfaces ae1 aggregated-ether-options lacp system-id < value> commit
Disable the MAC persistence timer (CLI):
user@switch# set mac-persistence-timer disable