Identify IP address to port on Cisco switch

Posted on 2009-04-28
Last Modified: 2012-06-21
Objective: There are a few servers that I am trying to trace down which port they are connected to on the switches.

Difficulty: No toners/cable chasers. Patch panel is disorganized, switch port assigning has no rhyme or reason, and cabling is strewn about EVERYWHERE with no labeling or sense of order. Some cables are run through plenum space and other hidden crevices. I can barely close the door to the rackspace that houses the connections.

Can I locate the port on a switch used by a server with the machine IP or MAC address?   Using the program Cisco Network Assistant I can find which switch its going to, but not which interface its using.

I'm familiar with Cisco equipment but I'm no pro with console/telnet command line, so please be gentle with the explainations.

Question by:L3370
    LVL 4

    Accepted Solution

    from a workstation.....
    ping the ip of the server and then type "arp -a"
    that will give you the servers mac address.
    From the switch, type show mac ad ad xx:xx:xx:xx:xx:xx:xx:xx (the mac address of the server)
    it will tell you which port the server is plugged into, or which interface the switch that the server is plugged into is connected on.
    LVL 3

    Assisted Solution

    If you know the MAC address of the server, logon to the switch

    SW#Sho mac-address table | include XXXX

    (where XXX are the last four hex digits of the MAC). Using the | (pipe) symbol and the word 'include' will help quickly search and parse your output.

    Hope this helps.
    LVL 79

    Assisted Solution

    You can also use something like Solarwinds' switchport mapper. It is part of their Engineers Toolset and you can get a 30 day eval.
    LVL 9

    Author Closing Comment

    easy enough... thanks!

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    Introduction Many times we come across a slowness or instability between two hosts, and almost always we blame the poor networking guys, just because they're an easy target.  Sometimes we forget that other factors including disk bottlenecks, CPU …
    When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now