R2511-HP MSR Router Series Security Command Reference(V5)

174
Keyword
MSR9
00
MSR
93
X
MSR20
-1
X
MSR
20
MSR30 MSR50
MSR1
000
autolearn No No No No
Only available on
MSR30-11E and
MSR30-11F routers
No No
secure No No No No
Only available on
MSR30-11E and
MSR30-11F routers
No No
userlogin Yes Yes Yes Yes
Only available on
other MSR30 series
with FSW modules
installed
Only available on
MSR50 routers
with FSW modules
installed
Yes
Examples
# Enable port security and set port GigabitEthernet 1/1 in secure mode.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] port-security port-mode secure
# Change the port security mode of port GigabitEthernet 1/1 to userLogin.
[Sysname-GigabitEthernet1/1] undo port-security port-mode
[Sysname-GigabitEthernet1/1] port-security port-mode userlogin
# Set WLAN port WLAN-BSS 1 to operate in presharedKey mode.
<Sysname> system-view
[Sysname] interface wlan-bss 1
[Sysname-WLAN-BSS1] port-security port-mode psk
Related commands
display port-security
port-security timer autolearn aging
Use port-security timer autolearn aging to set the secure MAC aging timer. The timer applies to all sticky
or dynamic secure MAC addresses.
Use undo port-security timer autolearn aging to restore the default.
Syntax
port-security timer autolearn aging time-value
undo port-security timer autolearn aging
Default
Secure MAC addresses never age out.
Views
System view
Default command level
2: System level