Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to learn MAC address of a device conneceted to a port of switch

Status
Not open for further replies.

tkiziloren

IS-IT--Management
Aug 16, 2007
1
TR
Hi. Is there any way of learning the MAC address of a device connected to a managed switch? How can i prevent the connection of hubs to ports of any switch. I know cisco provides some security improvements in order to solve this problem(such as specifying max number of connecting devices). However, I am looking for a solution which is applicable for all kind of switches.

Thanks in advance..

Tevfik K?z?lören.
 


You are in a wrong forum for your question.

Depending on the type switch, the way to find the mac is not the same.
sh mac-address-table inter f0/1
will give you all the devices connected to f0/1 interface.

You may use "port security" to restrict the number of mac connected to the port. If more than the allowed then depending on your configuration; the port may be disabled or the ignored.

As far as I know there is no software out there that manage this feature. I wrote my own Perl program to enable/disable/clear mac/increase mac side etc.

Hope this help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top