• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

Findings ports on Cisco Switches

Hi I just took over a network which has some 3 switches of 48 ports ...

now i have different departments and now i want to know which port is connected to which computer on which floor ...

can you suggest me any commands and their sequence to find out which ports are going in which department ..

As of now i am unplugging each port from the computer and checking from the switch so see if status is down and then note them in excel ,

can there be a better way , dont wanna buy any stuff for this exercise

thanks
0
annasad
Asked:
annasad
  • 2
  • 2
  • 2
  • +1
3 Solutions
 
keno44Commented:
No great way to do it...How I do it in a MSFT Active Directory - bring up DHCP server console. The DHCP server shows the leases and that includes the MAC address and hostnames of the computers.

On a Cisco Catalyst switch

switch# sho mac-address | include aabb

"aabb" would be the last four hex chars of the MAC addr that you got out of the DHCP console.

the output from this Cisco command will tell you which switch port the PC is connected to. Repeat as necessary.

At least might save you from walking PC to PC..
0
 
keno44Commented:
You may have to run the command from each switch until you find the MAC address.
0
 
AkinsdNetwork AdministratorCommented:
If you have a desktop management tool, run a log of the mac addresses of the computers.

Another way of getting this is checking the DHCP leases and compile the computers with their mac address.

Tools like advanced IP scan (free) tool can also help you in the compilation of the MAC addresses of the computers.

Once you have the list of mac addresses, run the following command if your switch is a Cisco device. If not, look up the specific command syntax for your switch

show mac address-table

You will see the list of MAC addresses connected to particular ports.
Compare these addresses with your previous compilation
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SouljaCommented:
Try Packettrap PT360 tool suite. It has a nice switchport mapper that you can use to determine what is plugged in where.
0
 
annasadAuthor Commented:
yes , thanks for above tips , both DHCP lease option or advance IP scanner can be a good option to use , also if I am trying to find wall sockets that i am not sure which switch they go to ?

is there a better way to find those ports that are not used live ,

As of now , i just connect the laptop to the wall socket and then go to switch and enter

show inter connected command , and then see if there is any addtional port shown as connected  ..

so count the ports and before connecting laptop and then after , and find out which port is this ...

any better way that can eased this offline points ?
0
 
SouljaCommented:
You can use:

logging event link-status default

This command will show you when an interface goes up or down, so when you plug and unplug your laptop, the interface will go up and down and show in your session.

If you are consoled in make sure you have logging console entered.
If you are telnet/ssh in make sure you have terminal monitor entered.
0
 
annasadAuthor Commented:
above posts helps me to do my stuff , sorry for replying late on this one .
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now