Example
In this example, port security mode is set to dynamic for Ethernet interface 1/e7.
Console(config)# interface ethernet 1/e7
Console(config-if)# port security mode dynamic
port security max
The port security max Interface Configuration (Ethernet, port-channel) mode command configures the maximum
number of addresses that can be learned on the port while the port is in port security mode. To return to the default
configuration, use the no form of this command.
Syntax
port security max max-addr
no port security max
Parameters
•
max-addr— Maximum number of addresses that can be learned by the port.
(Range: 1-100)
Default Configuration
The default setting is 1 address.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
This command is only relevant in dynamic learning modes.
Example
In this example, the maximum number of addresses that are learned on port 1/e7 before it is locked is set to 20.
Console(config)# interface ethernet 1/e7
Console(config-if)# port security mode dynamic
Console(config-if)# port security max 20
port security routed secure-address
The port security routed secure-address Interface Configuration (Ethernet, port-channel) mode command adds
a MAC-layer secure address to a routed port. Use the no form of this command to delete a MAC address.
Syntax
port security routed secure-address mac-address
no port security routed secure-address mac-address
Page 37
Address Table Commands