Basic Networking Interview Questions for Cybersecurity Freshers

Cybersecurity fresher interviews usually test networking basics: the OSI and TCP/IP models, TCP versus UDP and the three-way handshake, IPv4 and IPv6 addressing, subnetting and private ranges, DNS, DHCP and ARP, common port numbers, NAT, and what firewalls, IDS and VPNs do.

Jun 27, 2025 - 17:52
Updated: 
103.4k

Networking in IT Infrastructure · Interview preparation

Basic Networking Interview Questions for Cybersecurity Freshers

Quick answer: Cybersecurity fresher interviews usually test networking basics: the OSI and TCP/IP models, TCP versus UDP and the three-way handshake, IPv4 and IPv6 addressing, subnetting and private ranges, DNS, DHCP and ARP, common port numbers, NAT, and what firewalls, IDS and VPNs do. Interviewers want short, correct answers and the ability to link each concept to security, for example why ARP can be spoofed or why Telnet is unsafe. This guide groups the most common questions with model answers you can explain in your own words.

Key takeaways

  • Know the OSI layers and where common protocols and attacks sit.
  • Explain TCP versus UDP and the SYN, SYN-ACK, ACK handshake clearly.
  • Practise subnetting until /24, /26 and /30 are quick.
  • Memorise core ports and whether each service is encrypted.
  • Always add a security angle to a networking answer.

Table of Contents

What Questions Come Up on the OSI and TCP/IP Models?

Q: Name the OSI layers. Physical, Data Link, Network, Transport, Session, Presentation, Application. The TCP/IP model groups them into Link, Internet, Transport and Application.

OSI layerExample protocols or devicesExample threat
2 Data LinkEthernet, switches, ARPARP spoofing, MAC flooding
3 NetworkIP, ICMP, routersIP spoofing
4 TransportTCP, UDPSYN flood
7 ApplicationHTTP, DNS, SMTPSQL injection, phishing

What Should You Know About TCP and UDP?

Q: Difference between TCP and UDP? TCP (RFC 9293) is connection-oriented, with ordering, acknowledgements and retransmission. UDP (RFC 768) is connectionless with no delivery guarantee, so it suits DNS queries, VoIP and streaming.

Q: Explain the three-way handshake. The client sends SYN, the server replies SYN-ACK, the client sends ACK. A SYN flood sends many SYNs without completing the handshake to exhaust server resources; SYN cookies are one defence.

Which IP Addressing and Subnetting Questions Are Common?

Q: What are the private IPv4 ranges? 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, defined in RFC 1918. They are not routed on the internet and reach it through NAT.

Q: How many usable hosts in a /26? 64 addresses minus network and broadcast gives 62. A /30 gives 2 usable hosts, used for point-to-point links.

Q: IPv4 versus IPv6? IPv4 uses 32-bit addresses; IPv6 (RFC 8200) uses 128-bit addresses, has no broadcast, and uses Neighbor Discovery instead of ARP.

Q: What is NAT? Network Address Translation rewrites private addresses to a public address at the edge. It saves addresses but is not a security control on its own.

What Do Interviewers Ask About DNS, DHCP and ARP?

Q: What does DNS do? It resolves names to IP addresses (RFC 1035). It uses UDP 53 for most queries and TCP 53 for large responses and zone transfers. Know record types A, AAAA, MX, CNAME, TXT and NS.

Q: Explain DHCP. DHCP (RFC 2131) assigns IP settings through Discover, Offer, Request and Acknowledge (DORA). A rogue DHCP server is blocked by DHCP snooping.

Q: What is ARP and why is it risky? ARP (RFC 826) maps IPv4 addresses to MAC addresses on a LAN. It has no authentication, so forged replies can redirect traffic; Dynamic ARP Inspection defends against this.

Which Port Numbers Should You Memorise?

PortServiceEncrypted?
22SSHYes
23TelnetNo, avoid
25SMTPOnly with STARTTLS
53DNSNo, unless DoH or DoT
80 / 443HTTP / HTTPSNo / Yes
445SMBOptional in SMB 3
3389RDPYes, but never expose to the internet

The official list is the IANA port registry.

Which Network Security Questions Are Asked?

Q: Firewall versus IDS versus IPS? A firewall allows or blocks traffic by rules (NIST SP 800-41); an IDS detects and alerts; an IPS sits inline and blocks.

Q: Stateful versus stateless firewall? A stateful firewall tracks connections and allows return traffic automatically; a stateless filter checks each packet alone.

Q: What is a VLAN? A logical segment on a switch that limits broadcasts and separates groups of devices.

Practise more with our networking interview questions and cybersecurity interview questions for freshers. WebAsha's networking and cybersecurity training includes mock interviews and labs.

References

Frequently Asked Questions

The OSI model, TCP and UDP, IP addressing and subnetting, DNS, DHCP, ARP, common ports, NAT, firewalls and IDS or IPS basics.

List the seven layers in order, give one protocol per layer, and mention one attack that targets a layer to show security awareness.

Most DNS queries are small and benefit from UDP’s low overhead. DNS falls back to TCP for large responses and zone transfers.

A /24 has 256 addresses. Removing the network and broadcast addresses leaves 254 usable host addresses for devices.

NAT hides internal addressing and blocks unsolicited inbound connections as a side effect, but a proper firewall policy is still required.

Telnet sends usernames, passwords and commands in plain text, so anyone sniffing the network can read them. SSH should be used instead.

A hub repeats frames to all ports, a switch forwards frames by MAC address, and a router forwards packets between networks by IP address.

Yes. Know the 128-bit address format, that IPv6 has no broadcast, and that Neighbor Discovery replaces ARP for address resolution.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.