Max Addresses limit in System (excluding one mac per port) : 8192 Total Addresses in System (excluding one mac per port) : 0 Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action Switchport port-security mac-address 0015.99d2.99fd Switch(config-if)#switchport port-security violation protect
Switch(config-if)#switchport port-security maximum 1 Switch(config-if)#switchport port-security Switch(config)#interface FastEthernet 0/1 We are going to keep it simple and work with FastEthernet port 0/1.Įnter configuration commands, one per line. The port shuts down when the maximum number of secure MAC addresses is exceeded. Maximum number of secure MAC addresses per port The tutorial also shows you have to connect to the Cisco device via the console cable and a serial-to-USB adapter.
Cisco mac address assigned to port how to#
To ensure you also have the default values to follow along with this tutorial I suggest following my previous post on how to reset your switch to the factory defaults. The table below lists the default values on each port for the Cisco 2960. If you limit the number of secure MAC addresses to one and assign a single secure MAC address, the device attached to that port has the full bandwidth of the port.
When you assign secure MAC addresses to a secure port, the port does not forward ingress traffic that has source addresses outside the group of defined addresses. You can use port security with dynamically learned and static MAC addresses to restrict a port’s ingress traffic by limiting the MAC addresses that are allowed to send traffic into the port. From Understanding Port Security – Chapter 62 – Configuring Port Security We are going to configure basic, no frills, port security on the Cisco Catalyst 2960.