1-11 
[Switch] port-security enable 
# Enter GigabitEthernet1/0/1 port view. 
[Switch] interface GigabitEthernet 1/0/1 
# Set the maximum number of MAC addresses allowed on the port to 80. 
[Switch-GigabitEthernet1/0/1] port-security max-mac-count 80 
# Set the port security mode to autolearn. 
[Switch-GigabitEthernet1/0/1] port-security port-mode autolearn 
# Add the MAC address 0001-0002-0003 of Host as a security MAC address to the port in VLAN 1. 
[Switch-GigabitEthernet1/0/1] mac-address security 0001-0002-0003 vlan 1 
# Configure the port to be silent for 30 seconds after intrusion protection is triggered.  
[Switch-GigabitEthernet1/0/1] port-security intrusion-mode disableport-temporarily 
[Switch-GigabitEthernet1/0/1] quit 
[Switch] port-security timer disableport 30