Type the iproute2 command that prints the kernel routing table, the modern replacement for `route -n`.
LPIC-1 Exam 102-500, objective 109. Networking fundamentals easy
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
Answer
Type the answer.
Accepted answers
ip route showip routeip rip r sip r showip route listip r listip ro showip ro
Case sensitive — Linux is, and grading LS as ls would teach a falsehood.
Why
`ip route show`, usually typed `ip r`, dumps the main routing table. The default route prints as `default via GATEWAY dev IFACE`, and directly connected networks print with `proto kernel scope link src ADDRESS`. Add a route with `ip route add`, remove one with `ip route del`, and ask which route would be used for one destination with `ip route get ADDRESS`.
Where this comes from
- Cited
- manual page ip-route(8)
Practise this
Reading one question is not practice. The trainer will draw a set from objective 109 and space the ones you get wrong.