Switch port security, is a switch filtering policy, that is, one port of the switch to bind a fixed MAC address, so that other MAC address when access to trigger policy, down port or denial of service
The following is the topology diagram
Switch configuration
Enable access to privileged mode
conf t into global configuration mode
Hostname Modifying the switch name
No IP domain-lookup remove domain name resolution
Interface Vlan1 into Vlan1
IP address 192.168.1.1 255.255.255.0 configuring Vlan1 IP addresses (that is, configuration management addresses)
No shutdown activation port
Exit return to upper level
Interface F0/1 Entry Interface 0/1
Shutdown shutdown Port
Switchport mode access Modify port modes
Switchport port-security Modify port to Safe mode
Switchport port-security 00E0. b0ea.6035 the host MAC address with the port, where the MAC address is the address of the pc-host 1
Switchport port-security maximum 1 Setting the maximum number of MAC addresses is 1
Switchport port-security violation shutdown set response policy, here is the shutdown port
End returns to privileged mode
Copy running-config startup-config Save configuration
Switch port security (MAC address binding)