Configuring Learned Port Security Sample Learned Port Security Configuration
OmniSwitch AOS Release 7 Network Configuration Guide March 2011 page 25-3
Sample Learned Port Security Configuration
This section provides a quick tutorial to perform the following tasks:
• Enabling LPS on a set of switch ports.
• Defining the maximum number of learned MAC addresses allowed on an LPS port.
• Defining the time limit for which source learning is allowed on all LPS ports.
• Selecting a method for handling unauthorized traffic received on an LPS port.
1 Enable LPS on ports 6 through 8 on slot 1 using the following commands:
-> port-security port 1/6-8 learning-enable
2 Set the total number of learned MAC addresses allowed on the same ports to 25 using the following
command:
-> port-security port 1/6-8 maximum 25
3 Configure the amount of time in which source learning is allowed on all LPS ports to 30 minutes using
the following command:
-> port-security learning-window 30
4 Select shutdown for the LPS violation mode using the following command:
-> port-security port 1/6-8 violation shutdown
Note. Optional. To verify LPS port configurations, use the command show port-security. For example:
-> show port-security
Port: 1/6
Operation Mode : SHUTDOWN-LW,
Max MAC bridged : 10,
Violation : RESTRICT,
Max MAC filtered : 5,
Low MAC Range : 00:00:00:00:00:00,
High MAC Range : ff:ff:ff:ff:ff:ff
MAC VLAN MAC TYPE OPERATION
-------------------------+--------+-------------+----------------------
00:00:39:59:f1:0c 1 static bridging
Port: 1/7
Operation Mode : SHUTDOWN-LW,
Max MAC bridged : 10,
Violation : RESTRICT,
Max MAC filtered : 5,
Low MAC Range : 00:00:00:00:00:00,
High MAC Range : ff:ff:ff:ff:ff:ff
MAC VLAN MAC TYPE OPERATION
-------------------------+--------+-------------+----------------------
Port: 1/8