Chapter 54 Port Security Commands
Ethernet Switch CLI Reference Guide
224
54.2 Command Examples
This example enables port security on port 1 and limits the number of learned MAC addresses
to 5.
no port-security <port-list>
vlan <vlan-id> address-limit
Removes the specified VLAN MAC address limit. C 13
port-security <port-list> vlan
<vlan-id> address-limit <number>
inactive
Disables the specified VLAN MAC address limit. C 13
no port-security <port-list>
vlan <vlan-id> address-limit
inactive
Enables the specified VLAN MAC address limit. C 13
Table 124 port-security Command Summary (continued)
COMMAND DESCRIPTION M P
sysname# configure
sysname(config)# port-security
sysname(config)# port-security 1
sysname(config)# no port-security 1 learn inactive
sysname(config)# port-security 1 address-limit 5
sysname(config)# exit
sysname# show port-security 1
Port Security Active : YES
Port Active Address Learning Limited Number of Learned MAC Address
01 Y Y 5