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.

Scroll to top