Port Security
Also: switchport port-securitysticky MACsticky MAC addresssecure MAC addresssecure MAC addresses
Limits which and how many source MAC addresses may use a switch port; the default maximum is 1 and the default violation action is shutdown (err-disabled). Sticky learning saves dynamically learned MACs to the running-config, and it only works on ports statically set to access or trunk.
NetworkChuck1
- Day 14 you NEED to learn Port Security…….RIGHT NOW!!
Port SecurityA Layer 2 security feature on Cisco switches that restricts input to an interface by limiting and identifying MAC addresses of the stations allowed to access the port.
13:32It's actually pretty cool. Now, configuring port security does have a few steps. I encourage you to go check out Bzon's lab here, NetSim. They have two labs, security 1, security 2, and then one called troubleshooting po…
Said 25×
Jeremy's IT Lab7
- Day 49 Port Security
Port SecurityA Cisco switch feature that controls which source MAC addresses, and how many, may enter a port. Defaults: 1 MAC, violation mode shutdown, no aging. It needs a statically configured access or trunk port. Sticky learning (switchport port-security mac-address sticky) writes learned MACs to the running config.
3:51There are two ways to enable an interface that has been disabled by port security, but I'll cover those later. Okay, let's cover a few more points about port security.
Said 95× - Day 49 Lab Port Security
Port SecurityConfigured on SW1's PC ports with defaults plus a 60-minute aging time, and on SW2's uplink with restrict mode, maximum 4 and sticky learning. It needs switchport mode access or trunk first.
1:23By default, the violation mode is shutdown, and the maximum number of MAC addresses allowed is also 1. Sticky MAC address learning is also disabled by default, so we don’t have to configure any of those.
Said 22× - Mega Lab Complete Network Configuration
128:23…nd apply an extended ACL to limit traffic from Office A’s PCs to Office B’s PCs in step 1, and then configure Port Security, DHCP Snooping,
Said 10× - Day 50 DHCP Snooping
15:07If the rate of DHCP messages crosses the configured limit, the interface is err-disabled. Then, similar to port security, the interface can be manually re-enabled with SHUTDOWN and then NO SHUTDOWN, or automatically re-e…
Said 4× - Day 42 SSH
1:57First console Port security by default no password is needed to access the CLI of a Cisco IOS device via the console Port you can take a new device out of the box use a console cable to connect your laptop to it.
Said 3× - Day 51 Dynamic ARP Inspection
0:23…ic 5.7, which says you must be able to configure Layer 2 security features, including DHCP snooping, DAI, and port security.
Said 2× - Day 52 LAN Architectures
5:48Security services like port security, DAI, etc are typically performed here, too. Also, switchports might be PoE, Power over Ethernet-enabled if there are wireless access points or IP phones in the LAN.
Said 2×
Related terms
Flashcards that test it
NetworkChuckWhat are the three Port Security violation modes on a Cisco switch?
1. Shutdown (err-disables port, sends SNMP log) 2. Restrict (drops unauthorized traffic, sends SNMP log) 3. Protect (drops unauthorized traffic silently)
NetworkChuckHow do you recover a switch port that has been err-disabled by a port security violation?
Enter interface configuration mode, execute the `shutdown` command, followed by `no shutdown` to re-enable the port.
Jeremy's IT LabWith default port security settings, how many MAC addresses are allowed and how is the MAC chosen if you do not configure one?
One. The switch allows the first source MAC address that enters the interface.
Jeremy's IT LabWhy is switchport port-security rejected on a port with default settings?
The port is in DTP dynamic auto mode. Port security needs a static access or trunk port (switchport mode access or switchport mode trunk).
Jeremy's IT LabWhich command shows a port's port security status, violation mode, maximum MACs and violation count?
show port-security interface <interface> (for example, show port-security interface g0/1)
Jeremy's IT LabIn show port-security interface, what port status appears after a shutdown-mode violation?
Secure-shutdown (show interfaces status shows err-disabled).
Jeremy's IT LabWhich command enables automatic recovery of ports err-disabled by port security, and what is the default interval?
errdisable recovery cause psecure-violation. The default interval is 300 seconds (change it with errdisable recovery interval <seconds>).
Jeremy's IT LabIn port security restrict mode, what happens when an unauthorized frame arrives?
The frame is discarded, the port stays up, a Syslog/SNMP message is generated, and the violation counter increments for each violation.