This section describes how to configure port security on Cisco switches:
- Configuring basic port security: Enter the following commands to configure basic port security:
Switch(config)# interface <interface-ID>
Switch(config-if)# no shutdown
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# exit
Switch(config)#
- Configuring a static entry for the MAC address of device: Enter the following commands to configure a static entry for the MAC address of a device:
Switch(config)# interface <interface-ID>
Switch(config-if)# no shutdown
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security mac-address <mac address-ID>
Switch(config-if)# exit
Switch(config)#
- Securing single unused port: Enter the following commands to disable a specific unused port:
Switch...