Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
InfrastructureMiddleOccasionalPractical

Which Linux commands help inspect local network configuration and routes?

Answer

`ip addr` shows interface addresses and state, while `ip route` shows routing decisions including the default route. `hostname` identifies the local host name. Older `ifconfig` and `route` commands still exist on some systems, but modern Linux troubleshooting normally uses the iproute2 `ip` command family.

Strong answer includes

  • ip addr for interfaces and addresses
  • ip route for routing table and default route
  • recognizes iproute2 as the modern default

Practical example

If a VM cannot reach an API subnet, inspect `ip addr` to confirm the expected address and `ip route` to confirm there is a usable route before blaming DNS or the remote service.

#linux#networking#iproute2#troubleshooting

Sources

Linux man-pages projectman7.org / Linux man-pages project · Linux processes, signals, networking and system-call-facing command behavior50 Linux Interview Questions (With Answers)Toolmingo · Recurrence signal for Linux filesystem, permissions, processes, systemd, networking and shell-command interview topics