Description

In Layer 2 of a network, the Media Access Control (MAC) sublayer provides addressing and channel access control mechanisms that enable several terminals or network nodes to communicate in a network.

The MAC sublayer acts as an interface between the logical link control (LLC) Ethernet sublayer and Layer 1 (the physical layer). The MAC sublayer emulates a full-duplex logical communication channel in a multipoint network.

This article lists the MAC address calculation technique for Network Ports (WAN ports), Management ports, and IRB interfaces on EX and QFX series device variants.

Solution

Platform
The formula to calculate WAN port MAC address
EX4300 system_base_mac + port_number + 3
EX3400 system_base_mac + port_number + 3
QFX5100 system_base_mac + 3 + (port_number * 4) + channel
QFX5200 system_base_mac + 3 + (port_number * 4) + channel
 
Platform The formula to calculate mgmt port (em0/em1/me0) MAC address
EX4300 system_base_mac
EX3400 system_base_mac
QFX5100 em <unit> mac = system_base_mac + mac address count - 8 + unit
QFX5200 em <unit> mac = system_base_mac + mac address count - 8 + unit
 
Platform The formula to calculate IRB interface MAC address
EX4300 system_base_mac + 1
EX3400 system_base_mac
QFX5100 system_base_mac
QFX5200 system_base_mac

Related Information