Configuring port security on an HP comware switch - Part 1

Configuring port security in autoLearn mode Procedure # Enable port security. system-view port-security enable # Set the secure MAC aging timer to 30 minutes. port-security timer autolearn aging 30 # Set port security’s limit on the number of secure MAC addresses to 2. interface GE1/0/1 port-security max-mac-count 2 # Set the port security mode to autoLearn. port-security port-mode autolearn # Configure the port to be silent for 30 seconds after the intrusion protection feature is triggered. port-security intrusion-mode disableport-temporarily quit port-security timer disableport 30 Verifying the configuration # Verify the port security configuration. display port-security interface GigabitEthernet 1/0/1 display port-security mac-address security interface GigabitEthernet 1/0/1 interface GE1/0/1 display this Reference:
Back to Top