to SELECTOR (default)
-- only select routes from the given range of destinations. SELECTOR
consists of an optional modifier (root, match or exact)
and a prefix. root PREFIX selects routes with prefixes not shorter
than PREFIX. F.e. root 0/0 selects the entire routing table.
match PREFIX selects routes with prefixes not longer than
PREFIX. F.e. match 10.0/16 selects 10.0/16,
10/8 and 0/0, but it does not select 10.1/16 and
10.0.0/24. And exact PREFIX (or just PREFIX)
selects routes with this exact prefix. If neither of these options
are present, ip assumes root 0/0 i.e. it lists the entire table.
tos TOS or dsfield TOS
-- only select routes with the given TOS.
table TABLEID
-- show the routes from this table(s). The default setting is to show
table main. TABLEID may either be the ID of a real table
or one of the special values:
all -- list all of the tables.
cache -- dump the routing cache.
main, local
and cache is emulated by the ip utility.
cloned or cached
-- list cloned routes i.e. routes which were dynamically forked from
other routes because some route attribute (f.e. MTU) was updated.
Actually, it is equivalent to table cache.
from SELECTOR
-- the same syntax as for to, but it binds the source address range
rather than destinations. Note that the from option only works with
cloned routes.
protocol RTPROTO
-- only list routes of this protocol.
scope SCOPE_VAL
-- only list routes with this scope.
type TYPE
-- only list routes of this type.
dev NAME
-- only list routes going via this device.
via PREFIX
-- only list routes going via the nexthop routers selected by PREFIX.
src PREFIX
-- only list routes with preferred source addresses selected
by PREFIX.
realm REALMID or realms FROMREALM/TOREALM
-- only list routes with these realms.