Port-Security Max-Mac-Count - HP E4510-48G Command Reference Manual

4510g series
Table of Contents

Advertisement

By default, no secure MAC address is configured.
Note that:
The port must belong to the specified VLAN.
You can configure a secure MAC address only if port security is enabled and the specified port
operates in autoLearn mode.
The undo port-security mac-address security command can be used in system view only.
Related commands: display port-security.
Examples
# Enable port security, set the port security mode of port GigabitEthernet 1/0/1 to autoLearn, and add a
secure MAC address of 0001-0001-0002 (belonging to VLAN 10) for port GigabitEthernet 1/0/1 in
system view.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet1/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] port-security mac-address security 0001-0001-0002 interface gigabitethernet 1/0/1
vlan 10
# Enable port security, set the port security mode of port GigabitEthernet 1/0/1 to autoLearn, and add a
secure MAC address of 0001-0002-0003 (belonging to VLAN 4) for port GigabitEthernet 1/0/1 in
interface view.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet1/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet1/0/1] port-security mac-address security 0001-0002-0003 vlan 4

port-security max-mac-count

Syntax
port-security max-mac-count count-value
undo port-security max-mac-count
View
Ethernet interface view
Default Level
2: System level
Parameters
count-value: Maximum number of secure MAC addresses allowed on the port, ranging 1 to 1,024.
8-9

Advertisement

Table of Contents
loading

Table of Contents