أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
the command is :
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.
#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
onthe interface config command type switchport port-security to enable port security feature on the port
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.