cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
823
Views
5
Helpful
8
Replies

Find the port connected to device B in Nexus7K

wfqk
Level 5
Level 5

Hi, devices B is connected to Nexus7K. After we logon to Nexus7K, based on the output of show ip arp and show mac address-table, we can know Device B is connected to Nexus7K via vlan 100, but vlan 100 have several ports on Nexus7K. How can we know which port in Nexus7K is connected to Device B. Thank you

1 Accepted Solution

Accepted Solutions

So the mac is learned via the vpc peer link. Go to the peer switch and try the command. And you might try the option of show mac-address-table mac-address 001c.1111.2222

 

HTH

 

Rick

HTH

Rick

View solution in original post

8 Replies 8

Deepak Kumar
VIP Alumni
VIP Alumni

hi,

if you connected device supporting to cdp protocol then use "show cdp neighbor detail"

you will get details about connected device.

if your connected device not supporting to cdp then try with LLDP protocol. You must be enable lldp on Cisco switch.

show lldp neighbor detail

 

regards,

deepak Kumar

please vote if this will helpful for you.

sorry for typo.. I am using phone.

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Thank you so much for your reply. The device is non-Cisco device. and at this moment, we cannot enable LLDP. 

Then you have the only option as you are doing with mac address table "sho mac address-table address 00:00:00:00:00:00" or configure IP reservation for the devices on DHCP server.

Regards,
Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

With show mac address table there is an option to show a particular mac address. That should provide the port number where that particular mac address is connected.

 

HTH

 

Rick

HTH

Rick

After I got mac add by show ip arp, I use command show mac address-table. then i got output like the below in Nexus7K: 

N7K-2# sh mac address-table | i 001c.1111.2222
100    001c.1111.2222   dynamic ~~~ F F vPC Peer-Link

100 is vlan number

Thank you

So the mac is learned via the vpc peer link. Go to the peer switch and try the command. And you might try the option of show mac-address-table mac-address 001c.1111.2222

 

HTH

 

Rick

HTH

Rick

You are right. Thank you!

You are welcome. I am glad that my suggestions pointed you in the right direction. Thank you for marking this question as solved. This will help other readers in the forum to identify discussions which have helpful information.

 

HTH

 

Rick

HTH

Rick