Switches: Cisco2960, Cisco g3560x
server: 10.15.44.164 ac-*-2d-* -84-*
pc:10.15.44.69
Server 44.164→port 2-Cisco2960-port1→g3560x-port5
Find this IP by IP address under the interface of that switch
Query the corresponding switch port via Mac, IP address
1. Start running nbtstat–a IP query out MAC address
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7C/ED/wKioL1bcv2eQDm6GAAAY8Id21zc609.png "title=" Qq20160307073554.png "alt=" Wkiol1bcv2eqdm6gaaay8id21zc609.png "/>
Or go directly to the g3560x switch to find the MAC address via show ARP
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/F1/wKioL1bdFteQMsXLAAAOqXlHn4I361.png "title=" Qq20160307134857.png "alt=" Wkiol1bdfteqmsxlaaaoqxlhn4i361.png "/>
Do not find that the corresponding relationship is the ARP message timeout is deleted, ARP and Mac two table time-out cleanup times are not the same, you can first go to the switch to ping the IP address on show ARP
2. Login g3560x
Run Switch#show mac address-table dynamic address ac-*-2d-*-84-*
You can see that the MAC address for the ac-*-2d-*-84-* connection g3560x the port of the switch is PORT5
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7C/EF/wKiom1bcwEiyhtt7AAAiOYuh6w0678.png "title=" Qq20160307074019.png "alt=" Wkiom1bcweiyhtt7aaaioyuh6w0678.png "/>
3. Query the device to which the interface is docked according to GIGABITETHERNET0/5
Run Switch#show CDP neighbors gigabitethernet 0/5
Show more detailed information: Switch#show CDP neighbors gigabitethernet 0/5 Detail
You can see that the G0/5 docking device is the FAS0/1 port of the Cisco2960 switch.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7C/ED/wKioL1bcw6ngiMFOAAAop5ZNgmg919.png "title=" Qq20160307075207.png "alt=" Wkiol1bcw6ngimfoaaaop5zngmg919.png "/>
4. Login to Cisco2960,
Run Cisco2960-sh-10-4-4#show mac address-table dynamic address ac-*-2d-*-84-*
You can see that the MAC address for the ac-*-2d-*-84-* connection C2960 The port of the switch is Port9
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7C/ED/wKioL1bcxe6DSkVDAAAjKII-sg4891.png "title=" Qq20160307080234.png "alt=" Wkiol1bcxe6dskvdaaajkii-sg4891.png "/>
5. Verify that the Mac is the only active MAC address on this port
Run Cisco2960-sh-10-4-4#show mac address-table dynamic interface Gigabitethernet 0/9
Show only one, indicating that the 10.15.44.164 is connected to the C2960 Switch 9 port, if there are several results indicate that there are other routing switching devices C2960 Port9, repeat the above steps to find
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7C/EF/wKiom1bcxtaTC8YSAAAZmnAbjXk942.png "title=" Qq20160307080947.png "alt=" Wkiom1bcxtatc8ysaaazmnabjxk942.png "/>
Querying the corresponding server IP via the switch port address
The above IP to the connected switch to the corresponding port, the following through the switch port to connect to the server, the environment or the above
Check which server the c3650x port11 corresponds to, and the steps are similar to the one above, reverse push
1, Check the c3650x port11 interface docking device MAC address
Run Switch#show mac address-table dynamic interface Gigabitethernet 0/11
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7C/EE/wKioL1bc3GvSGrk3AAAXogc7-bE056.png "title=" 2.png " alt= "Wkiol1bc3gvsgrk3aaaxogc7-be056.png"/>
1. View the corresponding IP via MAC address
Run Show ARP | Include Mac_address
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7C/F1/wKioL1bdF7bjyfugAAANVIzMq9E942.png "title=" Qq20160307135242.png "alt=" Wkiol1bdf7bjyfugaaanvizmq9e942.png "/>
The timeout cleanup time for Arp and Mac two tables is not the same. Use Switch#clear Arp-cache to clear the ARP information table, use Switch#show interfaces gigabitethernet 0/11 to view ARP refresh time arp type:arpa, ARP Timeout 04:00:00; the corresponding relationship is not found that the ARP message timeout has been deleted, how to flush the ARP table there is a big God to know please advise!
This article is from "I am not a rookie" blog, please be sure to keep this source http://pvbutler.blog.51cto.com/7662323/1748384
IP and MAC addresses in the Cisco switch find the corresponding ports