Network Security Interview Questions

Reviewed by Mark Dickie · Last updated

12 questions on this page you can answer and see marked on the spot. Go to the first one

Network security is the practice of protecting computer networks and the data they carry from unauthorized access, misuse, or disruption. For interviews, you should be comfortable with the OSI and TCP/IP models, common attack vectors (MITM, DDoS, spoofing, replay), and the controls that defend against them — firewalls, IDS/IPS, VPNs, segmentation, and cryptographic protocols like TLS and IPsec. You will also be asked about authentication mechanisms, key exchange, and how to reason about defense-in-depth as a layered strategy rather than a single appliance.

Most network security interviews blend conceptual questions with scenario-based reasoning. Expect to explain how a SYN flood works and how SYN cookies mitigate it, compare symmetric and asymmetric encryption, or walk through what happens during a TLS handshake.

Topic AreaWhat Gets TestedCommon Question Types
OSI / TCP/IP modelWhich layer handles X; protocol-to-layer mapping"At which OSI layer does ARP operate?"
Firewalls & ACLsStateful vs. stateless, rule ordering, default-deny"How does a stateful firewall differ from a packet filter?"
CryptographySymmetric vs. asymmetric, hashing, key exchange"Explain the difference between AES and RSA"
Attack vectorsMITM, DDoS, spoofing, replay, VLAN hopping"How does ARP spoofing work and how do you prevent it?"
VPN & tunnelingIPsec modes, TLS VPNs, split tunneling"Compare IPsec transport mode and tunnel mode"
IDS / IPSSignature vs. anomaly detection, placement"Where would you place an IPS relative to a firewall?"

What does a network security interview typically cover?

  1. Protocol-level fundamentals: IP, TCP, UDP, ARP, DNS, and how each can be abused.
  2. Cryptographic building blocks: encryption algorithms, hashing, digital signatures, and PKI.
  3. Perimeter and internal defenses: firewalls, network segmentation, NAC, and zero-trust principles.
  4. Detection and response: IDS/IPS, SIEM correlation, log analysis, and incident handling workflow.
  5. Secure architecture: VPN design, bastion hosts, DMZ layout, and least-privilege network access.

How should you approach scenario-based network security questions?

Interviewers want to see structured reasoning, not a memorized checklist. Start by identifying the threat model — who is the attacker, what is the asset, and what is the attack surface. Then propose layered controls and explain why each one matters at its respective layer. If the scenario involves a misconfigured service, walk through the traffic path step by step: what reaches the host, what the firewall allows, what the application accepts, and where logging would catch the anomaly.

Key facts

  • Tarmac has 214 Network Security interview questions on this topic, 25 of them on this page, at difficulty 1–5 of 5.
  • Tarmac tracked 865 job postings asking for Network Security in September 2026.
  • Roles asking for Network Security advertise a median base salary of A$125,000, across 141 job postings as of September 2026.
  • Tarmac last reviewed these Network Security interview questions on 20 October 2026.

At a glance

Questions25 shown · 214 in the bank
Difficulty1–5 of 5
FormatsMultiple choice, Ordering, Design exercise, True / false, Short answer, Multiple answer, Fill in the blank, Flashcard

What you'll review

  1. bgp path selection
  2. sd wan concepts
  3. dhcp lease process
  4. peering and transit
  5. ip address management

Practice questions

Try one before you open the answer. Pick an option and press Check; it's marked on the spot.

On a Cisco router running BGP, which attribute is evaluated first (highest priority) in the BGP best-path selection process?#

Options

Show answer

Weight is the first attribute evaluated in the Cisco BGP best-path selection process. It is a Cisco-proprietary, router-local value (not advertised to neighbors) that defaults to 0 for learned routes and 32768 for locally originated routes, so it takes precedence over Local Preference, AS_PATH length, and MED.

Why:

In the Cisco BGP best-path decision process, Weight is the very first attribute evaluated. Weight is Cisco-proprietary, local to the router (not advertised to neighbors), and defaults to 0 for learned routes and 32768 for locally originated routes. Because it is checked before Local Preference, AS_PATH, and MED, a higher Weight always wins regardless of those attributes.

