Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Find a Mac-address

Find a Mac-address

I've been asked for this question, and it beats me.

How can you find a MAC-address on which port in which swith in a LAN?

both in IOS and CATos commands.

RE: Find a Mac-address

To do it manually in IOS use the command:
show mac-address-table
This gives the complete table
If you want to find the mac address 00-00-12-55-fa-3e use:
show mac-address-table | include fa3e
Then use show interface status and/or show cdp neighbors to see where it connects to.

To do it maually in CatOS use the command:
show cam dynamic
Use the questionmark (show cam ?) to see the other available options.

To do it automated, use the "cammer" Perl script from our MRTG friend Tobias Oetiker.
(I assume you have Perl installed)
You can find this cammer Perl script at:
Be sure to read the cammer.readme.txt
Redirect the output to a textfile for further processing.

RE: Find a Mac-address

A way to do this in IOS is to use the following command or a variation of it depending on the version.

If you want to find mac address 00-00-12-55-fa-3e

show mac address-table | include fa3e

you will get an output sort of like this

   8    0000.1255.fa3e    DYNAMIC     Fa2/0/32

RE: Find a Mac-address

I always used:

show mac-address-table dynamic address 0000.1255.fa3e

which works fine for IOS.

Experience is a tough teacher.
The test comes first, the lesson comes later...

Red Flag This Post

Please let us know here why the post below is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close