07-21-2010 11:15 AM - edited 03-06-2019 12:08 PM
Hi all,
Is there an easy way to tell if there is more than one device on a switch port?
What I am trying to do is set port-security on every port of a switch for a maximum of one device. This will obviously shut down any port with more than a device on it. So is there anyway to tell how many devices are on a port, so I can set the maximum accordingly?
Thanks,
-SA.
07-21-2010 11:20 AM
you can check for the number of mac addresses being learnt at each port using the cli command "sh mac-address-table dynamic
I knwo this could be frustrating but in general all but trunks ports of the switch can be configured for port secruity with a max of one mac-address.
If you have an IPT deployment with desktops hooking off the phones, then you may have to configure the port for a maximum of 2 mac-address
HTH
Narayan
07-21-2010 11:21 AM
Hello,
If you issue "show mac address-table dynamic interface " you
will see all registered mac addresses on that port. That would be a good
starting point.
Hope this helps.
Regards,
NT
07-21-2010 07:19 PM
Shut down the port and wait for the phone to ring. He he he ...
One option is to enable port security and set maximum MAC address. This is because some servers don't advertise their MAC address.
07-21-2010 08:22 PM
How could they not 'advertise' their MAC address?
If they're going to send any type of packet on a switched-network then of course they're going to need to have their MAC address known. Whether or not they spoof a MAC is another question, but either way you look at it; it will still be well known information (at least from a switches perspective).
07-21-2010 09:12 PM
NIC Teaming. The primary NIC will advertise but the secondary NIC will go "silent".
07-21-2010 09:17 PM
Fair point, although one could debate whether they'd be hanging off the same switch port (unless there were a switch or hub downstream from the switch you're looking at of course).
07-21-2010 09:32 PM
Thus my initial post of "disable the ports". If you use the command "sh mac- int
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