The protection port ensures that no communication is made between the ports on the same switch. The protection port does not forward any transmissions to other protection ports, including unicast, multicast, and broadcast packets. The transmission cannot take place between the second layer of protection ports, and the transmission between all protected ports must be forwarded through a third-tier device. The transport between the protected port and the unprotected port is unaffected.
First step: Enter the global configuration mode.
switch# Config terminal
Step two: Specify the interface you want to configure.
Switch (config) # interface Interface-id
Step Three: Configure the interface to protect the port.
Switch (config-if) # Switchport protected
Fourth step: Returns the privileged configuration mode.
Switch (config-if) # End
Fifth step: Displays and verifies the current configuration of the interface.
switch# Show Interfaces Interface-id Switchport
Sixth step: Save the configuration.
switch# Copy Running-config Startup-config
To disable the protection port, use the "No Switchport protected" interface to configure the command.