Network Engineer interview questions
100 real questions with model answers and explanations for Junior candidates.
See a Network Engineer resume example →Practice with flashcards
Spaced repetition · Hunter Pass
Questions
The OSI model has Physical, Data Link, Network, Transport, Session, Presentation, and Application layers.
- Physical carries bits as electrical, optical, or radio signals.
- Data Link handles local frames and MAC addressing, while Network handles logical addressing and routing.
- Transport provides end-to-end delivery, and the upper three layers support sessions, data representation, and application services.
Why interviewers ask this: The interviewer checks whether you know the layer order and can attach real responsibilities to it.
The TCP/IP model groups networking into Link, Internet, Transport, and Application layers.
- Link roughly covers OSI Physical and Data Link functions.
- Internet corresponds to the OSI Network layer, and Transport corresponds directly to Transport.
- TCP/IP Application combines the OSI Session, Presentation, and Application layers.
Why interviewers ask this: A strong answer connects the practical TCP/IP stack to the more detailed OSI reference model.
Encapsulation adds protocol information around application data as it moves down the network stack.
- Transport adds a TCP or UDP header to create a segment or datagram.
- IP adds source and destination addresses to form a packet.
- Ethernet adds a frame header and trailer for local delivery, and the receiver removes these layers in reverse order.
Why interviewers ask this: The interviewer checks whether you understand how protocols cooperate rather than treating a packet as one undifferentiated object.
A frame is a Data Link unit, a packet is a Network-layer unit, and a TCP segment is a Transport-layer unit.
- Ethernet frames carry source and destination MAC addresses for one local link.
- IP packets carry logical addresses across routed networks.
- TCP segments carry port numbers, sequence information, flags, and application data inside IP packets.
Why interviewers ask this: A good answer places each unit at the correct layer and states the addressing it carries.
A MAC address identifies a network interface for Data Link delivery on a local network segment.
- Ethernet normally uses 48-bit source and destination MAC addresses.
- Switches learn source MAC addresses and forward frames according to their MAC address tables.
- Routers replace the local frame header at each routed hop, so the MAC addresses usually change while IP endpoints remain.
Why interviewers ask this: The interviewer checks whether you understand the local scope of MAC addressing.
Unicast targets one receiver, broadcast targets every host in a broadcast domain, and multicast targets an interested group.
- Most client-server traffic is unicast between specific addresses.
- Ethernet and IPv4 broadcasts are confined by routers and are used by protocols such as ARP.
- Multicast uses group addresses and requires receivers and network devices to manage group membership and forwarding.
Why interviewers ask this: A strong answer distinguishes the destination scope and basic forwarding behavior of each traffic type.
A switch learns source MAC addresses on incoming ports and uses its table to choose an outgoing port for each destination.
- A known unicast destination is forwarded only through the associated port.
- An unknown unicast is flooded within the VLAN except through the incoming port.
- Learned entries age out so the table can adapt when devices move or disappear.
Why interviewers ask this: The interviewer checks whether you understand switching from MAC learning through known and unknown forwarding.
A collision domain is where simultaneous Ethernet transmissions can conflict, while a broadcast domain is where a Layer 2 broadcast is delivered.
- Each full-duplex switched Ethernet port is effectively its own collision domain.
- All ports in one VLAN normally share one broadcast domain.
- Routers or Layer 3 interfaces separate broadcast domains, while hubs do not separate collision domains.
Why interviewers ask this: A good answer connects both domain types to switches, VLANs, routers, and legacy hubs.
STP prevents Layer 2 loops by placing redundant switch paths into a loop-free forwarding topology.
- Ethernet frames have no hop limit, so a physical loop can create broadcast storms and unstable MAC tables.
- Switches elect a root bridge and calculate preferred paths toward it.
- Redundant ports can remain blocked and transition to forwarding if the active topology changes.
Why interviewers ask this: The interviewer checks whether you know the failure STP prevents and its basic method.
These topologies describe how network nodes and links are physically or logically arranged.
- A star connects endpoints to a central device and is common in Ethernet LANs.
- A bus shares one backbone, while a ring connects each node to two neighbors in a loop.
- A mesh provides multiple interconnections for resilience but requires more links and ports.
Why interviewers ask this: A strong answer recognizes the connection pattern and basic trade-off of each topology.
Twisted-pair cable categories specify tested performance characteristics that support particular Ethernet speeds and frequencies over defined distances.
- Cat5e commonly supports 1 Gigabit Ethernet up to 100 meters.
- Cat6 supports higher frequency and can carry 10 Gigabit Ethernet over shorter runs.
- Cat6A is designed for 10 Gigabit Ethernet up to 100 meters with better control of crosstalk.
Why interviewers ask this: The interviewer checks whether you can relate cable category to supported performance rather than connector appearance.
Fiber is preferred for longer distances, high bandwidth, electrical isolation, and resistance to electromagnetic interference.
- Multimode fiber is common for shorter building and data-center links, while single-mode reaches much farther.
- Copper Ethernet is usually cheaper for short endpoint runs and can deliver Power over Ethernet.
- Fiber type, connector, wavelength, and transceiver must be compatible at both ends.
Why interviewers ask this: A good answer compares distance, interference, power delivery, and component compatibility.
Speed selects the signaling rate, while duplex determines whether both ends can transmit simultaneously.
- Full duplex allows simultaneous sending and receiving and avoids collisions on a switched link.
- Half duplex shares transmission time and uses collision handling.
- Auto-negotiation should normally be enabled on both ends because a mismatch can produce poor performance and interface errors.
Why interviewers ask this: The interviewer checks whether you understand link negotiation and the effect of a duplex mismatch.
An IPv4 address is a 32-bit logical address whose network and host portions are determined by its prefix length.
- It is written as four decimal octets from 0 to 255.
- The network portion identifies the subnet, while the remaining bits identify an interface within that subnet.
- Routers use destination prefixes to forward packets rather than treating the whole address as one flat identifier.
Why interviewers ask this: A strong answer connects address notation to subnet membership and routing.
A subnet mask marks which IPv4 address bits belong to the network prefix and which belong to the host portion.
- Binary 1 bits identify the network portion, followed by 0 bits for hosts.
- 255.255.255.0 is equivalent to a /24 prefix.
- A host uses the mask to decide whether a destination is local or must be sent through a router.
Why interviewers ask this: The interviewer checks whether you can connect the mask to both subnet calculation and forwarding decisions.
CIDR notation writes an IP prefix as an address followed by the number of network bits, such as 192.0.2.0/24.
- A larger prefix length leaves fewer host bits and creates a smaller subnet.
- CIDR replaced fixed classful boundaries with variable-length prefixes.
- The same notation supports subnetting inside a network and route aggregation between networks.
Why interviewers ask this: A good answer explains both the slash length and why variable-length prefixes matter.
The network address has all host bits set to 0, while the broadcast address has all host bits set to 1.
- A bitwise AND of the host address and subnet mask produces the network address.
- The broadcast address is the highest address in the subnet.
- In a conventional subnet, usable host addresses lie between those two reserved addresses.
Why interviewers ask this: The interviewer checks whether you understand subnet boundaries rather than only memorizing address counts.
The private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.
- Internet routers do not normally route these addresses globally.
- Organizations can reuse them internally without obtaining unique public space.
- Internet access from private hosts commonly uses NAT at the network edge.
Why interviewers ask this: A strong answer accurately identifies all three RFC 1918 ranges and their scope.
Public IP addresses are globally unique and routable on the Internet, while private addresses are intended for internal networks.
- Public address allocation is coordinated through registries and service providers.
- Private ranges can be reused by unrelated organizations and therefore are not globally unique.
- NAT can translate private endpoints to public addresses but does not make the original private address Internet-routable.
Why interviewers ask this: The interviewer checks whether you distinguish address scope from the translation used at an edge.
A default gateway is the router address a host uses for destinations outside its directly connected subnet.
- The gateway interface must be reachable on the host's local link.
- The host resolves the gateway's local MAC address and sends the frame to it while preserving the remote destination IP.
- If no more specific route exists and the gateway is unavailable, off-subnet communication fails.
Why interviewers ask this: A good answer explains both the gateway's purpose and how Layer 2 delivery reaches it.
Locked questions
- 21
What are the main addressing differences between IPv4 and IPv6?
ip-addressing - 22
What are loopback and link-local addresses used for?
- 23
If a /24 network is divided into /26 subnets, how many subnets and addresses does each contain?
networkingip-addressing - 24
How does a router choose a route when several entries match a destination?
routing - 25
When are static and dynamic routes used?
routing - 26
What role does OSPF play in a routed network?
routing - 27
What role does BGP play in networking?
routing - 28
What are the basic characteristics of EIGRP?
routing - 29
How do administrative distance and a routing-protocol metric differ?
monitoringtyping - 30
What problem does MPLS solve at a basic level?
wan - 31
Why are VLANs used in a switched network?
switching - 32
How do access and trunk switch ports differ?
switching - 33
What does an IEEE 802.1Q tag contain and why is it added?
- 34
How can hosts in different VLANs communicate?
communication - 35
How do TCP and UDP differ?
networkingprotocols - 36
How does the TCP three-way handshake establish a connection?
networkingprotocols - 37
What are transport-layer port numbers used for?
- 38
Which common network ports should a junior engineer recognize?
- 39
What happens during a basic DNS name lookup?
dnsnetwork-services - 40
What are A, AAAA, CNAME, MX, and NS DNS records used for?
dnsnetwork-services - 41
How does a host obtain an IPv4 lease through DHCP?
network-services - 42
What does ARP do in an IPv4 network?
protocols - 43
What is ICMP used for?
- 44
How do HTTP and HTTPS differ on the network?
httphttps - 45
What does TLS establish before protected application data is sent?
tls - 46
Why is SSH preferred for remote network-device administration?
ssh - 47
How do FTP active and passive modes differ?
- 48
How do NAT and PAT change packet addressing?
networkingnetwork-services - 49
How do stateless and stateful firewalls differ?
network-securitynetworking - 50
How does a host send an IP packet to a local destination versus a remote destination?
- 51
A user says the network is down; how would you narrow the problem?
- 52
What would you look for in ipconfig or ip addr output when a host cannot connect?
- 53
A host cannot ping its default gateway; what would you check next?
gatewayrouting - 54
A host can ping 8.8.8.8 but cannot open websites by name; how would you diagnose it?
- 55
How would you use nslookup or dig when a hostname does not resolve?
- 56
How would you interpret NXDOMAIN, SERVFAIL, and a DNS timeout differently?
dnsresiliencenetwork-services - 57
One DNS server resolves a name and another does not; how would you investigate?
dnsnetwork-services - 58
A DNS record was changed but one workstation still gets the old address; what would you check?
dnsnetwork-services - 59
How would you use traceroute to locate a connectivity problem?
diagnostics - 60
Ping fails but the website opens; how would you explain and verify that result?
- 61
Users report a slow network; how would you separate latency, loss, and bandwidth limits?
latency - 62
How would you diagnose packet loss reported by repeated ping?
troubleshooting - 63
Small pings work but large transfers stall; how would you test for an MTU problem?
performance - 64
An Ethernet link is up but slow and shows many errors; what would you inspect?
networking-fundamentals - 65
Wi-Fi is slow for one user but wired access is normal; how would you narrow it down?
- 66
How would you read switch interface counters during troubleshooting?
switchingtypes - 67
How would you use Wireshark to confirm TCP retransmissions?
networkingprotocolspacket-analysis - 68
A packet capture shows SYN retransmissions with no SYN-ACK; what would you check?
- 69
A workstation has a 169.254.x.x address; how would you troubleshoot DHCP?
network-services - 70
Clients receive DHCP addresses but cannot reach other networks; what would you inspect?
network-services - 71
How would you configure a subnet for 50 hosts?
networkingip-addressingconfig - 72
Two hosts in the same configured subnet cannot communicate; how would you troubleshoot?
networkingip-addressingcommunication - 73
A host has the wrong default gateway; what symptoms and checks would you expect?
gatewayrouting - 74
How would you confirm and resolve a duplicate IP address?
ip-addressing - 75
How would you configure a switch access port for a workstation VLAN?
switchingconfig - 76
Devices in a new VLAN work on one switch but not across a trunk; what would you check?
switching - 77
Hosts in two VLANs cannot communicate; how would you verify inter-VLAN routing?
communicationswitching - 78
A redundant switch link is blocking in STP; how would you decide whether that is normal?
switching - 79
How would you add a new user VLAN across several switches safely?
switching - 80
How would you publish an internal HTTPS server through a firewall?
network-securityhttpsnetworking - 81
An ACL contains an allow rule but traffic is still denied; how would you read it?
network-security - 82
How would you account for return traffic on a stateful firewall?
network-securitynetworking - 83
DNS works inside one segment but fails through a firewall; what rules would you verify?
dnsnetworkingnetwork-services - 84
An internal host reaches local networks but not the internet; how would you verify NAT?
networkingnetwork-services - 85
How would you test whether a remote TCP port is reachable?
networkingprotocols - 86
A service works on localhost but not from another host; how would you troubleshoot it?
- 87
How would you read a host route table to explain where a packet goes?
routing - 88
How would you add and verify a static route to a remote subnet?
networkingip-addressingrouting - 89
Traceroute repeats the same two routers until the hop limit; how would you investigate?
routingdiagnostics - 90
An OSPF neighbor does not reach FULL state; what basic settings would you compare?
routing - 91
A basic eBGP session remains idle; what would you verify first?
sessions - 92
An EIGRP neighbor is missing on one link; what would you compare?
routing - 93
How would you monitor an intermittent interface problem with SNMP?
monitoringtypes - 94
A WAN link is saturated; how would NetFlow help identify the cause?
monitoring - 95
How would you make a firewall or switch change without losing your own access?
networkingswitchingnetwork-security - 96
Which command outputs would you capture before escalating a Cisco or Juniper connectivity issue?
escalation - 97
Where would you place packet captures when traffic disappears between a client and server?
- 98
A remote-access VPN connects but internal resources are unreachable; how would you troubleshoot?
network-security - 99
One branch cannot reach another over an MPLS service; what local evidence would you gather before contacting the provider?
wan - 100
A whole office loses internet access but internal servers still work; how would you investigate?