What is port security MAC address?
Port security enables you to configure each switch port with a unique list of the MAC addresses of devices that are authorized to access the network through that port. This security enables individual ports to detect, prevent, and log attempts by unauthorized devices to communicate through the switch.
Port Security helps secure the network by preventing unknown devices from forwarding packets. When a link goes down, all dynamically locked addresses are freed. The port security feature offers the following benefits: You can limit the number of MAC addresses on a given port.
...
Usage guidelines
- Enable port security on the port.
- Set the port security mode to autoLearn.
- Configure the port to permit packets of the specified VLAN to pass or add the port to the VLAN. Make sure the VLAN already exists.
By using port security, a network administrator can associate specific MAC addresses with the interface, which can prevent an attacker to connect his device. This way you can restrict access to an interface so that only the authorized devices can use it.
Prevents Thieves from Stealing Goods. Since shipping containers cannot be manned at all times, port security is essential for keeping goods safe from thieves. Some areas of ports are inaccessible for human patrol, but other security measures can protect these items from thieves.
You can configure the port for one of three violation modes: protect, restrict, or shutdown.
Port security is a layer two traffic control feature on Cisco Catalyst switches. It enables an administrator configure individual switch ports to allow only a specified number of source MAC addresses ingressing the port.
Using Port Security, you can configure each switch port with a unique list of the MAC addresses of devices that are authorized to access the network through that port. This enables individual ports to detect, prevent, and log attempts by unauthorized devices to communicate through the switch.
Two agencies under the U.S. Department of Homeland Security (DHS) are primarily responsible for port security: the U.S. Coast Guard for offshore and waterside security, and the U.S. Bureau of Customs and Border Protection (CBP) for landside security.
To check and analyze the port security configuration on switch, user needs to access privilege mode of the command line interface. 'show port-security address' command is executed to check the current port security status.
What is port security violation?
Switch Port Security
It is a security violation when either of these situations occurs: The maximum number of secure MAC addresses have been added to the address table for that interface, and a station whose MAC address is not in the address table attempts to access the interface.
...
- Technology and Support.
- Security.
- Other Security Subjects.
- how to clear port security violation counters?

A secure port has a default of one MAC address. The default can be changed to any value between 1 and 3,000.
switchport port-security mac address
In dynamic method we use sticky feature that allows interface to learn mac address automatically. Interface will learn mac addresses until it reaches maximum number of allowed hosts.
A security violation occurs when the maximum number of MAC addresses has been reached and a new device, whose MAC address is not in the address table attempts to connect to the interface or when a learned MAC address on an interface is seen on another secure interface in the same VLAN.
ROVs provide port authorities with an efficient and reliable way to perform hull inspections, submerged structure inspections, or any other task that requires eyes underwater to protect port safety and security.
What is a MAC ID? A MAC ID is assigned to modems and receivers (not routers) to help identify your equipment. A MAC ID is a string of letters and numbers, similar to a serial number. Each MAC ID is unique, and is made up of 12 characters and/or numbers.
Use the switchport port-security command to enable port-security. I have configured port-security so only one MAC address is allowed. Once the switch sees another MAC address on the interface it will be in violation and something will happen.
Only difference is that, security violation counters are incremented in restrict, while its not incremented in protect. So each time a violation occurs and you do a show port-security on that port.
Also, the number of addresses secured on the port across all VLANs cannot exceed a maximum that is configured on the port. The default "switchport port-security maximum" value for the port is "1".
What is Switchport security?
Switchport Security Overview. The switchport security feature offers the ability to configure a switchport so that traffic can be limited to only a specific configured MAC address or list of MAC addresses.
MAC address filtering allows you to block traffic coming from certain known machines or devices. The router uses the MAC address of a computer or device on the network to identify it and block or permit the access. Traffic coming in from a specified MAC address will be filtered depending upon the policy.
Using Port Security, you can configure each switch port with a unique list of the MAC addresses of devices that are authorized to access the network through that port. This enables individual ports to detect, prevent, and log attempts by unauthorized devices to communicate through the switch.
A security violation occurs when the maximum number of MAC addresses has been reached and a new device, whose MAC address is not in the address table attempts to connect to the interface or when a learned MAC address on an interface is seen on another secure interface in the same VLAN.
Port security removes all secure addresses on the voice VLAN of the access port. –If you reconfigure a secure trunk as an access port, port security converts all sticky and static addresses learned on the native VLAN to addresses learned on the access VLAN of the access port.
To check and analyze the port security configuration on switch, user needs to access privilege mode of the command line interface. 'show port-security address' command is executed to check the current port security status.
What is a MAC ID? A MAC ID is assigned to modems and receivers (not routers) to help identify your equipment. A MAC ID is a string of letters and numbers, similar to a serial number. Each MAC ID is unique, and is made up of 12 characters and/or numbers.
Port security is a layer two traffic control feature on Cisco Catalyst switches. It enables an administrator configure individual switch ports to allow only a specified number of source MAC addresses ingressing the port.
Switch Port Security
It is a security violation when either of these situations occurs: The maximum number of secure MAC addresses have been added to the address table for that interface, and a station whose MAC address is not in the address table attempts to access the interface.
- Ensure your device's system is updated. Keeping your device(s) updated often include feature enhancement and security updates.
- Turn off WiFi when you're not using your device. ...
- MAC address randomization.
How do we see a port-security violation?
Here is a useful command to check your port security configuration. Use show port-security interface to see the port security details per interface. You can see the violation mode is shutdown and that the last violation was caused by MAC address 0090. cc0e.
A secure port has a default of one MAC address. The default can be changed to any value between 1 and 3,000.
Also, the number of addresses secured on the port across all VLANs cannot exceed a maximum that is configured on the port. The default "switchport port-security maximum" value for the port is "1".
Just run a no switchport port-security mac-address 0000.0000. 0003. That should do the trick. The command given by Earnest basically removes the previously set/seen mac-add in that switch port.
Historically, MAC addresses are 48 bits long. They have two halves: the first 24 bits form the Organizationally Unique Identifier (OUI) and the last 24 bits form a serial number (formally called an extension identifier).
The switchport security feature offers the ability to configure a switchport so that traffic can be limited to only a specific configured MAC address or list of MAC addresses.
Only difference is that, security violation counters are incremented in restrict, while its not incremented in protect. So each time a violation occurs and you do a show port-security on that port.