Port-Security Max-Mac-Count - HP 6125XLG Command Reference Manual

Blade switch security command reference
Table of Contents

Advertisement

# Specify MAC address 0001-0002-0003 in VLAN 4 as a sticky MAC address.
[Sysname-Ten-GigabitEthernet1/1/6] port-security mac-address security sticky
0001-0002-0003 vlan 4
[Sysname-Ten-GigabitEthernet1/1/6] quit
# In system view, specify MAC address 0001-0001-0002 in VLAN 10 as a secure MAC address for port
Ten-GigabitEthernet 1/1/6.
[Sysname] port-security mac-address security 0001-0001-0002 interface
ten-gigabitethernet 1/1/6 vlan 10
Related commands
display port-security
port-security timer autolearn aging

port-security max-mac-count

Use port-security max-mac-count to set the maximum number of secure MAC addresses that port security
allows on a port.
Use undo port-security max-mac-count to restore the default.
Syntax
port-security max-mac-count count-value
undo port-security max-mac-count
Default
Port security has no limit on the number of secure MAC addresses on a port.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
count-value: Specifies the maximum number of secure MAC addresses that port security allows on the
port. The value range is 1 to 1024. Make sure this value is no less than the number of MAC addresses
currently saved on the port.
Usage guidelines
In autoLearn mode, this command sets the maximum number of secure MAC addresses (both configured
and automatically learned) on the port.
In any other mode that enables 802.1X, MAC authentication, or both, this command sets the maximum
number of authenticated MAC addresses on the port. The actual maximum number of concurrent users
that the port accepts equals this limit or the authentication method's limit on the number of concurrent
users, whichever is smaller. For example, in userLoginSecureExt mode, if 802.1X allows less concurrent
users than port security's limit on the number of MAC addresses, port security's limit takes effect.
Examples
# Set the maximum number of secure MAC address port security allows on port Ten-GigabitEthernet
1/1/6 to 100.
<Sysname> system-view
1 18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents