display mac-address vlan 1 查看vlan 1 下的客户端MAC地址
display arp | include 192.168.22.199 查看IP对应的MAC地址
display arp | include 00d8-61ec-35e0 查看MAC对应的IP地址
arp max-learning-num 0 关闭vlan接口下MAC地址学习功能
display lldp neighbor-information list 交换机互连端口和设备
查看接口下IP及MAC地址
[门诊大楼1楼-vlan30]display arp interface g1/0/2
Type: S-Static D-Dynamic O-Openflow R-Rule M-Multiport I-Invalid
IP address MAC address VLAN/VSI name Interface Aging Type
192.168.22.102 6cb3-114b-7852 1 GE1/0/2 1148 D
1,[MER8300]display arp 192.168.20.177
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address MAC address VLAN/VSI name Interface/Link ID Aging Type
192.168.20.177 5405-db00-f0d4 20 GE2/0 20 D
2,[MER8300]display lldp neighbor-information list
Chassis ID : * — — Nearest nontpmr bridge neighbor
# — — Nearest customer bridge neighbor
Default — — Nearest bridge neighbor
Local Interface Chassis ID Port ID System Name
GE0/3 00e2-6962-e4f3 eth0 iKuai-X86
GE2/0 a8c9-8ae6-4c21 GigabitEthernet1/0/23 门诊大楼1楼
GE2/1 鍒涗笘绾綉缁滃伐绋?d85e-d324-a100 –
3,[门诊大楼1楼-GigabitEthernet1/0/3]display mac-address 5405-db00-f0d4
MAC Address VLAN ID State Port/Nickname Aging
5405-db00-f0d4 20 Learned GE1/0/3 Y
查看接口工作模式
<H3C>dis int g1/0/25
GigabitEthernet1/0/28 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 586a-b1be-30dd
Description: GigabitEthernet1/0/25 Interface
Loopback is not set
Media type is optical fiber, Port hardware type is No connector // optical fiber代表接口工作模式为光口,twisted pair代表接口未电口
1,[MER8300]display arp 192.168.20.177
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address MAC address VLAN/VSI name Interface/Link ID Aging Type
192.168.20.177 5405-db00-f0d4 20 GE2/0 20 D
2,[MER8300]display lldp neighbor-information list
Chassis ID : * — — Nearest nontpmr bridge neighbor
# — — Nearest customer bridge neighbor
Default — — Nearest bridge neighbor
Local Interface Chassis ID Port ID System Name
GE0/3 00e2-6962-e4f3 eth0 iKuai-X86
GE2/0 a8c9-8ae6-4c21 GigabitEthernet1/0/23 门诊大楼1楼
GE2/1 鍒涗笘绾綉缁滃伐绋?d85e-d324-a100 –
3,[门诊大楼1楼-GigabitEthernet1/0/3]display mac-address 5405-db00-f0d4
MAC Address VLAN ID State Port/Nickname Aging
5405-db00-f0d4 20 Learned GE1/0/3 Y
查看物理接口的实时流量:display interface + 物理端口号
查看端口的total流量:show interface display
1,[MER8300]display arp 192.168.20.177
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address MAC address VLAN/VSI name Interface/Link ID Aging Type
192.168.20.177 5405-db00-f0d4 20 GE2/0 20 D
2,[MER8300]display lldp neighbor-information list
Chassis ID : * — — Nearest nontpmr bridge neighbor
# — — Nearest customer bridge neighbor
Default — — Nearest bridge neighbor
Local Interface Chassis ID Port ID System Name
GE0/3 00e2-6962-e4f3 eth0 iKuai-X86
GE2/0 a8c9-8ae6-4c21 GigabitEthernet1/0/23 门诊大楼1楼
GE2/1 鍒涗笘绾綉缁滃伐绋?d85e-d324-a100 –
3,[门诊大楼1楼-GigabitEthernet1/0/3]display mac-address 5405-db00-f0d4
MAC Address VLAN ID State Port/Nickname Aging
5405-db00-f0d4 20 Learned GE1/0/3 Y