.TH ROUTE 8 "2013\-06\-15" "net\-tools" "Linux System Administrator's Manual"
.TH ROUTE 8 "2014\-02\-17" "net\-tools" "Linux System Administrator's Manual"
.SH NAME
route \- show / manipulate the IP routing table
.SH SYNOPSIS
...
...
@@ -15,42 +15,42 @@ family
.RB | \-4 | \-6 ]
.B add
.RB [ \-net | \-host ]
target
.I target
.RB [ netmask
Nm]
.IR Nm ]
.RB [ gw
Gw]
.IR Gw ]
.RB [ metric
N]
.IR N ]
.RB [ mss
M]
.IR M ]
.RB [ window
W]
.IR W ]
.RB [ irtt
I]
.IR I ]
.RB [ reject ]
.RB [ mod ]
.RB [ dyn ]
.RB [ reinstate ]
.RB [[ dev ]
If]
.IR If ]
.TP
.B route
.RB [ \-v ]
.RB [ \-A
family
.I family
.RB | \-4 | \-6 ]
.B del
.RB [ \-net | \-host ]
target
.I target
.RB [ gw
Gw]
.IR Gw ]
.RB [ netmask
Nm]
.IR Nm ]
.RB [ metric
N]
.IR M ]
.RB [[ dev ]
If]
.IR If ]
.TP
.B route
.RB [ \-V ]
...
...
@@ -77,7 +77,7 @@ displays the current contents of the routing tables.
.SH OPTIONS
.TP
.B \-A family
\fB\-A \fIfamily\fR
use the specified address family (eg `inet'). Use
.B route \-\-help
for a full list. You can use
...
...
@@ -87,7 +87,7 @@ as an alias for
and
.B \-4
as an alias for
.B -A inet
.B \-A inet
.
.TP
...
...
@@ -98,7 +98,6 @@ This is the default.
.TP
.B \-C
operate on the kernel's routing cache.
.TP
.B \-v
select verbose operation.
...
...
@@ -114,7 +113,6 @@ use
for displaying the routing table.
.B \-ee
will generate a very long line with all parameters from the routing table.
.TP
.B del
delete a route.
...
...
@@ -122,25 +120,27 @@ delete a route.
.B add
add a new route.
.TP
.B target
the destination network or host. You can provide IP addresses in dotted
decimal or host/network names.
.I target
the destination network or host. You can provide an addresses or symbolic
network or host name. Optionally you can use \fB/\fIprefixlen\fR notation
instead of using the \fBnetmask\fR option.
.TP
.B \-net
the
.B target
.I target
is a network.
.TP
.B \-host
the
.B target
.I target
is a host.
.TP
.B netmask NM
\fBnetmask \fINM\fR
when adding a network route, the netmask to be used.
.TP
.B gw GW
\fBgw \fIGW\fR
route packets via a gateway.
.br
.B NOTE:
The specified gateway must be reachable first. This usually means that
you have to set up a static route to the gateway beforehand. If you specify
...
...
@@ -148,55 +148,54 @@ the address of one of your local interfaces, it will be used to decide about
the interface to which the packets should be routed to. This is a BSDism
compatibility hack.
.TP
.B metric M
set the metric field in the routing table (used by routing daemons) to M.
\fBmetric \fIM\fR
set the metric field in the routing table (used by routing daemons) to \fIM\fR. If this option is not specified the metric for inet6 (IPv6) address family defaults to '1', for inet (IPv4) no metric will be set to (and the kernel defaults to 1024). You should always specify an explicit metric value to not rely on those defaults.
.TP
.B mss M
sets MTU (Maximum Transmission Unit) of the route to M bytes.
\fBmss \fIM\fR
sets MTU (Maximum Transmission Unit) of the route to \fIM\fR bytes.
Note that the current implementation of the route command does not allow
the option to set the Maximum Segment Size (MSS).
.TP
.B window W
set the TCP window size for connections over this route to W
\fBwindow \fIW\fR
set the TCP window size for connections over this route to \fIW\fR
bytes. This is typically only used on AX.25 networks and with drivers
unable to handle back to back frames.
.TP
.B irtt I
\fBirtt \fII\fR
set the initial round trip time (irtt) for TCP connections over this
route to I milliseconds (1-12000). This is typically only used on
route to \fII\fR milliseconds (1-12000). This is typically only used on
AX.25 networks. If omitted the RFC 1122 default of 300ms is used.
.TP
.B reject
install a blocking route, which will force a route lookup to fail.
This is for example used to mask out networks before using the default
route. This is NOT for firewalling.
route. This is NOT for firewalling.
.TP
.B mod, dyn, reinstate
install a dynamic or modified route. These flags are for diagnostic
purposes, and are generally only set by routing daemons.
.TP
.B dev If
\fBdev \fIIf\fR
force the route to be associated with the specified device, as the
kernel will otherwise try to determine the device on its own (by
checking already existing routes and device specifications, and where
the route is added to). In most normal networks you won't need this.
If
.B dev If
If \fBdev \fIIf\fR
is the last option on the command line, the word
.B dev
may be omitted, as it's the default. Otherwise the order of the route