This article explains the behavior of a Virtual Chassis (VC) when the em0 interface on one member is connected to a network port on the other member and vice versa (reference diagram in the next section). It also explains the steps to overcome this behavior and considerations to make. This behavior is most likely to be seen on EX4600 devices and QFX5k series devices involved in VC.
Consider a 2 member ( FPC 0 and FPC 1) Virtual Chassis scenario with FPC 0 as the primary. Let us consider the network ports and em0/em1 connected as below:
--------- --------- | FPC 0 |---(em0)--------------(ge-1/0/4)---| FPC 1 | --------- --------- | | | | (ge-0/0/4)------------------------------------(em1)
In this scenario, it is possible to observe that the IRB interface will not be able to communicate with the VME interface. The MAC addresses assigned for multiple cases is as shown below:Base Address:
root# run show chassis mac-addresses FPC 0 Base address 12:12:12:12:a5:00 Count 1280
IRB MAC Address:
[master:0][edit] root# run show interfaces irb extensive | match hard Current address: 12:12:12:12:a5:00, Hardware address: 12:12:12:12:a5:00
VME MAC Address:
[master:0][edit]root# run show interfaces vme extensive | match hard Current address: 12:12:12:12:a5:01, Hardware address: 12:12:12:12:a5:01
Management Interface MAC:
[master:0][edit]root# run show interfaces em0 extensive | match hard Current address: 12:12:12:12:a5:01, Hardware address: 12:12:12:12:a9:f8
As we can see in the above outputs, IRB MAC address is the same as the Base address. This is not a favorable case and leads PFE to drop the packets.
This issue is seen when the IRB MAC address takes the same MAC address as the Base address for the FPC.
In order to overcome the situation, there has been a hidden-knob introduced for setups similar to the one depicted above. The irb-mac-shift knob under the packet-forwarding-options hierarchy directs the IRB MAC to change to "Base MAC + 2"Example: Considering the outputs provided in the Symptoms section, the base address being 12:12:12:12:a5:00, the IRB MAC address changes to "base_address +2". The resulting IRB MAC becomes 12:12:12:12:a5:02.
irb-mac-shift
packet-forwarding-options
Enable IRB MAC Shift:
[master:0][edit] root# set system packet-forwarding-options irb-mac-shift
Commit the configuration change:
As you try to commit the configuration, the system indicates that a reboot is mandatory in order for the change to be reflected. Please make sure you are prepared for a reboot while you make this configuration change.
root# show system packet-forwarding-options irb-mac-shift; [master:0][edit] root# commit [edit system] 'packet-forwarding-options' warning: Reboot the system for the irb-mac-shift to take effect configuration check succeeds commit complete
Perform Reboot:
[master:0][edit] root# run request system reboot Reboot the system ? [yes,no] (no) yes *** FINAL System shutdown message from root@ *** System going down IMMEDIATELY
root# run show interfaces irb extensive | match hard Current address: 12:12:12:12:a5:02, Hardware address: 12:12:12:12:a5:02 Flags: Hardware-Down Up SNMP-Traps 0x4004000 Encapsulation: ENET2 [master:0][edit] root# run show interfaces vme extensive | match hard Current address: 12:12:12:12:a5:01, Hardware address: 12:12:12:12:a5:01 [master:0][edit] root# run show interfaces em0 extensive | match hard Current address: 12:12:12:12:a5:01, Hardware address: 12:12:12:12:a9:f8
2021-03-24: Updated the article terminology to align with Juniper's Inclusion & Diversity initiatives2023-06-28: Added similar scenario in Junos 21.4R3.X