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: keeping unauthorised devices off the network

Lesson 2.299 minBeginnerNovember 3, 2026

Sign in to read this lesson

By default a switch learns any number of MACs on a port and allows them all. With port security you can set how many MACs a port allows (maximum) or which MAC addresses are allowed. When the rule is broken (a violation), the default shutdown mode puts the port into the err-disabled state. You can follow the violation with log messages, show port-security interface and Wireshark.

What you will learn

  • By default there is no limit on the number of MACs learned on an interface, and every MAC is allowed. A cheap switch brought from home shows several MACs on one port.
  • Port security only works on an access port: switchport mode access → switchport port-security → switchport port-security maximum 1.
  • switchport port-security mac-address aaaa.bbbb.cccc allows only that MAC (MAC filtering).
  • When an unauthorised MAC arrives, a violation happens. In the default shutdown mode the port goes err-disabled: down/down (err-disabled), with %PM-4-ERR_DISABLE and PSECURE_VIOLATION messages in the log.
  • show port-security interface fa0/1: Port Status (Secure-shutdown), Violation Mode, Maximum MAC Addresses, Last Source Address (the MAC that caused the violation) and Security Violation Count.

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