Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to protect Switch ports?

user-image
Question ajoutée par Essam Abdullah Mohamed Elmaghrabi , System Engineer , Egypt Gold
Date de publication: 2015/05/20
Mustapha RACHAD
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?