How to limit mac-addresses on switch

Answered Question
Dec 9th, 2008
User Badges:

We have 2 different lans..one user

has a hub connected to one switchport..he need 3 network connections for vlan 5. This would give him unlimited network access which is what we want.


However..2 users have patched into that hub ..and they have un fettered access.


What security command would i use

to allow 3 macs but not that final 2?






Correct Answer by John Blakley about 8 years 5 months ago

You would need to implement port security. If you want just the 3 addresses, I would recommend that you hard code them in:


switchport port-security

switchport port-security max 3

switchport port-security mac-address

switchport port-security mac-address

switchport port-security mac-address


HTH,


John

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
Correct Answer
John Blakley Tue, 12/09/2008 - 11:49
User Badges:
  • Purple, 4500 points or more

You would need to implement port security. If you want just the 3 addresses, I would recommend that you hard code them in:


switchport port-security

switchport port-security max 3

switchport port-security mac-address

switchport port-security mac-address

switchport port-security mac-address


HTH,


John

Actions

This Discussion