Order the steps an SD-WAN edge follows when the active WAN path degrades and traffic must fail over to an alternate link. Place the steps in the order they actually occur from detection to recovery.#

Put these in order

Show answer

When an SD-WAN WAN path degrades, the edge follows a strict sequence: detect the SLA breach (latency, loss, or jitter), mark the path as unavailable, recompute the next-best eligible path per forwarding policy, then redirect traffic to the alternate link. Detection must precede the health-status change, which must precede re-computation and the actual traffic redirect.

Why:

SD-WAN failover is a strict detect-then-react sequence: the edge first measures a real SLA violation on the in-use path, then flips that path's health flag so it is excluded from the candidate pool, then re-evaluates remaining paths against policy and SLA to pick the next best, and only then moves traffic onto the new path. Skipping detection would cause spurious flaps; skipping the health-status update would leave the degraded path eligible for re-selection.

Order the steps in the SD-WAN data-plane traffic-steering decision for a single packet flow, from the moment the flow is first seen to when it is sent out an overlay tunnel.#

Put these in order

Show answer

SD-WAN traffic steering follows a fixed pipeline for each flow: classify the application, match it against forwarding policy, evaluate the real-time SLA metrics of candidate WAN paths, select the best-eligible path, and then forward packets over the chosen overlay tunnel. Each step depends on the prior step's output, so the order is strictly sequential.

Why:

SD-WAN traffic steering follows a pipeline: a flow must first be identified by classifying the flow by application or protocol signature before any policy can apply to it, matching the classified flow against centralized forwarding-policy rules narrows the set of eligible paths, those eligible paths are then scored against live SLA telemetry by evaluating the real-time SLA metrics of the candidate WAN paths, the highest-scoring path is chosen by selecting the best-eligible path based on policy and SLA, and only then are packets encapsulated and sent by forwarding packets over the selected overlay tunnel. Each step depends on the output of the previous one, so no reordering is valid.

Order the stages a new SD-WAN edge device goes through during zero-touch provisioning (ZTP), from first power-on to passing production traffic.#

Put these in order

Show answer

During SD-WAN zero-touch provisioning, a new edge device boots and obtains IP/DNS via DHCP, contacts the ZTP server or orchestrator URL, authenticates using its serial number or certificate, downloads its full configuration and forwarding policy, then establishes IPsec overlay tunnels to peer edges and begins forwarding traffic. Each stage depends on the previous one completing successfully.

Why:

ZTP onboarding is a bootstrap chain: the device needs network connectivity first, which lets it reach the orchestrator URL; it must prove its identity before the orchestrator will push anything; only then does it receive its configuration and policy; and finally it uses that configuration to bring up overlay tunnels and start carrying traffic. No step can succeed without the prior one completing.

You are designing a DHCP server setup for a new 200-employee office with a single flat /24 subnet. Sketch how the DHCP lease process works end-to-end from the moment a client device connects, including the four message exchange, your recommended lease duration and the reasoning for it, and how lease renewal and release are handled. Provide a concise design summary.#

Show answer

Design summary: We run a single DHCP server (with a secondary as backup) on the office /24 subnet. When a client first connects, it broadcasts a DHCPDISCOVER to find a server. The server responds with a DHCPOFFER proposing an IP address, lease duration, and gateway/DNS options. The client replies with a DHCPREQUEST, confirming it wants that offered address (and implicitly declining other offers). The server finalizes with a DHCPACK, and the client configures its interface.

Lease duration: I recommend 8 hours. The office has moderate device churn (laptops, guest phones) but not enough to justify very short leases. Eight hours means a disconnected device's address is reclaimable within a workday, while renewal traffic stays negligible — a client renews only once every 4 hours at T1.

Renewal: At 50% of the lease (T1 = 4 hours), the client unicasts a DHCPREQUEST to the server that originally granted the lease. If that server acknowledges, the lease is extended and the timer resets. If the server is unreachable at T1, the client waits until T2 (87.5% ≈ 7 hours) and then broadcasts a DHCPREQUEST to reach any available DHCP server. If no server responds before the lease expires, the client must stop using the address and start a fresh DHCPDISCOVER.

