Networking interview questions for IT support, system administrator, cloud and DevOps roles check four things: what each TCP/IP protocol does, subnetting you can do in your head, the services everything depends on (DNS, DHCP, ARP, NAT), and a calm troubleshooting method using real commands. This page is the practical version: 30 questions with answers, worked subnetting and three outage scenarios.
For computer-science theory, see computer networks interview questions; for routing-and-switching roles, network engineer interview questions; for Cisco exam topics, CCNA interview questions.
Networking fundamentals: questions 1–9
- OSI vs TCP/IP model? OSI has seven layers (physical, data link, network, transport, session, presentation, application); TCP/IP has four (link, internet, transport, application). Interviewers use OSI numbers as shorthand: layer 2 is switching and MAC addresses, layer 3 is IP routing, layer 7 is HTTP.
- TCP vs UDP? TCP is connection-oriented, with ordered, reliable delivery and flow and congestion control (web, SSH, databases). UDP is connectionless with no delivery guarantee and less overhead (DNS queries, voice, video, and QUIC, which builds reliability on top of UDP).
- Walk through the TCP three-way handshake. The client sends SYN, the server replies SYN-ACK, the client sends ACK, and both sides have agreed initial sequence numbers. Closing uses FIN and ACK in each direction; the side that closes first waits in TIME_WAIT.
- What happens during DNS resolution? The client checks its hosts file and cache, then asks a recursive resolver, which queries the root, the TLD and the authoritative servers (unless cached) and returns the record with a TTL. Know A, AAAA, CNAME, MX, TXT, NS, PTR and SRV records.
- How does DHCP work? DORA: Discover (broadcast), Offer, Request, Acknowledge. The lease delivers IP, mask, gateway, DNS servers and lease time. Clients on other subnets need a relay on the router. A 169.254.x.x address on Windows means no DHCP answer arrived.
- What does ARP do? It maps an IPv4 address to a MAC address on the local segment by broadcasting a request and caching the reply. Traffic for other subnets goes to the default gateway's MAC. IPv6 uses Neighbor Discovery instead.
- Which ranges are private, and what does NAT do? RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. NAT rewrites private source addresses to a public one; PAT, or NAT overload, shares one public address across many hosts by tracking ports.
- Which port numbers should you know? SSH 22, SMTP 25 (587 for submission), DNS 53, HTTP 80, NTP 123/UDP, SNMP 161/UDP, LDAP 389 (636 for LDAPS), HTTPS 443, SMB 445, Kerberos 88, MySQL 3306, RDP 3389, PostgreSQL 5432.
- Switch vs router vs firewall? A switch forwards frames inside a LAN using its MAC address table; a router forwards packets between networks using its routing table; a firewall filters traffic by rules and usually tracks connection state. Many devices combine roles.
Intermediate Networking questions: 10–18
- How many usable hosts are in a /26, and where are its boundaries? 64 addresses and 62 usable hosts. 192.168.1.0/26 runs from .0 (network) to .63 (broadcast), and the next subnets start at .64, .128 and .192. The mask is 255.255.255.192.
- Which network is 10.20.37.130/21 in? A /21 gives a block size of 8 in the third octet; 37 falls in 32–39, so the network is 10.20.32.0, the broadcast 10.20.39.255, usable hosts 10.20.32.1 to 10.20.39.254, which is 2,046 hosts.
- What are VLANs and trunks? A VLAN splits one switch into separate broadcast domains; a trunk carries several VLANs between switches by tagging frames with 802.1Q. Traffic between VLANs needs a router or a layer 3 switch.
- What does a wrong default gateway look like? Hosts on the same subnet still work by IP, but everything off-subnet fails. That pattern, local yes and remote no, is the clue interviewers want you to spot.
- What problems does MTU cause? Ethernet's MTU is typically 1500 bytes. VPNs and tunnels add headers, so big packets fragment or drop, and path MTU discovery breaks when ICMP is blocked: small requests work while large transfers hang. Test with
ping -M do -s 1472on Linux orping -f -l 1472on Windows. - How does traceroute work? It sends probes with increasing TTL and lists the routers that return ICMP Time Exceeded. Linux
tracerouteuses UDP by default and Windowstracertuses ICMP. Stars at one hop often mean rate limiting, not the fault. - Which commands show addresses, routes and listening ports? Linux:
ip addr,ip route,ss -tulpn. Windows:ipconfig /all,route print,netstat -anoorGet-NetTCPConnection. DNS:digornslookup. HTTP:curl -v. - Stateful vs stateless filtering? A stateful firewall tracks connections and lets return traffic back automatically, as AWS security groups do; a stateless filter judges every packet alone, so return traffic on ephemeral ports must be allowed explicitly, as with AWS network ACLs.
- What does the TLS handshake accomplish? Agreeing a protocol version and cipher, authenticating the server with its certificate chain, and deriving session keys; TLS 1.3 needs one round trip for a full handshake. Certificate errors usually mean expiry, a hostname mismatch or a missing intermediate.
Experienced Networking questions: 19–27
- What should you know about IPv6? 128-bit addresses in hex groups with
::compressing zeros, /64 as the standard LAN prefix, SLAAC or DHCPv6 for addressing, a link-local fe80:: address on every interface, multicast instead of broadcast, and no need for NAT. Broken AAAA paths cause many dual-stack problems. - Static vs dynamic routing, and OSPF vs BGP? Static routes are manual and fine for small or stub networks. OSPF is a link-state interior protocol that converges quickly inside one organisation; BGP is a path-vector protocol between autonomous systems, used across the internet and in many data-centre fabrics.
- Layer 4 vs layer 7 load balancing? Layer 4 forwards TCP or UDP by address and port without reading payloads; layer 7 terminates HTTP and routes by host, path or header, and can handle TLS and retries. Layer 7 is smarter and costs more CPU.
- What is split-horizon DNS? The same name resolves differently inside and outside, such as a private IP for staff and a public IP for everyone else. It breaks when VPN users query the wrong resolver, so always check which server answered.
- VPN vs proxy? A VPN tunnels IP traffic (IPsec, WireGuard, SSL VPN) so the client acts as if it were on the remote network; a proxy relays specific application traffic such as HTTP or SOCKS. Split tunnelling sends only corporate routes through the VPN.
- What does
tcpdumpshow that logs don't? Packets on the wire: whether SYNs leave, SYN-ACKs return, resets or retransmissions happen, and which DNS queries go out. Example:tcpdump -ni eth0 host 10.0.0.5 and port 443; save with-wand open the file in Wireshark. - What causes ephemeral port exhaustion? Many short-lived outbound connections from one host to one destination, each leaving a socket in TIME_WAIT. The real fix is connection pooling and keep-alive, not kernel tweaks alone.
- What is anycast? One IP address announced from many locations, so routing delivers each user to the nearest one. Public DNS resolvers and CDNs rely on it.
- How would you design a small office network? Separate VLANs for staff, guests, voice and servers or printers; DHCP per VLAN; firewall rules between them; WPA3 or WPA2-Enterprise Wi-Fi; a second uplink if the business needs it; monitoring and a documented IP plan. Start by asking about users, apps and budget.
Networking scenario and troubleshooting questions: 28–30
- A user can't open a website. Walk through it. First ask: one user, one site or everyone? Then work up the stack: link and address (
ipconfigorip addr; 169.254 means no DHCP), gateway (ping it), DNS (nslookup site, then try a known IP), path (tracert), port and TLS (Test-NetConnection site -Port 443orcurl -v), then proxy and browser settings. - Ping works but the application times out. ICMP is fine, so look at the port: is the service listening (
ss -tulpn), does a firewall or security group allow it, is it an MTU problem on large packets, or is the app itself slow? Atcpdumpon the server shows whether SYNs arrive and get answered. - Name resolution is slow for everyone every morning. Check load and logs on the DNS servers, whether a forwarder is unreachable (queries wait for a timeout before failing over), whether clients list a dead server first, and whether a broken record is negatively cached. Measure with
dig, which prints query time.
How interviews test networking
| Round | What they ask | What a strong answer shows |
|---|---|---|
| IT support and help desk | Ports, DHCP and DNS basics, a user-can't-connect walk-through | A methodical, bottom-up troubleshooting order |
| System administrator | Subnetting, DNS records, firewall rules, commands on Linux and Windows | Quick, correct arithmetic and the right tool for each layer |
| Cloud and DevOps | CIDR planning for VPCs, security groups vs ACLs, load balancers, TLS | Mapping classic networking onto cloud services |
| Network engineer | Routing protocols, VLANs, spanning tree, BGP | Configuration depth; see the role page |
Most interviews include at least one subnetting question and one open troubleshooting prompt, and candidates commonly report that the prompt matters more. Practise the scenarios aloud, as you would in IT support interviews, and drill block sizes (128, 64, 32, 16, 8, 4) until a /27 or /21 takes seconds.
Where CoPilot Interview fits
CoPilot Interview is an AI interview assistant whose free AI mock interview builds networking questions from your résumé and the job description, reads them aloud and scores each spoken answer out of 10, which is a quick way to find the answers above that you can't yet explain without notes. The free plan gives 15 minutes a day of live help in sessions of up to 15 minutes, with AI mock interviews included. The browser demo at /try has 145 practice questions in 10 tracks with typed answers scored out of 10, no signup needed. Paid plans are Standard at $24.99 a month and Pro at $39.99 a month, and the desktop app runs on Windows 10 and 11 and macOS 12 or later. Technical screens, take-home tasks, online assessments and proctored tests usually forbid outside help, so prepare for those rather than use any tool during them; in any live interview, follow your employer's rules.
Disclosure: CoPilot Interview is our product, so weigh what we say about it accordingly.
Frequently asked questions
What networking topics come up most in interviews?
TCP vs UDP, DNS, DHCP, subnetting, the OSI layers, common ports, and a "user can't connect" troubleshooting walk-through. Cloud roles add CIDR planning and security groups.
How do I get fast at subnetting?
Memorise block sizes and powers of two, then do ten problems a day for a week. Interviewers usually stay between /24 and /30, with one larger block such as a /21 or /22.
Do I need a CCNA for networking interview questions?
Not for most IT, cloud or DevOps roles; the fundamentals on this page are enough. For network engineering roles a CCNA-level grasp of switching and routing is usually expected.
What is the difference between a hub, a switch and a router?
A hub repeats every frame to every port; a switch learns MAC addresses and forwards frames only where they need to go; a router connects different IP networks and chooses paths between them.
Practice this interview before the real one
The AI mock interview builds questions from your resume and the job description, reads them aloud and scores each spoken answer out of 10. Included on the free plan.
Start a mock interview