How-to find on which port a given MAC address is connected

I have a very basic question. Unfortunately, I cannot figure it out…

How do I know on which port a given MAC address is connected?
We have a server connected to one of our switches via SFP and I’d like to know on which port.
We are currently running Cumulus Linux 3.7.15.

If you know your server MAC address you can go to your Cumulus switch and go to the linux cli, then use ‘ip link’ and compare the listed MAC addresses with your server’s MAC address.

I just tried with 10 different MAC addresses that I know are connected to the switch without success:

root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:c5:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:c3:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:cd:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:bb:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:cd:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:8a:bc:**
root@ictor1:~# ip link | grep -i -C 5 90:e2:ba:89:dd:**
root@ictor1:~# ip link | grep -i -C 5 00:1E:67:A0:55:**
...

Is there any other option?

However, when I try with the command ip neighbor, I get some results like:

10.90.33.23 dev br-vlan133 lladdr 90:e2:ba:8a:cd:c4 STALE
fe80::92e2:baff:fe8a:cdc4 dev br-vlan133 lladdr 90:e2:ba:8a:cd:c4 STALE

or

10.90.33.10 dev br-vlan133 lladdr 90:e2:ba:89:e9:a0 STALE
10.90.33.201 dev br-vlan133 lladdr 90:e2:ba:89:e9:a0 STALE
fe80::92e2:baff:fe89:e9a0 dev br-vlan133 lladdr 90:e2:ba:89:e9:a0 STALE

Hello, Emmanuel Jaep!

What about fdb show command ?

e.g.:

bridge fdb show | grep -i 0c:42:a1:84:45:3c
0c:42:a1:84:45:3c dev swp1s0 vlan 201 master bridge

Hi @joao.antonio1 ,

that’s it!

Thanks.

Emmanuel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.