routel
list the IP routing tables in a column-formatted view
TLDR
SYNOPSIS
routel [options] [tablenr [ip-route-options...]]
DESCRIPTION
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`.
PARAMETERS
-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.tablenr
Routing table name (e.g. `main`, `local`, `default`) or numeric id.ip-route-options
Any additional arguments are passed to `ip route list` verbatim (destination, via, dev, etc.).
OUTPUT
The script prints columns:
CAVEATS
Pure wrapper — no new features beyond what `ip route list` provides. Some distributions package it in a separate `iproute2-extras` or similar package. Columnar alignment can look awkward in very narrow terminals.
HISTORY
routel was originally written by Stephen R. van den Berg and rewritten/maintained by Stephen Hemminger as part of the iproute2 package.
