4.18 Port Security
4.18.1 port-security
Command:
port-security
no port-security
Default:
Default is disabled
Mode:
Global Configuration
Usage Guide:
The "port-security" command enables the port security functionality on this port.
Use the no form of this command to disable
Example:
This example shows how to enable port security on port 1 and set the learning limit number to 10.
switch(config)# interface gi1
switch(config-if)# port-security address-limit 10 action discard
switch(config-if)# port-security
switch(config)# show port-security interfaces gi1
Port | Mode | Security | CurrentAddr | Action
-------------+------------+-----------------------+---------------+----------------------
gi1 | Dynamic | Enabled ( 10) | 0 | Discard
4.18.2 port-security address-limit
Command:
port-security address-limit <1-256> action (forward|discard|shutdown)
Command Guide of WGSW-28040
240