Release: When a device shuts down gracefully or disconnects, it sends a DHCPRELEASE (unicast to the original server). The server immediately marks the address as available in the pool. If a device disappears without releasing, the address is reclaimed automatically when the lease expires.

Why:

This is a junior-level recall and applied-basics design question centered on the standard DHCP DORA exchange, lease timing, and renewal/release mechanics. The rubric rewards naming the four messages in order, justifying a concrete lease duration for the given scenario, describing T1/T2 renewal behavior, and mentioning DHCPRELEASE. Each criterion is independently scoreable.

You manage DHCP for a campus with three buildings, each on its own subnet (Building A = 192.168.10.0/24, Building B = 192.168.20.0/24, Building C = 192.168.30.0/24). Each building has roughly 150 devices. Design how DHCP addressing and lease management should work across the three subnets. Cover: how a single central DHCP server serves clients on all three subnets (the relay mechanism), how you allocate the address pool within each /24 (reserved vs dynamic ranges), and what lease duration you choose for this campus scenario with justification.#

Show answer

Design summary: A single central DHCP server (with a failover peer) serves all three building subnets. Each building's router is configured as a DHCP relay agent so it can forward broadcast DHCPDISCOVER messages from local clients to the central server as unicast, and relay responses back.

Relay mechanism: When a client in Building B broadcasts a DHCPDISCOVER, the local router intercepts it (because it is the default gateway and a configured relay agent). The router places its own interface IP — 192.168.20.1 — in the giaddr field of the relayed message and unicasts it to the central DHCP server. The server reads giaddr, determines the requesting subnet is 192.168.20.0/24, and selects an address from Building B's pool. The offer/ack are relayed back through the router to the client. The same applies for Buildings A and C.

Address pool allocation (per building): I would reserve the bottom of each /24 for infrastructure devices and the top for the dynamic pool. For example, in Building A (192.168.10.0/24): reserve 192.168.10.1–192.168.10.50 for the gateway, switches, APs, printers, and servers; allocate 192.168.10.100–192.168.10.200 as the dynamic pool for end-user devices; leave 192.168.10.201–192.168.10.254 as a growth buffer. Apply the same pattern to Buildings B and C.

Lease duration: I recommend 12 hours. With ~150 devices per building and moderate daily turnover (staff arriving and leaving), 12 hours ensures addresses from departed devices are reclaimed within half a day, while renewal traffic is minimal — each client renews once at T1 (6 hours) during a typical work session.

Why:

This is a junior-level applied-basics design question testing knowledge of DHCP relay agents (giaddr), per-subnet pool allocation with static/dynamic ranges, and lease duration justification. The rubric independently scores the relay mechanism, pool split, lease justification, and the giaddr subnet-identification detail. Each criterion has a concrete, checkable requirement.

