Port-Security Max-Mac-Count - 3Com S7906E Command Reference Manual

6300 series
Hide thumbs Also See for S7906E:
Table of Contents

Advertisement

Examples
# Enable port security, set the port security mode of port GigabitEthernet 2/0/1 to autoLearn, and add a
secure MAC address of 0001-0001-0002 (belonging to VLAN 10) for port GigabitEthernet 2/0/1 in
system view.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet2/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet2/0/1] quit
[Sysname] port-security mac-address security 0001-0001-0002 interface gigabitethernet 2/0/1
vlan 10
# Enable port security, set the port security mode of port GigabitEthernet 2/0/1 to autoLearn, and add a
secure MAC address of 0001-0002-0003 (belonging to VLAN 4) for port GigabitEthernet 2/0/1 in
interface view.
<Sysname> system-view
[Sysname] port-security enable
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port-security max-mac-count 100
[Sysname-GigabitEthernet2/0/1] port-security port-mode autolearn
[Sysname-GigabitEthernet2/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.
Description
Use the port-security max-mac-count command to set the maximum number of secure MAC
addresses allowed on the port.
Use the undo port-security max-mac-count command to restore the default setting.
By default, the maximum number of secure MAC addresses is not limited.
Note that:
You cannot change the maximum number of secure MAC addresses for a port working in the
autoLearn mode.
1-9

Advertisement

Chapters

Table of Contents
loading

This manual is also suitable for:

S7910eS7906e-vS7903eS7903e-sS7902e

Table of Contents