Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to protect Switch ports?

user-image
Question added by Essam Abdullah Mohamed Elmaghrabi , System Engineer , Egypt Gold
Date Posted: 2015/05/20
Mustapha RACHAD
by Mustapha RACHAD , Stagiaire en tant que technicien spécialisé , Ministère de transport, d'équipement et de la logistique

To protect ports of a Cisco switch you need to set the following:

The ports must be on Access mode, note that after the # is a comment to light things up a little ^_^

S(config)#intf0/x      # Where "x" is the port number

 

 

 

you can also do it on a range

 

S(config)#int range f0/x - y      # Where "x" is the first port and "y" is the last port

 

S(config)#switchport port-security

S(config)#switchport port-security maximum x     # Where "x" the number of allowed addresses between1 -132

 

You can use one of those:

  • S(config)#switchport port-security mac-address sticky          # If you want to set the MAC-address dynamically
  •  S(config)#switchpor tport-security mac-address XXXX.XXXX.XXXX          # If you want to set the MAC-address manually

 

Then use one of these three

  •  S(config)#switchport port-security violation shutdown        # This will shutdown the port if there is a violation
  •  S(config)#switchport port-security violation protect             # This will disable the port if there is a violation
  •  S(config)#switchport port-security violation restrict             # This will restrict the port from been used if there is a violation

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.