R2511-HP MSR Router Series Security Command Reference(V5)
175
Parameters
time-value: Sets the aging timer in minutes for secure MAC addresses. The value is in the range of 0 to
129600. To disable the aging timer, set the timer to 0.
Examples
# Set the secure MAC aging timer to 30 minutes.
<Sysname> system-view
[Sysname] port-security timer autolearn aging 30
Related commands
• display port-security
• port-security mac-address security
port-security preshared-key
Use port-security preshared-key to configure a PSK.
Use undo port-security preshared-key to remove the PSK.
Syntax
port-security preshared-key { pass-phrase | raw-key } [ cipher | simple ] key
undo port-security preshared-key
Default
No PSK is configured.
Views
WLAN-BSS interface view, WLAN-Ethernet interface view
Default command level
2: System level
Parameters
pass-phrase: Enters a PSK in the form of a character string.
raw-key: Enters a PSK in the form of a hexadecimal number.
cipher: Sets a ciphertext PSK.
simple: Sets a plaintext PSK.
key: Specifies the PSK. This argument is case sensitive. If simple is specified, it must be a
non-hexadecimal string of 8 to 63 characters or a 64-character hexadecimal string. If cipher is specified,
it must be a ciphertext string of 8 to 117 characters. If neither cipher nor simple is specified, you set a
plaintext key string.
• The cipher key option specifies an encrypted PSK, which is displayed in cipher text. You can input
a character or hexadecimal string of 12, 24, 32, 44, 64, 76, 88, or 96 characters for the key
argument.
• The simple key option specifies a plain text PSK, which is displayed in plain text. You can input a
character string of 8 to 63 displayable characters or a hexadecimal string of 64 characters for the
key argument.










