Linux Networking Configuration and Troubleshooting Questions
Network interfaces and configuration files. IP addressing and routing configuration. Using netstat, ss, ip, ifconfig commands. DNS configuration and troubleshooting. Network connectivity testing (ping, traceroute, telnet, curl). Network statistics and monitoring. Firewall basics (iptables/firewalld). Understanding network namespaces.
MediumTechnical
74 practiced
Write iptables commands to allow SSH (port 22) only from subnet 10.5.0.0/16, log other SSH connection attempts with a custom log prefix, and ensure the logging is rate-limited to avoid flooding the logs.
MediumTechnical
138 practiced
Describe methods to persist `iptables` rules across reboots on Debian/Ubuntu: using `iptables-save`/`iptables-restore`, `netfilter-persistent`, or migrating to `nftables` via `iptables-translate`. Compare pros and cons of each approach for a production environment.
MediumTechnical
104 practiced
Intermittent packet loss is observed on a VM. Propose a diagnosis plan using `mtr`, continuous `ping` with varying packet sizes, `ethtool` and driver stats, and host/logging checks. Include how to determine whether the issue is the VM guest, the hypervisor, or the physical NIC.
EasyTechnical
100 practiced
Explain MTU and Path MTU Discovery (PMTUD). Show the command to set MTU on `eth0` (`ip link set dev eth0 mtu 1400`) and demonstrate how to detect an MTU black hole using `ping -M do -s` and `tracepath`. Explain why tunnels often require MTU adjustments.
MediumTechnical
102 practiced
You observe a very large number of sockets in TIME_WAIT on a busy web server. Explain why TIME_WAIT exists, how to inspect aggregate counts with `ss -s` and `ss -tan`, and discuss mitigation techniques and trade-offs such as kernel tuning and TCP termination placement.
Unlock Full Question Bank
Get access to hundreds of Linux Networking Configuration and Troubleshooting interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.