ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Port security: err-disable recovery, sticky and violation modes

Lesson 2.309 minBeginnerNovember 3, 2026

Sign in to read this lesson

To bring an err-disabled port back by hand, you type shutdown and then no shutdown; no shutdown alone is not enough. For automatic recovery you use errdisable recovery cause psecure-violation (and errdisable recovery interval). The sticky keyword makes the switch learn the first MAC it sees on the port and write it into the running-config. There are three violation modes: protect (drops quietly), restrict (drops, logs and sends an SNMP trap) and shutdown (puts the port in err-disabled).

What you will learn

  • Bringing an err-disabled port back by hand: shutdown → no shutdown. no shutdown alone is not enough. Fix the cause of the violation first, or the port will shut again.
  • Automatic recovery: errdisable recovery cause psecure-violation; the delay is set with errdisable recovery interval <seconds> (default 300 s). switchport port-security aging time is something else: how long secure MACs stay in the table.
  • switchport port-security mac-address sticky: the switch learns the first MAC it sees on the port and writes it into the running-config as mac-address sticky 000c.2928.5c6c. If you do not save it (copy run start), it is lost after a reload.
  • Violation modes: protect quietly drops unauthorised frames (no log, counter does not rise); restrict drops them, writes a log, sends an SNMP trap and increments the counter; shutdown (default) puts the port in err-disabled and sends a log and SNMP trap.
  • In protect and restrict, the allowed MAC's traffic keeps working; only shutdown closes the whole port, including the allowed device.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.