![](/images/new-backgrounds/1191828/191828603x1.webp)
Command Mode
Interface Configuration (Ethernet)
Command Usage
■If you enable port security, the switch stops dynamically learning new addresses on the specified port. Only incoming traffic with source addresses already stored in the dynamic or static address table are accepted.
■To use port security, first allow the switch to dynamically learn the <source MAC address, VLAN> pair for frames received on a port for an initial training period, and then enable port security to stop address learning. Be sure you enable the learning function long enough to ensure that all valid VLAN members have been registered on the selected port.
■To add new VLAN members at a later time, you can manually add secure addresses with the
■A secure port has the following restrictions:
Cannot use port monitoring.
Cannot be a
Cannot be connected to a network interconnection device.
Cannot be a trunk port.
Example
The following example enables port security of port SNP5:
Console(config)#interface ethernet SNP5
Related Commands
show