Supported Platforms
Adding a Static MAC Address Entry to the Ethernet Switching Table (CLI Procedure)
![]() | Note: This task uses Junos OS for EX Series switches and Junos OS for QFX3500 and QFX3600 switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Adding a Static MAC Address Entry to the Ethernet Switching Table (CLI Procedure). For ELS details, see Getting Started with Enhanced Layer 2 Software. |
The Ethernet switching table, also known as the forwarding table, specifies the known locations of VLAN nodes and the addresses of devices within those nodes. There are two ways to populate the Ethernet switching table on a switch. The easiest method is to let the switch update the table with MAC addresses.
The second way to populate the Ethernet switching table is to manually insert addresses into the table. You can do this to reduce flooding and speed up the switch’s automatic learning process.
Before configuring a static MAC address, be sure that you have:
- Set up the VLAN. See Configuring VLANs for EX Series Switches (CLI Procedure) or Configuring VLANs.
To configure an interface to have a static MAC address:
[edit vlans vlan-name switch-options
interface interface-name]
user@switch# set static-mac mac-address