Siemens S323 Benutzerhandbuch

Seite von 381
User Manual                                                                               UMN:CLI 
SURPASS hiD 6615 S223/S323 R1.5 
A50010-Y3-C150-2-7619                                                                         159 
Step 2 
Set the maximum number of secure MAC address for the port. 
Command Mode 
Description 
port security
  PORTS  maximum 
<1-16384> 
Bridge 
Sets a maximum number of secure MAC address for 
the port.   
1-16384: Maximum number of addresses (default: 1) 
 
Step 3 
Set the violation mode and the action to be taken. 
Command Mode 
Description 
port security
  PORTS  violation 
{shutdown | protect | restrict
Bridge 
Selects a violation mode. 
 
When configuring port security, note that the following information about port security vio-
lation modes: 
 
protect
 drops packets with unknown source addresses until you remove a sufficient 
 
number of secure MAC addresses to drop below the maximum value. 
 
restrict
 drops packets with unknown source addresses until you remove a sufficient 
 
number of secure MAC addresses to drop below the maximum value and causes the 
 
Security Violation counter to increment. 
 
shutdown
 puts the interface into the error-disabled state immediately and sends an 
 
SNMP trap notification 
 
Step 4 
Enter a secure MAC address for the port. 
Command Mode 
Description 
port security
  PORTS  mac-
address MACADDR
 vlan NAME 
Bridge 
Sets a secure MAC address for the port. 
PORTS: select the port number. 
MACADDR: enter the MAC address. 
NAME: vlan name 
 
To disable the configuration of port secure, use the following command. 
Command Mode 
Description 
no port security
 PORTS   
Disables port security on the port. 
no port security
  PORTS  mac-
address MACADDR
 vlan NAME 
Deletes a secure MAC address for the port. 
PORTS: enter the port number 
MACADDR: enter the MAC address. 
no port security
  PORTS  maxi-
mum
 
Returns to the default number of secure MAC address. 
(default: 1) 
no port security
  PORTS  viola-
tion
 
Bridge 
Returns to the violation mode to the default. (shutdown 
mode)