Switchport Security Configuration
Tuesday, September 28, 2021 2:44 PM
- switchport port - predefine any allowed source MAC addresses for this interface. - security mac-address mac-address
- tell the switch to “sticky learn” dynamically learned MAC addresses.
- Port security does not save the configuration of the sticky addresses - use the copy running-config startup-config command if desired.
- voice ports-
- the port security configuration should be placed on the portthan the individual physical interfaces in the channel. -channel interface, rather
- EtherChannels
Verifying Port Security
- provides the most insight to how port security operates
- lists the configuration settings for port security on an interface
-
- Port Security: EnabledPort Status: Secure-shutdown
-
- Violation mode: shutdownMaximum MAC Addresses : 1
- Last source Address:VLAN: 0013:197b:5004 1
-
- includes information about any security violations
-
- Port Security: EnabledPort Status: Secure-shutdown
-
- Violation Mode: ShutdownMaximum MAC Addresses: 1
- Sticky MAC Addresses: 1
- Last Source Address: Vlan 0013:197b:5004 1
Port Security MAC Addresses
-
-
- Port security ports
- Discard frame
-
- Discard frameSend log and snmp messages
- increment violation counter
- Discard frame
-
- Send log and snmp messagesincrement violation counter
- Puts interface into err-disabled state, discarding all traffic
Port Security Violation Modes
Shutdown Mode
- interface must be shut down with the shutdown command and then enabled with the no shutdown command.
- recover from an err-disabled state
- automatically recover from the err-disabled state:
- automatic recovery for interfaces in an err-disabled state caused by port security
-
-
-
- notes the number of times the interface has been moved to the errshutdown) state. -disabled (secure-
- while errafter shutdown/no shutdown, another violation that causes the interface to fail to an err-disabled, many frames can arrive, but the counter remains at 1. -
disabled state will cause the counter to increment to 2.
-
Protect and Restrict Modes
still discard offending traffic, but the interface remains in a connected (up/up) state and in a port
security state of secure-up.
-
- port continues to forward good traffic but discards offending traffic.
-
- discard the frame.does not change the port to an err-disabled state
- does not generate messages
- does not even increment the violations counter
-