$
学ぶ Linux ハンドブック
ja
XP:0
クエスト 78RouteNavigator
+190 XP

Routing Tables & Gateways (ip route)

このクエストの対話型ターミナルを起動する→インストール不要 • ブラウザ上で完全動作

概念と概要

When your server sends a packet to an IP address outside its local subnet, how does the kernel know which router or network card interface to send it through? It consults the Kernel IP Routing Table.

- ip route (or ip r / ip ro): Displays active routing table entries.
- The line starting with default via dev defines your Default Gateway (your router), which handles all internet traffic not addressed to a local subnet.

Display the kernel routing table and identify your default gateway router by running ip route (or ip r).

コマンド構文リファレンス

Command / SyntaxDescription
ip routeDisplay kernel routing table and default gateway
ip rShorthand for ip route

検証目標

  • ○
    Run ip route or ip r to inspect routing table

クエスト完了への準備はできましたか? 78?