Linux command
ip-route-list 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Example
ip route list
Example
ip route list table local
Example
ip route list table all
Example
ip route list dev [eth0]
Example
ip route list scope link
Example
ip route list cache
Example
ip -6 route
Example
ip -4 route
说明
ip route list displays entries from the kernel routing tables. The main table contains user-configured routes, while the local table contains routes for local addresses automatically maintained by the kernel. Routes show the destination network, gateway or interface, and various attributes like metrics, source preference, and protocol that added the route.
参数
- table _TABLE_
- Routing table: main (254), local (255), all (0), or custom name/number
- dev _DEVICE_
- Show routes for specific device only
- scope _SCOPE_
- Filter by scope: global, link, host
- cache
- Show routing cache entries
- type _TYPE_
- Route type: unicast, local, broadcast, multicast, etc.
- proto _PROTOCOL_
- Filter by routing protocol
FAQ
What is the ip-route-list command used for?
ip route list displays entries from the kernel routing tables. The main table contains user-configured routes, while the local table contains routes for local addresses automatically maintained by the kernel. Routes show the destination network, gateway or interface, and various attributes like metrics, source preference, and protocol that added the route.
How do I run a basic ip-route-list example?
Run `ip route list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does table _TABLE_ do in ip-route-list?
Routing table: main (254), local (255), all (0), or custom name/number