In inter-domain routing, a transit relationship means one network agrees to carry traffic between two other networks (for example, forwarding packets from one customer to another network's customer), typically in exchange for payment.#

Options

Show answer

True. A transit relationship means one network carries traffic between two other networks, typically for payment. The transit provider advertises routes learned from one customer to others, providing end-to-end reachability that a direct peering link would not.

Why:

A transit provider sells reachability: it advertises routes learned from one customer to its other customers and peers, thereby carrying traffic between networks that are not directly connected. This is the defining feature of a transit relationship and is commonly billed.

In a settlement-free peering relationship, each network is obligated to forward the other's traffic onward to third-party destinations beyond their respective customer cones.#

Options

Show answer

False. Settlement-free peering generally limits each network to exchanging traffic only between its own customers. Neither peer is obligated to carry the other's traffic onward to third-party destinations — that broader reachability is what a transit relationship provides, usually for payment.

Why:

Settlement-free ("no-transit") peering typically restricts each party to exchanging traffic only between their own customers. Neither side is required to carry the other's traffic to destinations beyond its customer cone; providing such onward reachability is the role of a transit provider, not a peer.

In inter-domain BGP routing, what distinguishes a transit relationship from a settlement-free peering relationship? Describe the key behavioral difference in how routes are advertised to each neighbor type.#

Show answer

In a transit relationship, the provider advertises to its customer a full table of routes (the customer gets reachability to the whole internet through the provider), and the customer pays the provider for that service. In a settlement-free (peer) relationship, each party only advertises its own routes and its customers' routes to the other party—neither side carries the other's traffic to third-party destinations. So a peer will not forward traffic received from one peer to another peer; it only exchanges traffic that originates from or is destined for each network's own address space.

Why:

The defining distinction is route advertisement scope: a transit provider gives a customer reachability to the entire internet (full table), whereas a settlement-free peer only exchanges each network's own and customers' prefixes. A transit customer pays for that full reachability; peers do not pay each other but agree not to transit traffic for each other.

In Cisco's BGP best-path selection algorithm, which attribute is evaluated FIRST to choose between two competing BGP routes for the same prefix?#

Options

Show answer

Weight is the first attribute evaluated in Cisco's BGP best-path selection process. It is a Cisco-proprietary, locally significant value (never advertised to neighbors), so the route with the highest Weight is always preferred before Local Preference, AS_PATH length, Origin, or MED are even considered.

Why:

In the Cisco BGP best-path decision process, Weight is the very first attribute evaluated. Weight is Cisco-proprietary, local to the router (not advertised), and the route with the highest Weight wins before Local Preference, AS_PATH length, Origin, MED, or any later step is considered.

A regional ISP currently buys full transit from a single upstream provider but starts exchanging traffic directly with a large content network via a settlement-free interconnect at an internet exchange point (IXP). After this change, what will the ISP's BGP policy do with routes learned from that content peer, and why does this reduce the ISP's transit costs?#

Show answer

The ISP will install the content network's prefixes learned over the settlement-free peering link as the preferred path (e.g., via local-pref), so traffic destined for that content network is sent directly over the peering interconnect instead of through the paid transit link. Because that traffic no longer traverses the transit provider's network, the ISP avoids the per-Mbps or 95th-percentile billing for that volume on its transit port, reducing overall transit costs.

Why:

By learning the content network's prefixes directly at the IXP and raising local-pref on those routes, the ISP sends that traffic over the free peering link rather than the paid transit link. The volume no longer counts against the ISP's transit commitment, directly lowering its transit bill.

Router R1 receives two eBGP routes for prefix 10.0.0.0/8:#

Options

Show answer

Route A is selected as best. In BGP path selection, Weight is checked first (both are 0 here), then LOCAL_PREF. Since Route A's LOCAL_PREF of 200 exceeds Route B's 100, the decision is made at that step and the shorter AS_PATH on Route B is never evaluated.

Why:

In the BGP best-path order, Weight is evaluated first. Both routes have Weight 0, so the algorithm moves to the next step: LOCAL_PREF. Route A has LOCAL_PREF 200, which is higher than Route B's 100. Because LOCAL_PREF is evaluated before AS_PATH length, the tie is already broken at this step and AS_PATH length is never consulted. Route A is selected as best.

What is a Tier 1 network in the context of global BGP routing, and what does it mean for such a network to be 'transit-free'?#

Show answer

A Tier 1 network is a large provider-level network that can reach every other network on the internet without purchasing IP transit from any other provider. Being 'transit-free' means the network does not pay any upstream for reachability; instead it maintains settlement-free peering relationships with all other Tier 1 networks, and together the set of Tier 1 peers forms the default-free zone (DFZ) of the internet routing table.

Why:

A Tier 1 network reaches the entire internet through settlement-free peering with other Tier 1s and its own customers, without buying transit from anyone. This makes it 'transit-free'—it has no upstream provider and sits at the top of the hierarchical internet routing structure.

In BGP interdomain routing, a settlement-free peering relationship typically imposes a constraint on the routes each party advertises to the other that a paid IP transit relationship does not. What is this constraint, and what routing principle does it enforce?#

Show answer

Each peer advertises only its own (and its customers') prefixes to the other peer — not the full global routing table or routes learned from other peers or upstream transit providers. This enforces the valley-free routing (no-transit) principle: a peer must not carry traffic between two other networks as a transit hop, since it is not compensated for providing transit.

Why:

Settlement-free peers exchange traffic only for destinations each network directly originates or serves through its own customers. Neither peer provides transit for the other's upstream or lateral traffic, because neither is paid to do so. This restriction is what distinguishes peering from transit (where the transit provider carries the customer's traffic to and from the entire Internet) and is the practical enforcement of the valley-free routing principle, which forbids a path from going 'up' through a provider or peer and then back 'down' through another provider or peer.

In the BGP best-path selection process, for which of the following attributes is a LOWER value preferred over a higher value? Assume we are comparing two paths that have already tied on all higher-priority attributes.#

Options

Pick every one that applies.

Show answer

BGP prefers a lower value for MED, Router ID, and AS_PATH length. MED (lower wins), Router ID (lowest wins as a tiebreaker), and AS_PATH length (shorter wins) all favor smaller values. Weight and Local Preference, by contrast, prefer higher values — a higher weight or local preference is more preferred.

Why:

BGP prefers lower values for MED (lower MED wins), Router ID (lowest router-ID wins as a tiebreaker), and AS_PATH length (shorter path with fewer AS segments wins). In contrast, both Weight and Local Preference prefer HIGHER values — a higher weight or higher local preference is more preferred. These directionality rules are fixed in the BGP specification and are not configurable.

In SD-WAN architecture, the IPsec tunnels established between WAN edge routers create a virtual logical network known as the _____, which is built on top of the physical _____ transports such as MPLS, broadband internet, and cellular links. This separation allows the control plane to manage path selection independently from the underlying physical media.#

Show answer

In SD-WAN architecture, the IPsec tunnels established between WAN edge routers create a virtual logical network known as the overlay, which is built on top of the physical underlay transports such as MPLS, broadband internet, and cellular links. This separation allows the control plane to manage path selection independently from the underlying physical media.

Why:

SD-WAN terminology universally distinguishes the overlay (the logical network of IPsec tunnels between edge devices) from the underlay (the physical WAN transports that carry those tunnels). The overlay abstracts away the specific transport technologies so that the SD-WAN control plane can steer traffic across any combination of underlay links based on application SLA requirements.

In BGP inter-domain routing, what distinguishes a peering relationship from a transit relationship in terms of the route advertisement scope each side provides to the other?#

Show answer

In peering (typically settlement-free), each party advertises only its own prefixes and those of its own customers to the other — it does not carry the peer's traffic onward to the rest of the Internet. In transit, the provider advertises a full Internet routing table to the customer and carries the customer's traffic to any destination, in exchange for payment. Peering exchanges reachability between two networks' customer cones; transit provides global reachability.

Why:

This is the fundamental economic and routing distinction in the Internet's inter-domain architecture. Peering is mutual exchange of customer routes; transit is a paid service providing full-table reachability. The scope of route advertisements (customer cone vs. full table) is the defining technical difference.

What is a BGP route leak, and which routing-policy principle does it violate?#

Show answer

A route leak occurs when a network advertises routes learned from one provider or peer to a different provider or peer — effectively offering to carry traffic it has no business carrying. It violates the valley-free routing principle, which states that traffic may traverse customer→provider, provider→customer, or peer→peer links, but must never go 'down' to a provider and then back 'up' to another provider (forming a valley). Route leaks typically result from misconfigured BGP export (announcement) policies.

Why:

Route leaks are a major class of BGP incidents. The valley-free principle captures the hierarchical, business-relationship-driven structure of Internet routing: a path may go up through providers, across at most one peer link, then down through customers — never up again after going down.

How does RPKI Route Origin Authorization (ROA) combined with Route Origin Validation (ROV) prevent BGP prefix hijacking?#

Show answer

A ROA is a cryptographically signed record in the RPKI repository that binds a specific prefix (or sub-prefix range) to the authorized Origin AS and a maximum prefix length. During Route Origin Validation (ROV), a receiving router checks each BGP announcement's origin AS against the RPKI repository and classifies it as Valid (matches a ROA), Invalid (the origin AS is not authorized for that prefix), or NotFound (no ROA exists). Routers configured to reject Invalid announcements drop hijacked routes where an unauthorized AS originates a prefix it doesn't own, preventing the hijack from propagating. NotFound routes are still accepted because not all prefixes have ROAs yet.

Why:

RPKI/ROA provides origin authentication for BGP. The key distinction is that ROV only validates the origin AS, not the full AS_PATH, so it prevents origin hijacks but not path-termination or route-leak attacks. Invalid routes are rejected; NotFound routes pass through since ROA coverage is not yet universal.

In Cisco IOS BGP bestpath selection, which of the following attributes are evaluated BEFORE the AS_PATH length attribute in the standard bestpath decision process? Select all that apply.#

Options

Pick every one that applies.

Show answer

In Cisco IOS BGP bestpath selection, the attributes evaluated before AS_PATH length are Weight, Local Preference, and the locally originated preference check. These occupy steps 1–3 of the decision process, while AS_PATH length is step 4. MED (step 6) and origin code (step 5) are both compared after AS_PATH length, not before.

Why:

The Cisco IOS BGP bestpath selection order is: (1) Weight, (2) Local Preference, (3) locally originated, (4) AS_PATH length, (5) origin code, (6) MED, (7) eBGP over iBGP, (8) oldest route, (9) lowest router ID, and so on. Weight, Local Preference, and the locally-originated check (steps 1–3) are all evaluated before AS_PATH length (step 4). MED (step 6) and origin code (step 5) are both evaluated after AS_PATH length, so they are incorrect.

Which of the following statements about BGP bestpath selection (as implemented in Cisco IOS) are true? Select all that apply.#

Options

Pick every one that applies.

Show answer

Three statements are correct about Cisco IOS BGP bestpath selection: Weight is Cisco-proprietary and never advertised to peers; MED is compared only between paths from the same neighboring AS by default; and the lowest router ID tiebreaker (step 9) follows the oldest-route tiebreaker (step 8). The eBGP-over-iBGP preference is step 7—after AS_PATH length (step 4)—and Local Preference is not sent to eBGP peers by default.

Why:

Weight is true: Weight is Cisco-proprietary, stays local to the router, and is never advertised to any BGP peer. The statement about MED is true: by default, Cisco IOS only compares MED between paths whose first AS in the AS_PATH matches (same neighboring AS); the bgp always-compare-med command overrides this. The statement about the oldest-route tiebreaker is true: the lowest-router-ID tiebreaker is step 9, immediately after the oldest-route tiebreaker (step 8). The claim that the preference for eBGP over iBGP paths is evaluated before the AS_PATH length comparison is false: eBGP-over-iBGP is step 7, which is evaluated after AS_PATH length (step 4). The claim that Local Preference is advertised to eBGP peers by default is false: Local Preference is a well-known discretionary attribute sent only to iBGP peers by default, not to eBGP peers.

In Cisco SD-WAN (Viptela-based), the control-plane protocol that runs between WAN Edge routers and vSmart controllers to exchange OMP routes, TLOCs, and IPsec keying material is called _____. It is architecturally modeled on BGP and uses a similar path-attribute structure, but it is not BGP itself.#

Show answer

In Cisco SD-WAN (Viptela-based), the control-plane protocol that runs between WAN Edge routers and vSmart controllers to exchange OMP routes, TLOCs, and IPsec keying material is called OMP. It is architecturally modeled on BGP and uses a similar path-attribute structure, but it is not BGP itself.

Why:

In Cisco SD-WAN (formerly Viptela), the Overlay Management Protocol (OMP) is the control-plane protocol between WAN Edge routers and vSmart controllers. OMP is modeled on BGP — it uses a comparable path-attribute structure — but advertises SD-WAN–specific NLRI: OMP routes (VPN/IP prefixes), TLOCs (Transport Locations, the reachability identifiers for tunnel endpoints), and service routes, and it also negotiates IPsec keys. DTLS is merely the transport that carries OMP control sessions; NETCONF is used for device configuration management; BGP itself is an underlay/peering protocol, not the SD-WAN overlay control plane.

In the Cisco SD-WAN architecture, the _____ is the centralized control-plane component that receives OMP updates from WAN Edge routers, applies centralized data policy, and redistributes routes across the overlay. The _____ (zero-touch provisioning orchestrator) authenticates and onboards new WAN Edge devices, directing each to its assigned control-plane controller. (Provide the component names, not the management UI.)#

Show answer

In the Cisco SD-WAN architecture, the vSmart is the centralized control-plane component that receives OMP updates from WAN Edge routers, applies centralized data policy, and redistributes routes across the overlay. The vBond (zero-touch provisioning orchestrator) authenticates and onboards new WAN Edge devices, directing each to its assigned control-plane controller. (Provide the component names, not the management UI.)

Why:

Cisco SD-WAN separates the planes: vSmart controllers are the control-plane authority — they peer with WAN Edge routers over OMP, enforce centralized control and data policies, and redistribute reachability (routes and TLOCs) across the overlay. The vBond orchestrator is the zero-touch provisioning (ZTP) authority: it authenticates device certificates at join time, maps each WAN Edge to its vSmart controller(s), and brokers the initial DTLS control connections. vManage is the management/monitoring plane (GUI, templates, analytics), not the control-plane or onboarding authority, so it is not the answer to either blank.

Design a secure, highly available IP Address Management (IPAM) and DHCP infrastructure for a large enterprise with 50,000+ endpoints across 20 geographically dispersed sites, hybrid cloud connectivity, and segregated IoT/OT network segments. Your design must address the following security and reliability concerns at the protocol level:#

Show answer

I would architect this in three layers: (1) the switching fabric providing L2/L3 access controls, (2) the DHCP service tier providing resilient lease assignment, and (3) the IPAM platform serving as the authoritative source of truth for all subnet allocations, reservations, and policy.

Rogue DHCP Prevention (IPv4 and IPv6): On every access switch, I enable DHCP snooping globally and mark only the uplink/trunk ports toward legitimate DHCP servers or relay agents as trusted. All end-user access ports are untrusted by default, so any DHCPOFFER or DHCPACK arriving on them is dropped. I apply per-port rate limiting (e.g., 15 pps) to untrusted ports to suppress DISCOVER floods. For IPv6, I deploy RA Guard on all access ports to drop unsolicited Router Advertisements from endpoints, and DHCPv6 Guard to ensure only the designated DHCPv6 relay or server can respond on trusted ports. Option 82 (relay agent information) is inserted by the snooping switch on the untrusted port's DISCOVER so the DHCP server records the physical ingress port and VLAN of every lease.

Starvation and Exhaustion Defense: DHCP snooping builds a binding table mapping MAC→IP→VLAN→port for every leased address. I enforce a per-port MAC limit (e.g., 5 MACs) so a single port cannot exhaust a pool by rotating source MACs. Dynamic ARP Inspection (DAI) is enabled on all user VLANs and bound to the snooping table, so any ARP reply whose IP/MAC/port tuple is not in the binding table is dropped — this prevents the natural follow-on attack (man-in-the-middle via ARP spoofing) after a starvation attempt. However, snooping MAC limits alone are insufficient against an attacker who randomizes the source MAC of the DHCPDISCOVER faster than the switch's learning window. To close this, I bind 802.1X port authentication to the DHCP process: the switch only forwards DHCPDISCOVER from a MAC that has successfully authenticated via RADIUS, and the NAC system provides the MAC-to-identity mapping. For devices that cannot do 802.1X (legacy IoT), I use MAC Authentication Bypass (MAB) with a whitelist and per-port rate limiting. At the IPAM level, I size each VLAN pool with a 20% reservation buffer, tier lease times (e.g., 8 hours for corporate devices, 1 hour for guest/IoT), and alert when pool utilization exceeds 80%.

HA and Failover Topology: Each site has two DHCP servers configured in DHCP failover (RFC 7384) load-balance mode, with the two servers geographically separated within the region (or one local, one at the regional hub for smaller sites). The failover pair maintains a replicated lease-state database and uses the MCLT (Maximum Client Lead Time) to control how long the surviving partner can extend a lease before the partner-down state is confirmed. In a split-brain scenario (both peers lose connectivity to each other but are still serving clients), the MCLT prevents either peer from re-assigning addresses that the other peer may have leased: each peer can only renew existing leases up to the MCLT boundary, and new address allocation from the peer's portion of the split scope is bounded. Only after the partner-down state is confirmed (via the failover protocol's heartbeat timeout, typically configurable) does the surviving peer take over the full scope. For multi-site redundancy, I also use anycast DHCP — the same DHCP relay address is advertised from multiple sites via the routing protocol, so DISCOVERs are routed to the nearest available server. The IPAM system is the authoritative source of truth for all subnet, reservation, and exclusion definitions, and it pushes configuration to all DHCP servers via API; the DHCP servers push lease events back to IPAM for reconciliation.

