Switch ports

twiggy87twiggy87 Inactive Imported Users Posts: 43 ■■□□□□□□□□
I am in need of some assistance here. How would you go about finding which port a mac address gets forwarded out of? Say I was given a list of mac addresses and a switch what command/s would I use?

I thought

Show spantree
Show mac-address-table

Are there any others?

Thanks
If my answers frighten you then you should cease asking scary questions.

Comments

  • HumperHumper Member Posts: 647
    The only one I can think of

    show mac-address-table



    You could also use show arp which gives you the IP addresses and mac-addresses in the ARP table. Again, you would go back to using show-mac-address-table to identify which port that IP/MAC address is tied too.
    Now working full time!
  • PCHoldmannPCHoldmann Member Posts: 450
    You can use

    show mac-address-table | include xxxx-yyyy-zzzz

    where xxxx-yyyy-zzzz is one of the MAC addresses you are looking for. This will give you only the line for that MAC.

    You can also use SNMP and a tool like Switch Port Mapper from Solarwinds (www.solarwinds.net, not free, but they also have some free tools)

    HTH

    Peter
    There's no place like ^$
    Visit me at Route, Switch, Blog
  • HumperHumper Member Posts: 647
    the include option is not really necessary as I have found out

    show mac-address-table address xxxx-yyyy-zzzz works just as well :)
    Now working full time!
Sign In or Register to comment.