Linux command
routel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all routes
routel
List a specific routing table
routel [main]
Show only IPv4 routes
routel -4
Show only IPv6 routes
routel -6
Filter to a specific destination
routel main [10.0.0.0/8]
Show the local table
routel [local]
说明
routel is a small shell script shipped with iproute2 that wraps `ip route list` and reformats the output into fixed columns that some users find easier to read than raw `ip` output. Any extra arguments are forwarded to `ip route list`, so any filter that works there also works here. A sibling script, `routef`, flushes routes. Both are thin helpers; anything they do is also achievable with `ip route`.
参数
- -4
- Shorthand for `--family inet` — IPv4 only.
- -6
- Shorthand for `--family inet6` — IPv6 only.
- -f, --family _inet_|_inet6_
- Restrict to the given address family.
- -h, --help
- Show help.
FAQ
What is the routel command used for?
routel is a small shell script shipped with iproute2 that wraps `ip route list` and reformats the output into fixed columns that some users find easier to read than raw `ip` output. Any extra arguments are forwarded to `ip route list`, so any filter that works there also works here. A sibling script, `routef`, flushes routes. Both are thin helpers; anything they do is also achievable with `ip route`.
How do I run a basic routel example?
Run `routel` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -4 do in routel?
Shorthand for `--family inet` — IPv4 only.