R2511-HP MSR Router Series Security Command Reference(V5)
159
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.
count: Displays only the count of the blocked MAC addresses.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
With no keyword or argument specified, the command displays information about all blocked MAC
addresses.
Examples
# Display information about all blocked MAC addresses.
<Sysname> display port-security mac-address block
MAC ADDR From Port VLAN ID
0002-0002-0002 Ethernet1/1 1
000d-88f8-0577 Ethernet1/1 1
--- 2 mac address(es) found ---
# Display the count of all blocked MAC addresses.
<Sysname> display port-security mac-address block count
--- 2 mac address(es) found ---
# Display information about all blocked MAC addresses in VLAN 1.
<Sysname> display port-security mac-address block vlan 1
MAC ADDR From Port VLAN ID
0002-0002-0002 Ethernet1/1 1
000d-88f8-0577 Ethernet1/1 1
--- 2 mac address(es) found ---
# Display information about all blocked MAC addresses of port Ethernet 1/1.
<Sysname> display port-security mac-address block interface ethernet1/1
MAC ADDR From Port VLAN ID
000d-88f8-0577 Ethernet1/1 1
--- 1 mac address(es) found ---
# Display information about all blocked MAC addresses of port Ethernet 1/1 in VLAN 1.
<Sysname> display port-security mac-address block interface ethernet 1/1 vlan 1










