環(huán)境:華為S5735S-S24T4S-A VRP ? software, Version 5.170 (S5735 V200R019C10SPC500) 華為S5720-28p-LI-AC VRP ? software, Version 5.170 (S5720 V200R011C10SPC600 問題描述:華為交換機如何根據已知一個IP查他對應的MAC地址和交換機端口命令 解決方案:華為交換機根據已知一個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
|