Use net-tools route to display the IPv4 routing table without performing name lookups.
Which command is appropriate?
route -n suppresses name resolution and displays destination and gateway addresses numerically. ip route show is the modern alternative.
Detailed explanation
route -aIncorrect. -a is not the central numeric display option here.
Incorrect. -a is not the central numeric display option here.
route -nCorrect. -n displays the route table without name resolution.
Correct. -n displays the route table without name resolution.
route -sIncorrect. -s is not the standard numeric route-table option.
Incorrect. -s is not the standard numeric route-table option.
route -pIncorrect. -p is not the Linux net-tools numeric-display option.
Incorrect. -p is not the Linux net-tools numeric-display option.
Try it yourself
An example you can run in a temporary verification environment.
route -n 2>/dev/null | sed -n '1,4p' || printf '%s
' 'route is not installed'Expected result
Kernel IP routing tableと数値の経路表、またはnet-tools未導入メッセージKey points
- -n means numeric
- Suppress name resolution
- Legacy net-tools command
Notes
- Environment: net-tools route / 読み取り専用
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.