skip to content

The Day It Denies

Once the decision lands: the segment a failed device is moved into, the first switch you still trust, and the day it refuses the laptop that would fix it. Estates stall here, not at the protocol.

on this pageshow

explore

questions

12

In DHCP snooping, which port do you trust, and does a wrong choice free a rogue or starve the rack?

level: juniorimportance: must knowfreq 70%

answer

  1. trust is a direction, not a device
  2. only one path may answer
  3. untrusted ports may ask, never answer
  4. the table is built from what passes trusted
  5. wrong trust frees a rogue or starves a rack

basics

~20 s

Trust is a direction, not a device: the switch accepts DHCP server replies only from trusted ports, normally the link toward the real server. Mark the wrong port and either a rogue keeps offering leases or the segment gets none.

solid answer

~50 s

Trust is a property of the direction, not of the device on the end of the cable. DHCP snooping gives every port one of two roles: on an untrusted port the switch forwards client requests but discards server-sourced messages such as offers and acknowledgements, and it records what the real server hands out into a binding table keyed by MAC, IP, VLAN and port. Trusted ports are exempt from both the filtering and, normally, from the neighbour-claim validation that later reads that table. So trust belongs only on the path toward the real server and to peer switches. Both mistakes hurt: trust an access port and a host on it can offer leases and answer for the gateway unchallenged while the control reports clean; leave the server path untrusted and you drop the genuine offers, so nothing renews and the rack loses off-subnet reachability as leases expire.

go deeper

for a junior

Be ready to say which way trust points and what the switch does with a DHCP server reply that arrives on an untrusted port.

for a middle

Explain what a binding records and how the trusted/untrusted split fills the table, including why a client request from an untrusted port is still forwarded.

for a senior

Show both failure directions in a real rack: a trusted access port voids the control silently, an untrusted server path starves the segment at the next renewal.

for a principal

Own the decision to exempt an aggregating uplink. Name who accepts that everything behind it is unvalidated, and what you demand in exchange for that signature.

## What "trusted" actually means DHCP snooping is a switch function that watches DHCP exchanges crossing the switch and writes down what it learns. Every port carries one of two roles. - **Untrusted**: the switch forwards client-sourced messages (a host asking for an address) but discards server-sourced messages — offers and acknowledgements. A host plugged into an untrusted port can ask for a lease, and it can never answer someone else's request. - **Trusted**: everything passes, and what the switch observes there is treated as authoritative. Trust is therefore a claim about a *direction in the topology* — "the real DHCP server is that way", or "that link goes to another switch that is already doing this job". It is not a claim that the device on the far end is well behaved, and reading it that way is the classic first mistake. ## What the switch builds from it As the real server hands out addresses, the switch records a **binding**: client MAC, assigned IP, VLAN, ingress interface, and the remaining lease. Those bindings are the only ground truth the switch has about which address legitimately lives behind which port, and two controls read them: - **Dynamic ARP inspection** examines ARP frames on untrusted ports and discards any whose sender MAC/IP pair has no matching binding. - **IP source guard** filters forwarded IP traffic whose source address does not match a binding on that port. Both are designed to skip trusted ports. That is the detail that makes trust placement a security decision rather than a plumbing one: a trusted port is exempt from the checks as well as from the filtering. ## The adversary this is aimed at One host on the segment, with nothing more than a live port, doing either of two things: answering ARP for the default gateway's address so traffic leaving the subnet passes through it first, or offering leases that name itself as gateway and resolver. Snooping plus binding-table validation is the counter — untrusted ports may ask, never answer, and may only use the address they were actually given. ## The two symmetric mistakes | Mistake | Who pays | What you see | | --- | --- | --- | | An access port marked trusted | everyone on that segment | rogue offers and gateway claims pass unchallenged, and the control's counters stay clean because nothing was ever evaluated | | The path to the real server left untrusted | the whole rack | genuine offers dropped, no host renews, and off-subnet reachability dies gradually as leases expire rather than all at once | The second failure is the reason first-hop deployments get rolled back. It is not loud at the moment of the change; it appears at the first renewal, which for most clients is halfway through the lease, so the change looks successful for hours before the rack begins to fall off. ## Where it gets hard in a data-centre fabric Two populations complicate the tidy picture. A **top-of-rack uplink carrying a hypervisor link** aggregates many guests behind one physical port. Trusting it is tempting because it makes the deployment stop breaking things, but it exempts every guest behind that link from validation: a compromised guest can then claim the gateway for the whole segment, which is precisely the attack the deployment exists to stop. The honest shape is to trust only the path to the server, keep the guest-bearing link untrusted, and accept that each guest must either lease through the switch or carry a binding. **Statically addressed appliances** — storage controllers, out-of-band management interfaces — never ask for a lease, so no binding is ever learned for them. They are not solved by trust placement at all; they need static bindings entered by hand, or they will be dropped the moment validation stops logging and starts discarding. ## What a good answer contains Say that trust points toward the server; that untrusted means "may request, may not answer"; that the table built from those exchanges is what later validation compares against; and that both directions of error are real — a wrongly trusted access port silently voids the control, while a wrongly untrusted server path starves the segment. Naming the aggregating uplink as the place the temptation to over-trust actually appears is what separates a memorised answer from an operational one.

  • Your top-of-rack uplink carries one hypervisor link with hundreds of guests behind it. Do you trust that port?
    Only if the DHCP server is genuinely reachable that way, and only knowing the cost: a trusted port is exempt from the binding checks, so any guest behind that link can offer leases or answer for the gateway and nothing on the switch will contest it. The safer shape is to trust only the path to the server, keep the guest-bearing link untrusted, and require every guest to lease through the switch or carry a binding.
  • Does a host on an untrusted port still get an address?
    Yes. Untrusted only means server-sourced messages arriving there are discarded. The client's request is forwarded normally, the reply comes back from the trusted side, and a binding is installed. The host notices nothing. What it can no longer do is answer for somebody else, because its own offers never leave the port.
  • Why is the binding table, not the trusted-port list, what actually stops a gateway claim?
    The port roles only decide who may hand out addresses. The claim is stopped by validation that reads the binding table: an ARP frame or IP packet from an untrusted port whose sender pair matches no binding is discarded. With an empty table there is nothing to compare against, so port classification on its own prevents very little.

