Optional
advmssThe MSS ('Maximal Segment Size') to advertise to these destinations when establishing TCP connections.
If it is not given, Linux uses a default value calculated from the first hop device MTU.
(If the path to these destination is asymmetric, this guess may be wrong.)
Optional
asXXX
Optional
to?: trueOptional
congctlSets a specific TCP congestion control algorithm only for a given destination.
If not specified, Linux keeps the current global default TCP congestion control algorithm, or the one set from the application.
If the modifier lock is not used, an application may nevertheless overwrite the suggested congestion control algorithm for that destination. If the modifier lock is used, then an application is not allowed to overwrite the specified congestion control algorithm for that destination, thus it will be enforced/guaranteed to use the proposed algorithm.
Optional
cwndThe clamp for congestion window.
Optional
devThe output device name.
Optional
dsfieldOptional
encapAttach tunnel encapsulation attributes to this route.
Optional
expiresThe route will be deleted after the expires time. Only support IPv6 at present.
Optional
fastopen_Enable TCP Fastopen without a cookie for connections to this destination.
Optional
featuresEnable or disable per-route features.
Only available feature at this time is ecn to enable explicit congestion notification when initiating connections to the given destination network.
When responding to a connection request from the given network, ecn
will also be used even if
the net.ipv4.tcp_ecn
sysctl is set to 0
.
Optional
initcwndThe initial congestion window size for connections to this destination. Actual window size is this value multiplied by the MSS (``Maximal Segment Size'') for same connection. The default is zero, meaning to use the values specified in RFC2414.
Optional
initrwndThe initial receive window size for connections to this destination. Actual window size is this value multiplied by the MSS of the connection. The default value is zero, meaning to use Slow Start value.
Optional
metricThe preference value of the route. NUMBER is an arbitrary 32bit number, where routes with lower values are preferred.
Optional
mtuThe MTU along the path to the destination.
Optional
nexthopsThe nexthop of a multipath route.
NEXTHOP is a complex value with its own syntax similar to the top level argument lists.
Optional
nhidUse nexthop object with given id as nexthop specification.
Optional
onlinkPretend that the nexthop is directly attached to this link, even if it does not match any interface prefix.
Optional
pervasiveXXX
Optional
prefThe IPv6 route preference. PREF is a string specifying the route preference as defined in RFC4191 for Router Discovery messages.
Optional
preferenceOptional
protoThe routing protocol identifier of this route.
RTPROTO may be a number or a string from the file /etc/iproute2/rt_protos
.
If the routing protocol ID is not given, ip assumes protocol boot (i.e. it assumes the route was added by someone who doesn't understand what they are doing).
Several protocol values have a fixed interpretation.
Optional
protocolOptional
quickackEnable or disable quick ack for connections to this destination.
Optional
realmsXXX
Optional
reorderingMaximal reordering on the path to this destination.
If it is not given, Linux uses the value selected with sysctl variable net/ipv4/tcp_reordering
.
Optional
rto_The minimum TCP Retransmission TimeOut to use when communicating with this destination. Values are specified as with rtt above.
Optional
rttThe initial RTT ('Round Trip Time') estimate.
If no suffix is specified the units are raw values passed directly to the routing code to maintain compatibility with previous releases.
Otherwise if a suffix of s
, sec
or secs
is used to specify seconds and m
s, msec
or msecs
to specify
milliseconds.
X
Optional
rttvarThe initial RTT variance estimate. Values are specified as with rtt above.
Optional
scopeThe scope of the destinations covered by the route prefix.
SCOPE_VAL may be a number or a string from the file /etc/iproute2/rt_scopes
.
If this parameter is omitted, ip assumes scope global
for all gatewayed unicast routes, scope link
for
direct unicast and broadcast routes and scope host
for local routes.
Optional
ssthreshAn estimate for the initial slow start threshold.
Optional
tableThe table to add this route to.
TABLEID may be a number or a string from the file /etc/iproute2/rt_tables. If this parameter is omitted, ip assumes the main table, with the exception of local, broadcast and nat routes, which are put into the local table by default.
The destination address.
Optional
tosThe Type Of Service (TOS) key. This key has no associated mask and the longest match is understood as: First, compare the TOS of the route and of the packet.
If they are not equal, then the packet may still match a route with a zero TOS.
TOS is either an 8 bit hexadecimal number or an identifier from /etc/iproute2/rt_dsfield
.
Optional
ttl-Control whether TTL should be propagated from any encap into the un-encapsulated packet, overriding any global configuration.
Only supported for MPLS at present.
Optional
typeThe destination prefix of the route.
If TYPE is omitted, ip
assumes type RouteTypes.Unicast.
PREFIX is an IP or IPv6 address optionally followed by a slash and the prefix length.
If the length of the prefix is missing, ip
assumes a full-length host route.
There is also a special PREFIX default
- which is equivalent to IP 0/0
or to IPv6 ::/0
.
Optional
viaThe address of the nexthop router, in the address family FAMILY. Actually, the sense of this field depends on the route type. For normal unicast routes it is either the true next hop router or, if it is a direct route installed in BSD compatibility mode, it can be a local address of the interface. For NAT routes it is the first address of the block of translated IP destinations.
The internal buffer used in iproute2 limits the maximum number of nexthops that may be specified in one go. If only ADDRESS is given, the current buffer size allows for 144 IPv6 nexthops and 253 IPv4 ones. For IPv4, this effectively limits the number of nexthops possible per route.
With IPv6, further nexthops may be appended to the same route via ip route append command.
Optional
family?: AddressFamiliesOptional
weightIs a weight for this element of a multipath route reflecting its relative bandwidth or quality.
Optional
windowXXX
Generated using TypeDoc
Route add options.