Linux top 30 networking interview questions.
𝐁𝐀𝐒𝐈𝐂 𝐋𝐄𝐕𝐄𝐋 𝐍𝐄𝐓𝐖𝐎𝐊𝐈𝐍𝐆 𝐐𝐔𝐄𝐒𝐓𝐈𝐎𝐍𝐒
1. What is an IP address?
Explain IPv4 vs IPv6.
Difference between public and private IPs.
2. What is a MAC address?
Why is it needed if we have IP?
3. What does the ping command do?
What protocols does it use?
What happens in the background when you ping an address?
4. What is DNS?
How does a DNS query work?
Explain A, CNAME, MX records.
5. Explain the OSI and TCP/IP model.
Name all layers and their function.
6. What is the purpose of /etc/hosts and /etc/resolv.conf?
7. What is netstat, ss, and what info do they provide?
8. Difference between TCP and UDP?
Examples where each is used.
9. What is a subnet mask?
10. What command shows current IP address on Linux?
(ip a, ifconfig, hostname -I)
𝐈𝐍𝐓𝐄𝐑𝐌𝐄𝐃𝐈𝐀𝐓𝐄 𝐋𝐄𝐕𝐄𝐋 𝐍𝐄𝐓𝐖𝐎𝐊𝐈𝐍𝐆 𝐐𝐔𝐄𝐒𝐓𝐈𝐎𝐍𝐒
11. What is ARP? How does it work?
What command shows the ARP table?
12. What is MTU (Maximum Transmission Unit)?
How to check and change it?
What happens if MTU is misconfigured?
13. What is the use of tcpdump or wireshark in Linux?
14. Explain the process of how a packet travels from your system to google dot com?
15. What is NAT?
Types: SNAT, DNAT, PAT
16. How do you troubleshoot a network issue on a Linux system?
Step-by-step (e.g., ping, traceroute, dig, nslookup, curl, telnet/nc)
17. How do routing tables work in Linux?
ip route, route -n
18. What is the difference between a bridge, switch, and router?
19. What is the purpose of iptables or nftables?
Difference between the two.
20. How do you configure a static IP on Linux?
𝐀𝐃𝐕𝐀𝐍𝐂𝐄𝐃 𝐋𝐄𝐕𝐄𝐋 𝐍𝐄𝐓𝐖𝐎𝐊𝐈𝐍𝐆 𝐐𝐔𝐄𝐒𝐓𝐈𝐎𝐍𝐒
21. What are the different states of a TCP connection?
SYN, ESTABLISHED, TIME_WAIT, CLOSE_WAIT, etc.
22. How does iptables work internally?
What are tables, chains, rules?
23. What is TCP congestion control?
TCP slow start, window scaling, etc.
24. Explain the role of kernel parameters in networking (sysctl).
Example: net.ipv4.ip_forward, net.core.rmem_max
25. What are VXLANs, GRE tunnels, or VPNs?
When and why are they used?
26. How does load balancing work at L4 and L7?
Differences and examples.
27. Explain ethtool, ip link, and nmcli.
Use-cases in debugging driver or speed/duplex issues.
28. What is bonding/teaming in Linux?
Modes: round-robin, active-backup, LACP, etc.
29. What happens when a packet with TTL=1 is received by a router?
30. How would you analyze and debug packet drops in Linux?
dmesg, netstat -s, dropwatch, /proc/net/dev