![Cisco 2948G - Catalyst Switch Скачать руководство пользователя страница 317](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462317.webp)
16-9
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 16 Configuring Port Security
Configuring Port Security on the Switch
Setting the Shutdown Time
You can specify how long a port is to remain disabled in the event of a security violation. By default, the
port is shut down permanently. The valid range is from 1–1440 minutes.
If you set the time to zero, the shutdown is disabled for this port.
Note
When the shutdown timeout expires, the port is reenabled and all port security-related configuration is
maintained.
To set the shutdown timeout, perform this task in privileged mode:
This example shows how to set the shutdown time to 600 minutes on port 4/7:
Console> (enable) set port security 4/7 shutdown 600
Secure address shutdown time set to 600 minutes for port 4/7.
Console> (enable)
Disabling Port Security
To disable port security, perform this task in privileged mode:
This example shows how to disable security on a port:
Console> (enable) set port security 2/1 disable
Port 2/1 port security disabled.
Console> (enable) show port security 2/1
Port Security Violation Shutdown-Time Age-Time Max-Addr Trap IfIndex
----- -------- --------- ------------- -------- -------- -------- -------
3/24 disabled restrict 20 300 10 disabled 921
Port Num-Addr Secure-Src-Addr Age-Left Last-Src-Addr Shutdown/Time-Left
----- -------- ----------------- -------- ----------------- ------------------
3/24 1 00-e0-4f-ac-b4-00 - - - -
Console> (enable)
Task
Command
Set the shutdown timeout on a port.
set port security mod_num/port_num shutdown
time
Task
Command
Step 1
Disable port security on the desired ports.
set port security mod_num/port_num disable
Step 2
Verify the configuration.
show port security [mod_num/port_num]