Securing Devices - Port Security LAB
Securing Devices - Port Security LAB
Configuration
We will use the following topology to configure switch port security.
Create the following topology in Cisco Packet Tracer.
1. First of all open the Command Prompt of PC1 and execute the ipconfig
/all command and note down its MAC address.
2. Next, switch to the interface on which you want to implement port security.
For example interface Fa0/ 1.
3. Next, execute the following commands to enable the access mode and port
security feature.
4. Next, execute the following commands to bind the MAC address that you
want to allow to access this interface and to set the maximum number of MAC
addresses to this interface.
5. Next, execute the following commands to set the violation policy and exit
from the interface configuration mode.
7. Next, execute the following command to show the MAC addresses
associated with the interfaces, as shown in the following figure.
9. Next, execute the following command to show the port security settings of
the interface Fa0/ 1, as shown in the following figure.