More network basic content can be found at:
4.4 Port security
The most commonly used understanding of port security in switches is that they can control and manage network traffic based on MAC addresses, such as binding MAC addresses to specific ports, limiting the number of MAC addresses passing through specific ports, or not Allow frame traffic of certain MAC addresses to pass.
Configuration of binding MAC address to port and allowing traffic based on MAC address:
- MAC address and port binding
When it is found that the MAC address of the host is different from the MAC address specified on the switch, the corresponding port of the switch will be down. When assigning a MAC address to a port, the port mode must be in access or trunk state.
3550-1(config)#int f0/1