76
use the specified address family (eg `inet'; use `route \-\-help' for a full
76
use the specified address family (eg `inet'; use `route --help' for a full
81
81
operate on the kernel's FIB (Forwarding Information Base) routing
83
83
This is the default.
86
86
operate on the kernel's routing cache.
141
141
set the TCP Maximum Segment Size (MSS) for connections over this route
143
143
The default is the device MTU minus headers, or a lower MTU when path mtu
144
discovery occurred. This setting can be used to force smaller TCP packets on the
144
discovery occured. This setting can be used to force smaller TCP packets on the
145
145
other end when path mtu discovery does not work (usually because of
146
146
misconfigured firewalls that block ICMP Fragmentation Needed)
182
.B route add \-net 127.0.0.0 netmask 255.0.0.0 dev lo
183
adds the normal loopback entry, using netmask 255.0.0.0 and associated with the
184
"lo" device (assuming this device was previously set up correctly with
182
.B route add -net 127.0.0.0
183
adds the normal loopback entry, using netmask 255.0.0.0 (class A net,
184
determined from the destination address) and associated with the
185
"lo" device (assuming this device was prviously set up correctly with
185
186
.BR ifconfig (8)).
188
.B route add \-net 192.56.76.0 netmask 255.255.255.0 dev eth0
189
adds a route to the local network 192.56.76.x via
190
"eth0". The word "dev" can be omitted here.
194
deletes the current default route, which is labeled "default" or 0.0.0.0
195
in the destination field of the current routing table.
198
.B route add default gw mango\-gw
189
.B route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
190
adds a route to the network 192.56.76.x via
191
"eth0". The Class C netmask modifier is not really necessary here because
192
192.* is a Class C IP address. The word "dev" can be omitted here.
195
.B route add default gw mango-gw
199
196
adds a default route (which will be used if no other route matches).
200
All packets using this route will be gatewayed through "mango\-gw". The
197
All packets using this route will be gatewayed through "mango-gw". The
201
198
device which will actually be used for that route depends on how we
202
can reach "mango\-gw" - the static route to "mango\-gw" will have to be
199
can reach "mango-gw" - the static route to "mango-gw" will have to be
208
205
"ipx4" is the SLIP host).
211
.B route add \-net 192.57.66.0 netmask 255.255.255.0 gw ipx4
208
.B route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
212
209
This command adds the net "192.57.66.x" to be gatewayed through the former
213
210
route to the SLIP interface.
216
.B route add \-net 224.0.0.0 netmask 240.0.0.0 dev eth0
213
.B route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
217
214
This is an obscure one documented so people know how to do it. This sets
218
215
all of the class D (multicast) IP routes to go via "eth0". This is the
219
216
correct normal configuration line with a multicasting kernel.
222
.B route add \-net 10.0.0.0 netmask 255.0.0.0 reject
219
.B route add -net 10.0.0.0 netmask 255.0.0.0 reject
223
220
This installs a rejecting route for the private network "10.x.x.x."
285
282
Number of references to this route. (Not used in the Linux kernel.)
288
Count of lookups for the route. Depending on the use of \-F and \-C this will
289
be either route cache misses (\-F) or hits (\-C).
285
Count of lookups for the route. Depending on the use of -F and -C this will
286
be either route cache misses (-F) or hits (-C).
292
289
Interface to which packets for this route will be sent.
295
Default maximum segment size for TCP connections over this route.
292
Default maximum segement size for TCP connections over this route.
298
295
Default window size for TCP connections over this route.
326
323
Linus Torvalds for pl15. Alan Cox added the mss and window options for
327
324
Linux 1.1.22. irtt support and merged with netstat from Bernd Eckenfels.
329
Currently maintained by Phil Blundell <Philip.Blundell@pobox.com> and Bernd Eckenfels <net-tools@lina.inka.de>.
326
Currently maintained by Phil Blundell <Philip.Blundell@pobox.com>.