Secure DNS Integration: Every DHCP lease, release, or renewal triggers a dynamic DNS update. I use TSIG-signed DDNS between the DHCP servers and the DNS infrastructure, with per-zone update ACLs restricting updates to only the DHCP server's TSIG key. For Active Directory-integrated zones, GSS-TSIG (Kerberos-authenticated) updates are used so only domain-joined DHCP servers can update records. Unauthenticated DDNS is explicitly disabled — it would allow any endpoint to inject or overwrite DNS records, enabling cache poisoning via stale A/PTR records and facilitating man-in-the-middle attacks. DNS scavenging/aging is configured with a no-refresh + refresh period matching the DHCP lease time to automatically remove stale records when a device leaves the network without releasing its lease.

Audit and Device Attribution: All DHCP servers forward lease events (DISCOVER, OFFER, REQUEST, ACK, RELEASE, DECLINE, NAK) via syslog (RFC 5424) or IPFIX to a centralized SIEM. Each event includes the client MAC, assigned IP, lease duration, relay agent (Option 82 circuit ID / remote ID), and timestamp. To attribute a lease to a user or device identity, I correlate the DHCP event with 802.1X/RADIUS authentication session logs — the RADIUS accounting record contains the username, the authenticating MAC, the NAS port, and the session start/stop times, which I join to the DHCP binding table on MAC + port + time window. For IoT devices that bypass 802.1X via MAB, the NAC profile and device fingerprint (DHCP fingerprinting — the ordered list of requested DHCP options in parameter request list) provide attribution, and the MAB whitelist ties the MAC to an asset record in the CMDB. All logs are retained for a minimum of 365 days to meet compliance requirements.