Trust here is like a mailroom door: anyone may post a request, but only the slot wired to the real post office is allowed to deliver an answer.

saying these in an interview costs you the question

  • Says trusted means the connected device is trustworthy
  • Marks uplinks trusted so the rollout stops breaking things
  • Thinks an untrusted port cannot obtain a lease at all
  • Assumes validation still applies to traffic on a trusted port
  • Believes port roles alone block a gateway claim

context

open as a page

Why does an unreachable 802.1X authentication server lock every device out of an unstaffed site, and who benefits if you configure it not to?

level: juniorimportance: must knowfreq 62%

basics

~20 s

A switch opens a port only when the authentication server returns an accept. Silence is not an accept, so an unreachable server denies everyone. Admitting on silence instead gives a port to anyone who can cause silence.

open as a page

Which destinations must a NAC quarantine segment reach, and what does each hand an intruder?

level: juniorimportance: must knowfreq 61%

basics

~20 s

A quarantined device can only be fixed if the segment still reaches patching, name resolution, identity and a time source. Every one of those is also an open path for an intruder sitting on the device that failed the check.

open as a page

Why wait a full DHCP lease period before ARP validation drops, while a gateway claim still succeeds?

level: middleimportance: should knowfreq 55%

basics

~20 s

The binding table starts empty and learns only from DHCP exchanges the switch observes. Hosts already holding leases stay absent until they renew, at half the lease. Drop before then and their ARP is discarded: no gateway resolution.

open as a page

An 802.1X port loses its RADIUS servers: what decides how long it waits, and what happens to devices the fallback admitted?

level: middleimportance: should knowfreq 48%

basics

~20 s

The wait is the per-server retransmit count times the timeout, repeated across every configured server, so the port sits dark for that whole window before any fallback applies. Ports the fallback admitted keep that access until something forces re-authentication, and often nothing does.

open as a page

Why does re-checking NAC posture during a session cost you, and what does never re-checking hand an intruder?

level: middleimportance: should knowfreq 46%

basics

~20 s

A health check run at admission proves only that the device satisfied policy at that instant. Re-checking costs mid-session churn and support load; never re-checking leaves an authorization granted months ago standing over a device an intruder took last week.

open as a page

What does a rogue IPv6 Router Advertisement win on an IPv4-only protected segment, and what does filtering it risk?

level: seniorimportance: should knowfreq 45%

basics

~20 s

It becomes a default router for every dual-stacked host, without touching one IPv4 binding. Filtering it needs a separate control with its own permitted ports; designate the wrong ones and the real router's advertisements are dropped too.

open as a page

Your EAP server certificate expired at 03:00 and every 802.1X site is dark: why won't dead-server fallback trigger, and what break-glass path won't also admit an intruder?

level: seniorimportance: should knowfreq 38%

basics

~20 s

Because the server answered. Supplicants that validate the expired certificate abort the exchange and the server returns a reject, so the switch sees an authentication failure, not an unreachable server, and the unreachable-server fallback never applies.

open as a page

When is a per-session ACL worth its cost over a shared NAC quarantine VLAN an intruder can join?

level: seniorimportance: should knowfreq 37%

basics

~20 s

A per-session filter restricts one port without moving the device, so nothing re-addresses and failed hosts never sit together. It costs finite switch hardware entries; a shared quarantine VLAN is cheaper but pools every failed device in one broadcast domain.

open as a page

How does a remediated contractor laptop leave NAC quarantine without a link bounce, and what does the deadline override hand an intruder?

level: seniorimportance: nice to knowfreq 28%

basics

~20 s

Something must re-evaluate the device so the policy server can push a change-of-authorization swapping the restricted authorization for the production one. Where no such signal exists, the exit becomes a human override, and that exception outlives the deadline that justified it.

open as a page

What proves a DHCP binding table is complete before validation drops, and who signs for the ports where a host can still claim the gateway?

level: principalimportance: nice to knowfreq 32%

basics

~20 s

Nothing inside the table proves it. Reconcile against sources it did not build: server leases, switch MAC tables, router neighbour caches, the inventory of hosts that never lease. What stays unmatched becomes a static binding or a signed exemption.

open as a page

802.1X enforcement day: how do you get an owner to sign fail-open, admitting whoever is in the cabinet, or fail-closed, a site dark for a day?

level: principalimportance: nice to knowfreq 28%

basics

~20 s

Take it to whoever owns the sites, not the security team. Price a realistic outage per site class against what an open port reaches, recommend a different posture per class, and get the choice, the back-out and the invoker named on the change record before enforcement.

open as a page