06-08-2021 08:08 PM
Hi everyone, i am new to cisco technology. i am try to configure port security on a cisco switch sg250 using putty. But i keep getting an error of "% Wrong number of parameters or invalid range, size or characters entered" when i entered "switchport port-security". Below is the command i entered
configure terminal (success)
interface gi7 (success)
switchport mode access (success)
switchport port-security (error) % Wrong number of parameters or invalid range, size or characters entered
Can anyone help me with this.
Thanks in advance
Solved! Go to Solution.
06-09-2021 08:26 AM
Hi Brian
Not sure if you can do that on a SG250 via CLI but take a look at this article, I think it will help you.
HTH
06-08-2021 10:09 PM
Hi Brian,
try below commands,
Switch(config)#interface fa0/1 Switch(config-if)#switchport port-security
or
Use the switchport port-security mac-address command to define the MAC address that you want to allow.
regards,
sathish
06-09-2021 07:59 PM
Hello sir, thank you for your response. i already tried this and still the same result. Thanks
06-09-2021 08:26 AM
Hi Brian
Not sure if you can do that on a SG250 via CLI but take a look at this article, I think it will help you.
HTH
06-09-2021 08:15 PM
Thank you sir. i used this and it works.
12-20-2022 07:33 AM
Is there a way to do this in the command line?
12-20-2022 07:46 AM
Hello,
from the command line, the commands are:
port security [forward | discard | discard-shutdown] [trap seconds]
no port security
port security mode {max-addresses | lock | secure permanent | secure delete-on-reset}
no port security mode
Check page 124 of the CLI Guide linked below:
12-20-2022 08:09 AM
Thank so much
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide