Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Which command is used to enable port security on an interface?

user-image
Question added by Nadim Khan , Sr. ITSM System | Security Engineer , Clever solutions
Date Posted: 2017/06/22
aref ghoulem
by aref ghoulem , مكلف بإدارة مصلحة الشبكات وحماية المعطيات بإدارة تكنولوجيا المعلومات والأتصال , بلدية أريانة

the command is :

switchport port-security 

Syed Aalam  Abbas Rizvi
by Syed Aalam Abbas Rizvi , Tech Support , •Tata Interactive System PvtLtd.

  • 2- switchport port-security 

Step 1Switch(config)# interface interface_idStep 2Switch(config-if)# switchport mode accessStep 3 To enables port security on the interface.

Switch(config-if)# switchport port-securityStep 4

Switch(config-if)# switchport port-securitymaximum value

Step 5Switch(config-if)# switchport port-securityviolation {restrict | shutdown}

Step 6Switch(config-if)# switchport port-security limitrate invalid-source-macStep 7Switch(config-if)# switchport port-securitymac-address mac_addressStep 8

Switch(config-if)# switchport port-securitymac-address stickyStep 9Switch(config-if)# end

Step 10

Switch# show port-security addressinterface interface_idSwitch# show port-security address.

Osama Ibdah
by Osama Ibdah , Sr. Security Engineer , SMASCO Saudi Manpower Solution Company

#switchport port-security

This enables the port security feature with only 1 mac address.

switch(config-if)

above commnad is used to enable port security on an interface

Fasiledes Getachew
by Fasiledes Getachew , Senior Network Administrator , Dashen Bank s.c

onthe interface config command type switchport port-security to enable port security feature on the port

Abhilash GK
by Abhilash GK , Senior Software Engineer , IBS Software Pvt Ltd

The command used to Enable Port-Security on an interface is switchport port-security.

The show port-security address can be used to verify the configuration.

Saqib Mehmood
by Saqib Mehmood , Technical Team Lead/Safety Supervisor , Xchange Technology Group

Switch(config-if)# switchport port-security

More Questions Like This

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