Technical data

route
The
route
utility uses a routing socket and the new message types RTM_ADD,
RTM_DELETE, and RTM_CHANGE. As such, only a privileged user can modify
the routing tables.
Flags
-n
Prevents attempts to display host and network names symbolically when
reporting actions.
-v
Displays additional details.
-q
Suppresses all output.
Modifiers
-all
Specifies that the kernel add or delete the specified route on all interfaces (for
example,
TU0
and
TU1
) that are in the same subnet as the gateway. Use this
modifier only with the
add
and
delete
modifiers. Do not use
-all
with the
-dev
and
-olddev
modifiers.
-blackhole
Specifies that this route is a blackhole route. Packets sent to blackhole routes are
dropped, and notification is not sent to the packet originators. This is different
from a normal route, which allows packets to be forwarded out on it. You must
specify
127.0.0.1
(localhost) as the gateway argument.
-cloning
Generates a new route on use of this route.
-dev device
Specifies the interface device to use in the routing entry. Use this modifier when
you want to designate a particular interface for a route. If you do not specify this
modifier, the route is added on the first interface that is found.
-genmask mask
Specifies that the netmask mask is used for all routes cloned from this route.
-hopcount count
Sets this route’s maximum hopcount to the value specified by count.
-iface | -interface
Specifies that this route is through an interface instead of through a gateway
(gateway is the default). This means the destination is reachable directly through
an interface; no intermediate system is required. The gateway parameter is the
host address to be used for transmission.
-inet
Sets this route’s type as AF_INET. When you specifiy
inet
with the
delete
or
flush
command, only AF_INET routes are deleted.
-llinfo
Specifies that this route contains valid link-layer information.
A–32 Troubleshooting Utilities Reference