Port security: err-disable recovery, sticky and violation modes
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 shutdownalone 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 witherrdisable recovery interval <seconds>(default 300 s).switchport port-security aging timeis 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 asmac-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.