

Pinging from PC2 to VLAN1 will also be successful.Īfter enabling PS, add another VPCS to the workspace to test whether this feature works.Ĭonfigure the IP settings of the VPCS PC3 as follows. The test will also be successful if you Ping the IP address of the VLAN1 from the computers.
#Cisco switch gns3 mac#
The switch has recorded the MAC addresses of PC1 and PC2 in the table and will compare it with the MAC addresses here in case of any violation. Pinging from PC2 to PC1 will also be successful.Īfter the Ping operation between computers, the MAC address table on the Cisco Switch updated. You can examine the Port related information and violations by applying the “ show port-security interface gigabitethernet 0/0” command on the L2 Switch.Īfter configuring PS, ping from PC1 to PC2 to test the connection between the PCs. The SecurityViolation section will appear as 0 since no attacks are currently taking place. Otherwise, the Cisco Switch interface will not be set to Access Port!īy running the show port-security command in privileged mode on the Cisco Switch, you can check for any violations on the interfaces. Set the Cisco Switch’s interface from Dynamic mode to Access mode with the “ Switchport Host” command. Switch(config)#interface gigabitethernet 0/1 Switch(config-if)#switchport port-security violation shutdown Switch(config-if)#switchport port-security maximum 1 Switch(config-if)#switchport port-security mac-address sticky Switch(config-if)#switchport port-security Switch(config)#interface gigabitethernet 0/0

Enter configuration commands, one per line.
