10-21-2024 04:21 AM
Is there any command to get mac address for all access ports in a particular Cisco Catalyst 2960 switch. sh mac address table command shows the learned mac id of all ports of the neighboring switch also. How do i get the mac address for only the connected access ports of that particular switch only not the neighboring switch?
10-21-2024 04:26 AM
sh mac address | include F
10-25-2024 10:07 AM
Not working in Cisco 2960 model catalyst switch.What is the exact command?
10-25-2024 10:33 AM
show ip arp
10-25-2024 12:24 PM
@13jobsp90 wrote:
Not working in Cisco 2960 model catalyst switch.What is the exact command?
What, exactly, is the model of the 2960 switches?
Try this:
sh mac address-table | exclude G|CPU|Vl
10-25-2024 10:40 PM
what is G, cpu, V1?
10-25-2024 11:14 AM
An L2 port does not have a MAC.
10-25-2024 03:16 PM
Rereading your OP, I believe I misunderstood your question. I thought you were asking for the MACs of the access ports, themselves.
Are you trying to just obtain the MACs of hosts only directly connected to access ports of a switch? If so, there's no single command that will provide just those MACs. If fact, L2 being what L2 is, even using multiple commands, I don't believe there's a guaranteed method to determine such hosts. That's not to say, using multiple commands, you might be able to make some probability of whether a MAC might be a directly connected host, but again, if many cases, don't believe it can be guaranteed.
If the switch and host support CDP and/or LLDP, "seeing" a CDP/LLDP relationship, would probably be the best indicator, but even that could be incorrect.
10-25-2024 10:39 PM
if I give sh mac address table interface, it will show the mac address of that particular port.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide