to ADDRESS
(default)
-- the destination address.
from ADDRESS
-- the source address.
tos TOS
or dsfield TOS
-- the Type Of Service.
iif NAME
-- the device from which this packet is expected to arrive.
oif NAME
-- force the output device on which this packet will be routed.
connected
-- if no source address (option from
) was given, relookup
the route with the source set to the preferred address received from the first lookup.
If policy routing is used, it may be a different route.
Note that this operation is not equivalent to ip route show
.
show
shows existing routes. get
resolves them and
creates new clones if necessary. Essentially, get
is equivalent to sending a packet along this path.
If the iif
argument is not given, the kernel creates a route
to output packets towards the requested destination.
This is equivalent to pinging the destination
with a subsequent ip route ls cache, however, no packets are
actually sent. With the iif
argument, the kernel pretends
that a packet arrived from this interface and searches for
a path to forward the packet.