Hello ster,
Port security can be configured:
port-security enable: Enables port security.
port-security max-mac-num max-number
The maximum number of secure dynamic MAC addresses that can be learned on an interface is set. By default, the maximum number of secure MAC addresses that an interface can learn is 1.
port-security mac-address mac-address vlan vlan-id
The command is to manually configure secure static MAC address entries.
port-security protect-action {protect | restrict | shutdown}
The port security protection action is configured. By default, the port security protection action is restricted.