Avatar of techbeausejour
 asked on

Port security violation on Stack


I have a port with port security violation on it. But if I check logg, it give me errors...The mac address match the device that is plugged into...

interface GigabitEthernet1/0/25
 description Z1AAQNET NIC1 i27
 switchport access vlan 201
 switchport mode access
 switchport port-security
 switchport port-security violation restrict
 switchport port-security mac-address 842b.2b72.a56e
 speed 1000
 duplex full
 spanning-tree portfast

May  8 12:06:49.735 UTC: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 842b.2b72.a576 on port GigabitEthernet1/0/25.
Networking ProtocolsNetwork SecurityNetworking

Avatar of undefined
Last Comment

8/22/2022 - Mon

more info:

hostname#show port-security int gi1/0/25
Port Security              : Enabled
Port Status                : Secure-up
Violation Mode             : Restrict
Aging Time                 : 0 mins
Aging Type                 : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses      : 1
Total MAC Addresses        : 1
Configured MAC Addresses   : 1
Sticky MAC Addresses       : 0
Last Source Address:Vlan   : 842b.2b72.a576:201
Security Violation Count   : 217527
Ruel Tmeizeh

According to the info you posted, the MAC address does NOT match what is plugged in. Are you looking at a sticker on the hardware or in software that tells you the device's address? Is this a PC that is plugged in or another type of device? (The OUI is Dell, so I assume that it is a PC.) On some devices it is possible to change the MAC address of the unit. It is possible that this is what has happened. Another possiblity: does the device or PC that is plugged into the port have dual ethernet? If so, it could be the wrong port on the PC (or device) got plugged in to the switch by mistake.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes