LESSON PURPOSE Build a practical understanding of Layer 2 access-switch security by controlling which MAC addresses can use a switch port, protecting DHCP operation from rogue or invalid messages, and validating ARP traffic to reduce common local-LAN attacks. |
Lesson Overview
Layer 2 attacks occur inside the local broadcast domain, where normal switching behavior can be abused even when routing and perimeter security are correctly configured. Three important Cisco switch protections address different threats: Port Security controls endpoint MAC usage on access ports, DHCP Snooping builds a trusted DHCP binding database while filtering untrusted DHCP messages, and Dynamic ARP Inspection (DAI) validates ARP information before it is accepted and forwarded.
This lesson explains how the three features complement one another, how trusted and untrusted switch ports are selected, how the DHCP Snooping binding table is created, and how DAI uses those bindings to validate IP-to-MAC mappings. Learners also configure, verify, and troubleshoot the features using common Cisco IOS commands.
Learning Objectives
• Explain common Layer 2 access-network threats addressed by Port Security, DHCP Snooping, and Dynamic ARP Inspection.
• Configure Port Security on access ports, including maximum secure MAC addresses, static or sticky learning, aging, and violation modes (protect, restrict, and shutdown).
• Verify Port Security status, learned secure MAC addresses, violation counters, and err-disabled conditions using Cisco IOS show commands.
• Explain how DHCP Snooping separates trusted and untrusted ports and blocks inappropriate DHCP server messages received on untrusted interfaces.
• Configure DHCP Snooping globally and per VLAN, trust legitimate DHCP-facing/uplink ports, and apply rate limiting on untrusted access ports where appropriate.
• Interpret the DHCP Snooping binding table, including VLAN, client MAC address, assigned IPv4 address, lease information, and interface.
• Explain how Dynamic ARP Inspection validates ARP packets against trusted bindings to mitigate ARP spoofing/poisoning attacks.
• Configure DAI for selected VLANs, trust appropriate infrastructure links, and account for statically addressed hosts with valid static bindings or ARP ACLs when required.
• Verify DAI operation, inspection statistics, drops, trusted-port status, and the supporting DHCP Snooping database.
• Troubleshoot common Layer 2 security problems such as incorrect trusted-port placement, missing DHCP bindings, rate-limit violations, port-security shutdowns, and legitimate ARP traffic being dropped.
PORT SECURITY Controls which MAC addresses may use a switch port. | DHCP SNOOPING Validates DHCP behavior and builds the binding table. | DAI Validates ARP IP-to-MAC information using trusted data. |
Module objective: secure Layer 2 access ports against unauthorized MAC use, rogue DHCP behavior, and ARP spoofing.
How to learn this lesson: first understand what each attack looks like, then learn what information the switch trusts, and only after that study the configuration commands. Port Security answers “Which MAC addresses may use this port?”, DHCP Snooping answers “Which DHCP messages and bindings can I trust?”, and DAI answers “Is this ARP mapping believable?”
1. Layer 2 Security Overview
Layer 2 security protects the local switched network where hosts first connect. Because Ethernet switching, DHCP, and ARP operate before or alongside Layer 3 controls, an attacker on the same LAN can try to abuse MAC learning, DHCP messages, or ARP mappings even when routing and firewall policies are correctly configured.
- Port Security controls which source MAC addresses are allowed on a switch interface and how many secure MAC addresses the port may learn.
- DHCP Snooping classifies switch ports as trusted or untrusted, filters DHCP server messages, and builds a trusted IP-to-MAC binding database.
- Dynamic ARP Inspection (DAI) validates ARP messages on untrusted ports, commonly using the DHCP snooping binding database to block forged ARP information.
How the three controls complement one another
1.1 Three checkpoints at the access layer
A simple way to understand the three features is to imagine traffic passing through three security checkpoints. Each checkpoint solves a different Layer 2 problem, so the features complement one another rather than replace one another.
|
Checkpoint |
Question the switch asks |
Feature |
Typical attack stopped |
|
1 - Device identity |
Is this source MAC allowed on this access port? |
Port Security |
Unauthorized device / unexpected MAC use |
|
2 - Address assignment |
Did this DHCP server message arrive from a trusted direction, and what IP/MAC lease was learned? |
DHCP Snooping |
Rogue DHCP server / malicious gateway or DNS assignment |
|
3 - ARP validation |
Does this ARP sender IP/MAC relationship match a trusted binding? |
DAI |
ARP spoofing / ARP cache poisoning / local MITM |
Example: PC1 connects to Gi1/0/10. Port Security can restrict the port to PC1’s MAC address. DHCP Snooping then allows PC1 to obtain an address only from the legitimate DHCP path and records the lease. DAI can later use that lease information to reject an attacker that claims to own PC1’s IP address or the default gateway IP.
|
Control |
Primary risk addressed |
Core decision |
|
Port Security |
Unauthorized MAC addresses / unexpected devices |
Is this source MAC allowed on this port? |
|
DHCP Snooping |
Rogue DHCP servers / DHCP abuse |
Did a server reply arrive through a trusted port? |
|
DAI |
ARP spoofing / ARP cache poisoning |
Does this ARP sender IP/MAC binding match trusted information? |
|
Important design idea These features solve different problems. Port Security does not replace DHCP Snooping, and DHCP Snooping does not by itself stop ARP spoofing. DAI uses trusted binding information to validate ARP. |
2. Port Security
Port Security is a Layer 2 access-control feature that limits which source MAC addresses can use a switch port. It is commonly configured on user-facing access ports to reduce unauthorized device attachment, excessive MAC learning, and simple MAC-table abuse.
2.1 Secure MAC address learning methods
|
Method |
How it is learned |
Behavior |
|
Static secure MAC |
Configured manually |
Remains explicitly configured until removed. |
|
Dynamic secure MAC |
Learned dynamically |
Stored in the secure-address table; normally lost when the port or device state is reset. |
|
Sticky secure MAC |
Learned dynamically and written into running configuration |
Convenient for learning an endpoint and making the learned MAC visible in configuration; save configuration if persistence is required. |
2.2 Maximum secure MAC addresses
The maximum value controls how many secure source MAC addresses may be associated with an interface. A single-user port may use a maximum of one. A phone-plus-PC access port may need more than one secure MAC address because the IP phone and attached PC can both source frames.
|
interface GigabitEthernet1/0/10 switchport mode access switchport access vlan 10 switchport port-security switchport port-security maximum 1 |
2.3 Violation modes
|
Mode |
Violating frame |
Port state / visibility |
|
protect |
Dropped |
Port stays up; minimal violation visibility. |
|
restrict |
Dropped |
Port stays up; violation counter increments and logging/SNMP indication may occur depending on platform/configuration. |
|
shutdown (default) |
Dropped |
Interface enters secure-shutdown / error-disabled condition and requires recovery. |
2.4 Basic sticky Port Security configuration
|
interface GigabitEthernet1/0/10 description USER-PC1 switchport mode access switchport access vlan 10 switchport port-security switchport port-security maximum 1 switchport port-security mac-address sticky switchport port-security violation shutdown spanning-tree portfast spanning-tree bpduguard enable |
When PC1 sends traffic, the switch can learn its source MAC as a sticky secure address. A different source MAC on the same port can trigger the configured violation action.
2.5 Static secure MAC configuration
|
interface GigabitEthernet1/0/10 switchport port-security switchport port-security mac-address 00aa.aaaa.0001 |
2.6 Port Security aging
Secure-address aging can remove dynamically learned or sticky secure addresses after a configured period, depending on platform support and the aging type. Absolute aging counts continuously; inactivity aging counts time without traffic from the secure MAC.
|
interface GigabitEthernet1/0/10 switchport port-security aging time 10 switchport port-security aging type inactivity |
2.7 Verification and recovery
|
show port-security show port-security interface GigabitEthernet1/0/10 show port-security address show interfaces status err-disabled show interfaces GigabitEthernet1/0/10 status |
For a shutdown violation, correct the cause before recovering the port. A common manual recovery method is shutdown followed by no shutdown. Some environments configure controlled errdisable recovery, but automatic recovery should be used only when the operational policy allows it.
2.8 Port Security - what happens step by step
Step 1: The interface is configured as an access port and Port Security is enabled.
Step 2: The switch learns or is configured with one or more secure MAC addresses. With sticky learning, the first valid source MAC can become a sticky secure MAC.
Step 3: Every incoming Ethernet frame has a source MAC address. The switch compares that source MAC with the secure-MAC rules for the port.
Step 4: If the source MAC is allowed and the maximum has not been exceeded, traffic is forwarded normally.
Step 5: If a new source MAC violates the policy, the configured violation mode decides whether the frame is silently dropped, dropped and counted/logged, or the interface is put into an error-disabled state.
Step 6: After a shutdown violation, fix the endpoint/cabling issue first, then recover the interface manually or with an approved errdisable recovery policy.
Easy example: maximum 1 + sticky + shutdown. PC1 is learned as the secure MAC. If someone disconnects PC1 and plugs in a different laptop, the new source MAC does not match the secure entry, so the switch treats it as a violation and the port can become error-disabled.
2.9 Port Security configuration explained line by line
|
Command |
What it means |
|
switchport mode access |
Makes the interface a Layer 2 access port. Port Security is normally used on access ports. |
|
switchport access vlan 10 |
Places the user in VLAN 10. |
|
switchport port-security |
Enables Port Security on the interface. |
|
switchport port-security maximum 1 |
Allows only one secure source MAC address on the port. |
|
switchport port-security mac-address sticky |
Learns secure MAC addresses dynamically and records them as sticky entries. |
|
switchport port-security violation shutdown |
On a violation, places the port into the shutdown/error-disabled behavior. |
3. DHCP Snooping
DHCP Snooping protects a switched network from unauthorized DHCP server behavior. The switch distinguishes trusted ports, where legitimate server replies are expected, from untrusted ports, where clients normally connect.
3.1 Why DHCP Snooping is required
A rogue DHCP server can answer a client faster than the legitimate server and provide a malicious default gateway or DNS server. This can redirect traffic, interrupt connectivity, or support a man-in-the-middle attack. DHCP Snooping blocks DHCP server messages received on untrusted ports.
3.2 Trusted and untrusted ports
|
Port type |
Typical connection |
DHCP Snooping behavior |
|
Untrusted |
PC, phone, ordinary user/device access port |
Client messages are permitted; DHCP server replies received here are rejected. |
|
Trusted |
Uplink toward legitimate DHCP server / trusted distribution path |
Legitimate DHCP server messages are allowed. |
3.3 DHCP Snooping working process
Step 1: Client sends DHCPDISCOVER from an untrusted access port.
Step 2: The switch allows the client request and forwards it toward the legitimate DHCP server path.
Step 3: Legitimate DHCPOFFER/DHCPACK messages return on a trusted port and are allowed toward the client.
Step 4: A rogue DHCP server connected to an untrusted port sends an Offer or ACK; the switch drops the unauthorized server message.
Step 5: After a valid DHCP lease is established, the switch records a binding containing client MAC, assigned IP address, VLAN, interface, lease time, and binding type.
3.4 DHCP Snooping binding database
|
Switch# show ip dhcp snooping binding MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ -------------- ---------- ------------- ---- ---------------- 00:AA:AA:AA:00:01 192.168.10.10 83000 dhcp-snooping 10 Gi1/0/10 |
The binding database becomes an important trust source for DAI. If a DHCP client has a valid lease, DAI can compare ARP sender information against this entry.
3.5 Cisco DHCP Snooping configuration
|
ip dhcp snooping ip dhcp snooping vlan 10 ! interface GigabitEthernet1/0/1 description UPLINK-TO-TRUSTED-DHCP-PATH ip dhcp snooping trust ! interface GigabitEthernet1/0/10 description USER-PC1 switchport mode access switchport access vlan 10 ip dhcp snooping limit rate 15 |
|
Trust carefully Do not mark every port as trusted. If a user-facing port is trusted, a rogue DHCP server on that port may be able to send server messages without being blocked. |
3.6 DHCP Option 82
DHCP Snooping can use DHCP Relay Agent Information Option 82 to add switch/interface information to relayed DHCP messages. The exact insertion and server-handling behavior depends on the switch platform and DHCP design. If DHCP leases fail after enabling snooping, verify whether Option 82 handling is relevant in that environment.
3.7 DHCP Snooping - understand the decision process
DHCP Snooping does not simply “allow DHCP” or “block DHCP.” The switch looks at the direction and type of DHCP message. Client-originated messages are expected on ordinary untrusted access ports, but DHCP server messages such as DHCPOFFER and DHCPACK should normally arrive only from a trusted infrastructure path.
|
Where message arrives |
Example message |
Normal expectation |
Switch action |
|
Untrusted user port |
DHCPDISCOVER / DHCPREQUEST |
Normal client behavior |
Allow and forward toward server path |
|
Trusted uplink |
DHCPOFFER / DHCPACK |
Legitimate server reply |
Allow toward client |
|
Untrusted user port |
DHCPOFFER / DHCPACK |
Looks like a rogue DHCP server |
Drop |
Why the binding table matters: after a valid DHCP transaction, the switch can learn a trusted relationship such as IP 192.168.10.50 <-> MAC aaaa.bbbb.cccc <-> VLAN 10 <-> Gi1/0/10. DAI can later use this relationship to validate ARP packets from that client.
3.8 DHCP Snooping configuration explained line by line
|
Command |
What it means |
|
ip dhcp snooping |
Enables the DHCP Snooping feature globally. |
|
ip dhcp snooping vlan 10 |
Activates DHCP Snooping processing for VLAN 10. |
|
interface Gi1/0/24 |
Selects the known infrastructure/uplink interface toward the legitimate DHCP server. |
|
ip dhcp snooping trust |
Allows DHCP server messages to enter on this trusted interface. Use only where justified. |
|
interface Gi1/0/10 |
Selects a normal client-facing access port; it remains untrusted by default. |
|
ip dhcp snooping limit rate 15 |
Limits DHCP packet rate on the access port to help control DHCP floods or misbehaving clients. |
|
show ip dhcp snooping show ip dhcp snooping binding show ip dhcp snooping statistics show interfaces status |
4. Dynamic ARP Inspection (DAI)
ARP maps IPv4 addresses to Ethernet MAC addresses on a local LAN. ARP itself does not authenticate the sender. An attacker can therefore send forged ARP information and try to make hosts associate a legitimate IP address, such as the default gateway, with the attacker's MAC address. This is ARP spoofing or ARP cache poisoning.
4.1 How DAI works
Step 1: DAI is enabled for selected VLANs.
Step 2: User-facing interfaces remain untrusted by default for ARP inspection.
Step 3: For DHCP clients, DAI checks ARP sender information against the DHCP Snooping binding database.
Step 4: A matching IP/MAC/VLAN/interface binding is permitted; a forged or inconsistent ARP message is dropped.
Step 5: Infrastructure links that must bypass inspection can be configured as trusted, but trust should be limited to known network paths.
4.2 DAI and DHCP Snooping relationship
DAI commonly relies on DHCP Snooping bindings. Therefore, enable and verify DHCP Snooping before expecting DAI to validate dynamically addressed clients. A host using a static IPv4 address has no DHCP Snooping binding, so the design may require an ARP ACL, a trusted port, or another platform-supported static validation method.
4.3 Cisco DAI configuration
|
ip arp inspection vlan 10 ! interface GigabitEthernet1/0/1 description TRUSTED-UPLINK ip arp inspection trust ! interface GigabitEthernet1/0/10 description USER-PC1 ip arp inspection limit rate 15 |
4.4 Optional ARP validation checks
Some Cisco platforms can add extra DAI validation for ARP packet fields. These checks should be introduced carefully because unusual but legitimate ARP behavior can be rejected if the policy is too strict.
|
ip arp inspection validate src-mac dst-mac ip |
4.5 Static IP hosts with an ARP ACL
When a legitimate host uses a static address and therefore has no DHCP Snooping binding, an ARP access list can define an approved IP-to-MAC mapping on supported platforms.
|
arp access-list STATIC-HOSTS permit ip host 192.168.10.50 mac host 00cc.cccc.0050 ! ip arp inspection filter STATIC-HOSTS vlan 10 |
4.6 Verification commands
show ip arp inspection show ip arp inspection vlan 10 show ip arp inspection interfaces show ip dhcp snooping binding show logging |
4.7 ARP and DAI in simple terms
Before understanding DAI, remember what ARP does: a host knows the IPv4 address it wants to reach on the local LAN, but Ethernet forwarding needs a destination MAC address. ARP asks “Who has this IP address?” and receives a reply containing a MAC address. The weakness is that ordinary ARP does not prove that the sender is telling the truth.
|
Event |
Legitimate behavior |
Attack behavior |
|
PC asks for gateway MAC |
ARP request: Who has 192.168.10.1? |
Attacker listens to the broadcast request. |
|
Reply received |
Real gateway replies with its real MAC. |
Attacker sends a forged reply claiming 192.168.10.1 is at attacker MAC. |
|
Host ARP cache |
Stores correct gateway IP-to-MAC mapping. |
Stores false mapping and may send traffic to attacker. |
|
DAI check |
Mapping matches a trusted binding/validation rule, so ARP is forwarded. |
Mapping is inconsistent, so ARP is dropped and can be logged/counted. |
Important dependency: DAI is strongest for DHCP clients when DHCP Snooping is already working and the binding table is populated. If the client uses a static IP address, there may be no DHCP Snooping binding, so an ARP ACL or carefully designed trusted treatment may be required.
4.8 DAI configuration explained line by line
|
Command |
What it means |
|
ip arp inspection vlan 10 |
Enables DAI for VLAN 10. |
|
interface Gi1/0/24 |
Selects the infrastructure link where trusted ARP may legitimately enter. |
|
ip arp inspection trust |
Marks that interface trusted for DAI. Do not apply this broadly to user-facing ports. |
|
show ip arp inspection |
Shows DAI status and configured VLANs/interfaces. |
|
show ip arp inspection statistics |
Shows forwarded/dropped ARP counters and helps identify validation failures. |
5. Integrated Layer 2 Security Design
A secure access-layer design can apply all three features together. Port Security controls endpoint MAC use, DHCP Snooping validates DHCP direction and builds bindings, and DAI validates ARP against those bindings.
Recommended implementation order
Step 1: Confirm VLANs, trunks, access ports, DHCP server reachability, and normal client addressing before enabling security controls.
Step 2: Configure Port Security on selected user-facing access ports and verify the expected secure MAC behavior.
Step 3: Enable DHCP Snooping globally and for the required VLANs.
Step 4: Trust only the infrastructure uplink(s) through which legitimate DHCP server replies arrive.
Step 5: Renew client DHCP leases and verify the DHCP Snooping binding table.
Step 6: Enable DAI for the VLAN and trust only appropriate infrastructure ports.
Step 7: Test legitimate ARP communication, rogue DHCP behavior, and ARP spoofing scenarios in a controlled lab.
5.1 End-to-end client journey - how all three features work together
Step 1: PC1 connects to Gi1/0/10. Port Security checks the source MAC and allows it if it matches the secure policy.
Step 2: PC1 has no IPv4 address yet, so it sends DHCPDISCOVER. The client access port is untrusted for DHCP Snooping, but client-originated DHCP messages are expected and allowed.
Step 3: The request travels toward the trusted uplink and legitimate DHCP server.
Step 4: DHCPOFFER/DHCPACK returns through the trusted DHCP Snooping interface. A rogue server reply arriving on a normal access port would be dropped.
Step 5: After the lease completes, DHCP Snooping stores the client binding: IP, MAC, VLAN, interface, and lease information.
Step 6: PC1 now needs the default gateway MAC, so it sends an ARP request.
Step 7: DAI checks ARP messages on untrusted ports. A valid mapping that agrees with trusted information is forwarded; a forged IP/MAC claim is rejected.
Step 8: Normal user traffic continues. If an unauthorized endpoint, rogue DHCP server, or forged ARP appears, the appropriate Layer 2 control acts at the access layer.
5.2 What each feature does - and does not do
|
Feature |
Protects against |
Does not replace |
|
Port Security |
Unexpected source MAC addresses and excessive MAC learning on an access port |
DHCP Snooping or DAI; an allowed MAC could still send malicious DHCP/ARP traffic |
|
DHCP Snooping |
Rogue DHCP server messages and untrusted DHCP bindings |
Port Security; it does not validate every ARP packet by itself |
|
DAI |
Forged ARP sender mappings and ARP cache-poisoning attempts |
DHCP Snooping binding creation or endpoint MAC restrictions |
|
! Global / VLAN controls ip dhcp snooping ip dhcp snooping vlan 10 ip arp inspection vlan 10 ! ! Trusted infrastructure uplink interface GigabitEthernet1/0/1 description UPLINK-TO-DISTRIBUTION ip dhcp snooping trust ip arp inspection trust ! ! User access port interface GigabitEthernet1/0/10 description PC1 switchport mode access switchport access vlan 10 switchport port-security switchport port-security maximum 1 switchport port-security mac-address sticky switchport port-security violation shutdown ip dhcp snooping limit rate 15 ip arp inspection limit rate 15 spanning-tree portfast spanning-tree bpduguard enable |
6. Packet Processing
|
Event |
Port Security |
DHCP Snooping |
DAI |
|
PC sends ordinary data with approved MAC |
Permit if secure MAC policy matches |
Not a DHCP decision |
Not an ARP decision |
|
Unknown MAC appears on a secured access port |
Violation action is applied |
Independent |
Independent |
|
Client sends DHCPDISCOVER |
MAC must satisfy Port Security |
Allowed from untrusted client port |
Not an ARP decision |
|
Rogue server sends DHCPOFFER from user port |
May or may not match MAC policy |
Dropped because server message arrived on untrusted port |
Not an ARP decision |
|
Client sends valid ARP after DHCP lease |
MAC must satisfy Port Security |
Binding already learned from DHCP |
ARP validated against binding |
|
Attacker sends forged ARP for gateway IP |
MAC policy alone may not identify IP forgery |
Not a DHCP message |
Dropped if ARP does not match trusted binding/policy |
7. Troubleshooting Workflow
Begin with a simple question: “Which feature made the forwarding decision?” If the port itself is down/error-disabled, start with Port Security. If the client cannot obtain an address, start with DHCP Snooping and the trusted server path. If the client has an IP address but loses local IPv4 reachability after DAI is enabled, check the DHCP binding and ARP inspection counters.
|
Symptom |
First thing to check |
Why |
|
Port becomes error-disabled after a new device is connected |
show port-security interface |
Likely Port Security violation or maximum exceeded |
|
Client cannot obtain DHCP lease |
show ip dhcp snooping; trusted uplink; DHCP counters |
Legitimate server replies may be arriving on an untrusted port or rate-limited |
|
Client gets lease but cannot ARP/ping gateway after DAI |
show ip dhcp snooping binding; show ip arp inspection statistics |
DAI may not find a valid binding or may be dropping inconsistent ARP |
|
Static-IP host fails only after DAI is enabled |
ARP ACL/static validation/trust design |
Static host has no DHCP Snooping binding by default |
Troubleshoot in layers. First confirm physical/interface state and VLAN assignment, then inspect the feature that is expected to make the forwarding decision.
7.1 Port Security troubleshooting
- Check show port-security interface to confirm maximum, violation mode, violation count, and port status.
- Check show port-security address to confirm which secure MAC addresses are installed.
- If the interface is error-disabled, identify the unexpected MAC source before recovering the interface.
- For phone-plus-PC ports, verify that the configured maximum is large enough for the intended devices.
7.2 DHCP Snooping troubleshooting
- Verify DHCP Snooping is enabled globally and for the correct VLAN.
- Verify the legitimate DHCP server reply path is trusted.
- Do not trust user-facing ports.
- Check rate limiting if DHCP packets are being dropped under load.
- Inspect the binding table after a successful DHCP lease. If the binding is missing, DAI may reject the client's ARP later.
- If DHCP stops working after snooping is enabled, inspect logs/statistics and consider Option 82 behavior where relevant.
7.3 DAI troubleshooting
- Confirm DAI is enabled for the correct VLAN.
- Verify the DHCP Snooping binding exists for dynamically addressed hosts.
- Confirm trusted infrastructure ports are correctly identified, but avoid over-trusting.
- For static-IP endpoints, provide the required static ARP validation method or appropriate trusted design.
- Check ARP inspection counters/logs for dropped packets and rate-limit events.
Common symptoms and likely causes
|
Symptom |
Likely cause |
What to verify |
|
Port immediately becomes error-disabled after device change |
Port Security shutdown violation |
Secure MAC table, maximum, violation count |
|
Clients stop receiving DHCP addresses |
Legitimate server path is untrusted; rate limit; VLAN not enabled; Option 82 issue |
show ip dhcp snooping / statistics / uplink trust |
|
DHCP works but clients cannot reach gateway after DAI is enabled |
Missing/incorrect snooping binding or static client not represented |
Binding table and ARP inspection logs |
|
Rogue DHCP still succeeds |
Rogue-facing port is trusted or snooping not enabled for VLAN |
Global/VLAN snooping state and trusted ports |
|
ARP spoofing still succeeds |
DAI not enabled for VLAN or attacker path is trusted |
DAI VLAN state and interface trust |
Quick knowledge check
1. Which Port Security violation mode error-disables the interface by default?
Answer: Shutdown.
2. What is the purpose of switchport port-security maximum?
Answer: It limits the number of secure MAC addresses allowed on the interface.
3. Which DHCP Snooping port type should face ordinary user devices?
Answer: Untrusted.
4. If a rogue DHCP server is connected to an untrusted port, what should happen to its Offer/ACK messages?
Answer: DHCP Snooping should drop the unauthorized server messages.
