Configuration Guide Configuring MAC Address
Ruijie# show mac aging-time
Aging time : 180 seconds
Ruijie# show mac-address-table dynamic interface GigabitEthernet 0/1 vlan 1
Vlan MAC Address Type Interface
---------- -------------------- -------- -------------------
1 00d0.f800.1001 STATIC GigabitEthernet 1/1
Common Errors
Configure MAC address learning on an interface before configuring the interface as a layer-2 interface, for example, a switch
port or an AP port.
2.4.2 Configuring a Static MAC Address
Configuration Effect
Bind the MAC address of a network device with a port of a switch.
Configuration Steps
Configuring a Static MAC address
Optional.
Bind the MAC address of a network device with a port of a switch.
mac-address-table static mac-address vlan vlan-id interface interface-id
address mac-address: Specifies a MAC address.
vlan vlan-id: Specifies a VLAN where the MAC address resides.
interface interface-id: Specifies a physical interface or an AP port.
By default, no static MAC address is configured.
Global configuration mode
When the switch receives a packet containing the specified MAC address on the specified VLAN, the packet
is forwarded to the bound interface.
Verification
Run the show mac-address-table static command to check whether the configuration takes effect.
show mac-address-table static [ address mac-address ] [ interface interface-id ] [ vlan vlan-id ]
address mac-address: Specifies a MAC address.
interface interface-id: Specifies a physical interface or an AP port.
vlan vlan-id: Specifies a VLAN where the MAC address resides.
Privileged EXEC mode/Global configuration mode /Interface configuration mode