cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
308
Views
0
Helpful
3
Replies

Find Switch and Port using Macaddress on Port-Channel

ralpho1
Level 1
Level 1

Hello togehter,

I need to know which Device is connected to a switch port. My starting Point is on Coreswitch where I enter:

show mac address-table | inc abcd

Output is:

show mac address-table | inc abdc

   4    aaa.bbb.abcd    DYNAMIC     Po1

Now I stuck because I can´t get more Information about which Switch it is because 

"show cdp neighbors port-channel xy details" won´t work. Does this support not any Switches or I ´am completely wrong?

or is there an other way?

Many Thanks and Regards 

Ralph

 

 

1 Accepted Solution

Accepted Solutions

SW1-SW2-----

in SW1 you see 

show mac address-table | inc abdc

   4    aaa.bbb.abcd    DYNAMIC     Po1 <<- this is MAC learn in VLAN 4 via PO1 

NOW in SW1 if PO1 is trunk 
then do 
show cdp <<- check see which SW neighbor show connect via PO1 

then go to that SW do
show mac address-table | inc abdc

see the MAC must appear connect to VLAN 4 and it can learn via access or trunk

MHM

View solution in original post

3 Replies 3

acampbell
VIP Alumni
VIP Alumni

Hi 

In the 1st place try sh int port-channel 1  about 10 line down it should say what interfaces are making up the port channel, then hopefully you can use sh cdp nei for that interface , or may by sh udld x/y/z to get the name of the next switch where the mac is coming  from.

 

Regards, Alex. Please rate useful posts.

SW1-SW2-----

in SW1 you see 

show mac address-table | inc abdc

   4    aaa.bbb.abcd    DYNAMIC     Po1 <<- this is MAC learn in VLAN 4 via PO1 

NOW in SW1 if PO1 is trunk 
then do 
show cdp <<- check see which SW neighbor show connect via PO1 

then go to that SW do
show mac address-table | inc abdc

see the MAC must appear connect to VLAN 4 and it can learn via access or trunk

MHM

Many Thanks to all, this works. 

Ralph

Review Cisco Networking for a $25 gift card