How to check the MAC & IP of the device connected to a port on a Huawei switch

1、dis interface brief #显示端口详细信息

<Quidway>dis interface brief
PHY: Physical
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
(b): BFD down
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
Ethernet0/0/1               up    up       0.15%  0.20%          0          0
Ethernet0/0/2               up    up       0.25%  0.19%          0          0
Ethernet0/0/3               up    up       2.33%  4.70%          0          0
Ethernet0/0/4               down  down        0%     0%          0          0
Ethernet0/0/5               down  down        0%     0%          0          0
Ethernet0/0/6               down  down        0%     0%          0          0
Ethernet0/0/7               down  down        0%     0%          0          0
Ethernet0/0/8               down  down        0%     0%          0          0
Ethernet0/0/9               up    up       0.01%  0.01%          0          0
Ethernet0/0/10              up    up       0.01%  0.01%          0          0
Ethernet0/0/11              up    up       0.05%  1.30%          0          0

2、display mac-address #来查看端口下的MAC

<Quidway>dis mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID 
               VSI/SI                                              MAC-Tunnel 
-------------------------------------------------------------------------------
0080-f03f-b0e6 1           -      -      Eth0/0/33       dynamic   -          
c89c-1d6d-8583 1           -      -      Eth0/0/1        dynamic   -          
c89c-1d6d-8584 1           -      -      Eth0/0/25       dynamic   -          
c89c-1d6d-853d 1           -      -      Eth0/0/37       dynamic   -          
b8ca-3a7c-8267 1           -      -      Eth0/0/1        dynamic   -          
000c-295c-1983 1           -      -      GE0/0/3         dynamic   -          
000f-e207-f2e0 1           -      -      Eth0/0/35       dynamic   -          
0050-568c-77d7 1           -      -      GE0/0/3         dynamic   -          
04f9-38d1-fd26 1           -      -      Eth0/0/2        dynamic   -          
b8ca-3a7c-83e2 1           -      -      Eth0/0/1        dynamic   -          
c89c-1d6d-84a7 1           -      -      Eth0/0/10       dynamic   -          
c89c-1d6d-849e 1           -      -      Eth0/0/33       dynamic   -          
0050-5661-774b 1           -      -      GE0/0/3         dynamic   -          
b8ca-3a7c-933e 1 - - Eth0/0/25 dynamic -          
b8ca-3a7c-8325 1 - - Eth0/0/42 dynamic -          
b8ca-3a7c-931a 1 - - Eth0/0/22 dynamic -          
6400-6a50-0f80 1 - - Eth0/0/24 dynamic -          
b8ca-3a7c-934d 1 - - Eth0/0/28 dynamic -          
b8ca-3a7c-80bd 1 - - Eth0/0/36 dynamic -          

3. display arp #Find the MAC corresponding to the IP , through the port number behind the IP, you can know the device information connected to a port on the second layer.

<Quidway>dis arp
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE      
                                       VLAN
------------------------------------------------------------------------------
192.168.1.1   e024-7fca-60fc         I -  Vlanif1
192.168.1.43  b8ca-3a7c-8f27  11     D-0  Eth0/0/33 
                                       1
192.168.1.2   0046-4b89-342a  12     D-0  Eth0/0/2
                                       1
192.168.1.3   0022-3ff1-c4f8  12     D-0  Eth0/0/48
                                       1
192.168.1.12  000e-a941-db3f  14     D-0  Eth0/0/20
                                       1
192.168.1.99  6eb3-1150-7a7e  5      D-0  GE0/0/3
                                       1
192.168.1.11  0050-5661-774b  2      D-0  GE0/0/3
                                       1
192.168.1.13  000c-295c-1983  2      D-0  GE0/0/3
                                       1
192.168.1.9   f04d-a2fa-1afb  8      D-0  GE0/0/3
                                       1
192.168.1.95  0050-56b5-c5ef  4      D-0  GE0/0/3
                                       1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326050385&siteId=291194637