Port-Security Max-Mac-Count - HP HSR6600 Command Reference Manual

Hide thumbs Also See for HSR6600:
Table of Contents

Advertisement

Examples
# Enable port security, set port GigabitEthernet 3/0/1 in autoLearn mode, and add a static secure MAC
address 0001-0001-0002 in VLAN 10.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet3/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet3/0/1] quit
[Sysname] port-security mac-address security 0001-0001-0002 interface gigabitethernet
3/0/1 vlan 10
# Enable port security, set port GigabitEthernet 3/0/1 in autoLearn mode, and add a static secure MAC
address 0001-0002-0003 in VLAN 4 in interface view.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet3/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet3/0/1] port-security mac-address security 0001-0002-0003 vlan 4
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 MAC addresses that port security allows
on a port.
Use undo port-security max-mac-count to restore the default setting.
Syntax
port-security max-mac-count count-value
undo port-security max-mac-count
Default
Port security has no limit on the number of MAC addresses on a port.
Views
Ethernet interface view
Default command level
2: System level
Parameters
count-value: Specifies the maximum number of MAC addresses that port security allows on the port. The
value range is 1 to 1024.
202

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 6600

Table of Contents