Configuration Guide Configuring MAC Address
Optional.
Configure an aging time for dynamic MAC addresses.
Configuration:
mac-address-table aging-time value
value: Indicates the aging time. The value is either 0 or in the range from 10 to 1000,000.
Global configuration mode
If the value is set to 0, MAC address aging is disabled and learned MAC addresses will not be aged.
The actual aging time may be different from the configured value, but it is not more than two times of the configured
value.
Verification
Check whether a device learns dynamic MAC addresses.
Run the show mac-address-table dynamic command to display dynamic MAC addresses.
Run the show mac-address-table aging-time command to display the aging time for dynamic MAC addresses.
show mac-address-table dynamic [ address mac-address ] [ interface interface-id ] [ vlan vlan-id ]
address mac-address: Displays the information of a specific dynamic MAC address.
interface interface-id: Specifies a physical interface or an AP port.
vlan vlan-id: Displays the dynamic MAC addresses in a specific VLAN.
Privileged EXEC mode/Global configuration mode/Interface configuration mode
Ruijie# show mac-address-table dynamic
Vlan MAC Address Type Interface
---- ------------ ------ ------------------
1 0000.0000.0001 DYNAMIC GigabitEthernet 1/1
1 0001.960c.a740 DYNAMIC GigabitEthernet 1/1
1 0007.95c7.dff9 DYNAMIC GigabitEthernet 1/1
1 0007.95cf.eee0 DYNAMIC GigabitEthernet 1/1
1 0007.95cf.f41f DYNAMIC GigabitEthernet 1/1
1 0009.b715.d400 DYNAMIC GigabitEthernet 1/1
1 0050.bade.63c4 DYNAMIC GigabitEthernet 1/1