R0106-HP MSR Router Series Security Configuration Guide(V7)

172
Disableport timeout : 30 s
MAC move : Denied
OUI value list :
GigabitEthernet2/1/1 is link-up
Port mode : autoLearn
NeedToKnow mode : Disabled
Intrusion protection mode : DisablePortTemporarily
Max secure MAC addresses : 64
Current secure MAC addresses : 5
Authorization : Permitted
The output shows the following information:
The port security's limit on the number of secure MAC addresses on the port is 64.
The port security mode is autoLearn.
The intrusion protection action is disabling the port (DisablePortTemporarily) for 30 seconds.
The port allows for MAC address learning, and you can view the number of learned MAC addresses in
the Current number of secure MAC addresses field.
# Display additional information about the learned MAC addresses.
[Device] interface gigabitethernet 2/1/1
[Device-GigabitEthernet2/1/1] display this
#
interface GigabitEthernet2/1/1
port-security max-mac-count 64
port-security port-mode autolearn
port-security mac-address security sticky 0002-0000-0015 vlan 1
port-security mac-address security sticky 0002-0000-0014 vlan 1
port-security mac-address security sticky 0002-0000-0013 vlan 1
port-security mac-address security sticky 0002-0000-0012 vlan 1
port-security mac-address security sticky 0002-0000-0011 vlan 1
#
[Device-GigabitEthernet2/1/1] quit
# Verify that the port security mode changes to secure after the number of MAC addresses learned by the
port reaches 64.
[Device] display port-security interface gigabitethernet 2/1/1
# Verify that the port will be disabled for 30 seconds after it receives a frame with an unknown MAC
address. (Details not shown.)
# After the port is re-enabled, delete several secure MAC addresses.
[Device] undo port-security mac-address security sticky 0002-0000-0015 vlan 1
[Device] undo port-security mac-address security sticky 0002-0000-0014 vlan 1
# Verify that the port security mode of the port changes to autoLearn, and the port can learn MAC
addresses again. (Details not shown.)