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.