Why:

This is a staff-level design exercise because it requires the candidate to integrate protocol-level switching controls (snooping, DAI, RA Guard, DHCPv6 Guard), DHCP failover internals (MCLT, split-brain), secure DNS integration (TSIG/GSS-TSIG), and a complete audit/attribution pipeline (802.1X correlation, DHCP fingerprinting) into a single coherent architecture. The rubric ensures each domain is independently scored and the sample answer demonstrates the depth expected.

In Cisco IOS BGP best-path selection, when two routes remain tied after all preceding tiebreakers, the 'prefer oldest route' criterion is evaluated only for eBGP-learned paths. If both competing paths are iBGP-learned, this criterion is skipped and selection proceeds directly to preferring the route from the neighbor with the lowest Router ID.#

Options

Show answer

In Cisco IOS BGP best-path selection, the 'prefer oldest route' tiebreaker applies exclusively to eBGP-learned routes. When both competing paths are iBGP-learned, this criterion is bypassed entirely, and selection falls through to the next tiebreaker: the route from the neighbor with the lowest Router ID. This design minimizes route-flap instability in eBGP while acknowledging that iBGP session age is a less meaningful stability signal.

Why:

In Cisco's 13-step BGP best-path decision process, the 'prefer oldest route' tiebreaker (step 9) applies exclusively to eBGP-learned routes. The rationale is to minimize route-flap-induced churn in eBGP by retaining the oldest path when all other attributes are equal. For iBGP-learned routes, session age and path age are less meaningful indicators of stability, so this step is bypassed entirely and the algorithm falls through to step 10—preferring the route originated by the BGP speaker with the lowest Router ID. A common misconception is that the oldest-route rule is universal; it is not.

Related interview questions

Job market

See network-security salaries and hiring demand from live job postings.

The other 189 questions

This page shows 25 and marks what you pick. That's as far as a page can go. A free account opens the other 189 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.

Start with this topic

Free · the whole bank · 100 marked answers per 30 days · written feedback on the paid plan

Interview booked? Practise the job ad instead

What moved, monthly

One email a month when the bulletin comes out: what moved in the markets we track, and the new question topics we published. Confirm your address to join. Unsubscribe any time.