How to check and configure the MAC address aging time on an S series switch

3

For S series switches (except the S1700), configure the MAC address aging time as follows:
[HUAWEI] mac-address aging-time 500 //Set the MAC address aging time to 500s.

Check the MAC address aging time as follows:
<HUAWEI> display mac-address aging-time
  Aging time:300 second(s)     //The current aging time is 300s.

Other related questions:
Why secure MAC addresses are not aged when the aging time arrives
The secure MAC address aging time is related to the global aging time of dynamic MAC addresses, and depends on the MAC address traffic match flag bit that is updated after the dynamic MAC addresses are globally aged out. That is, after the secure MAC address aging time arrives, the system checks whether the MAC address flag bit is cleared. If it is not cleared, the secure MAC address is not aged out.

Aging time of ARP entries on S series switches
For S series switches (except S1700 switches),
the default aging time of dynamic ARP entries is 1200s (20 minutes). You can run the arp expire-time  expire-time command in the system view or an interface view to configure the aging time of dynamic ARP entries. Configure the second expire-time variable as the target aging time of dynamic ARP entries.
Static ARP entries do not age.

Check binding tables for IPSG on S series switches
You can check binding tables for IPSG on S series switches (except S1700 switches) as follows: 1. Run the display dhcp static user-bind all command to check static binding entries. 2. Run the display dhcp snooping user-bind all command to check dynamic DHCP snooping binding entries.

How to check the MAC address of an interface on an S series switch
For S series switches (except the S1700), you can obtain the MAC address of an interface as follows:
<HUAWEI> display interface gigabitEthernet 0/0/5
GigabitEthernet0/0/5 current state : DOWN                                      
Line protocol current state : DOWN                                             
Description:                                                                   
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216   
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-1111-2121
Current system time: 2015-04-02 16:03:17+08:00

The value of the Hardware address field in the command output is the MAC address of the interface, which is the switch's MAC address when the interface is a Layer 2 interface.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top