华为交换机根据已知一个IP查他对应的MAC地址和交换机端口命令

Posted 玩电脑的辣条哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为交换机根据已知一个IP查他对应的MAC地址和交换机端口命令相关的知识,希望对你有一定的参考价值。

设备
华为S5735S-S24T4S-A
VRP ® software, Version 5.170 (S5735 V200R019C10SPC500)

华为S5720-28p-LI-AC
VRP ® software, Version 5.170 (S5720 V200R011C10SPC600

配置说明

华为交换机根据已知一个IP查他对应的MAC地址,已知终端ip:192.168.1.11
1.首先在核心交换机上dis arp | include 192.168.1.11
显示

IP ADDRESS MAC ADDRESS E XPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN
192.168.1.11 6xxx-9xxx-fxxx 12 D-0 GE0/0/11
Total:113 Dynamic:196 Static:0 Interface:4

找到ip:192.168.1.11对应mac地址为6xxx-9xxx-fxxx

查哪些IP已绑定的对应该的MAC地址
display current-configuration | include 192.168.1
显示

dhcp server static-bind ip-address 192.168.1.9 mac-address xxxx-xxxx-xxxx
dhcp server static-bind ip-address 192.168.1.108 mac-address xxxx-xxxx-xxxx
dhcp server static-bind ip-address 192.168.1.149 mac-address xxxx-xxxx-xxxx

2.然后找到对应接入层交换机dis mac-address 6xxx-9xxx-fxxx

[ACCESS]dis mac-address 6xxx-9xxx-fxxx
MAC Address VLAN/VSI/BD Learned-From Type
6xxx-9xxx-fxxx 16/-/- GE0/0/18 dynamic
找到mac地址:6xxx-9xxx-fxxx对应端口号GE0/0/18

查看接口对应有哪些mac地址

dis mac-address g0/0/23


MAC Address VLAN/VSI/BD Learned-From Type


3d9c-232d-091a 16/-/- GE0/0/23 dynamic

以上是关于华为交换机根据已知一个IP查他对应的MAC地址和交换机端口命令的主要内容,如果未能解决你的问题,请参考以下文章

怎么查询华为s5700交换机上所有端口对应的IP地址和MAC地址?

华为交换机知道IP怎么查看设备mac地址

华为交换机 端口 邦定 IP与MAC

华为交换机怎么查看在线MAC地址

思科交换机根据MAC IP地址查找对应端口

华为交换机怎么绑定绑定ip地址和mac地址