A system administrator notices that a web server is not reachable from the internet but is reachable from the internal network. The server's IP is 10.0.1.10/24, and the gateway is 10.0.1.1. Which command should be used to verify the default gateway configuration?
Trap 1: arp -a
This shows the ARP cache, not routing information.
Trap 2: ip addr show
This shows IP addresses, not the routing table.
Trap 3: ss -tln
This shows listening TCP ports, not routing.
- A
arp -a
Why wrong: This shows the ARP cache, not routing information.
- B
ip route show
This command displays the routing table, including the default gateway.
- C
ip addr show
Why wrong: This shows IP addresses, not the routing table.
- D
ss -tln
Why wrong: This shows listening TCP ports, not routing.