xref: /netbsd-src/sbin/route/route.8 (revision 4c353c381516b081892372c3a058535456a68976)
1*4c353c38Suwe.\"	$NetBSD: route.8,v 1.65 2021/01/02 22:02:27 uwe Exp $
20114e805Scgd.\"
34c8599d3Smycroft.\" Copyright (c) 1983, 1991, 1993
44c8599d3Smycroft.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
14276d62f6Sagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
305e45f6e8Slukem.\"     @(#)route.8	8.4 (Berkeley) 6/1/94
31346aa5ddScgd.\"
32ad93f4b7Schristos.Dd August 29, 2020
3361f28255Scgd.Dt ROUTE 8
3473f545bbSwiz.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm route
37d12a6758Swiz.Nd manually manipulate the routing tables
3861f28255Scgd.Sh SYNOPSIS
39c9d9a2a1Slukem.Nm
402bd97efcSchristos.Op Fl dfLnqSsTtv
4161f28255Scgd.Ar command
4261f28255Scgd.Oo
4361f28255Scgd.Op Ar modifiers
4461f28255Scgd.Ar args
4561f28255Scgd.Oc
4661f28255Scgd.Sh DESCRIPTION
47c9d9a2a1Slukem.Nm
484c8599d3Smycroftis a utility used to manually manipulate the network
493d7afc6dSfairrouting tables.
50e0e227f2SmanuExcept for setting up the default route, it is normally not needed,
51e0e227f2Smanuas a system routing table management daemon such as
5261f28255Scgd.Xr routed 8 ,
5361f28255Scgdshould tend to this task.
5461f28255Scgd.Pp
55e0e227f2Smanu.Nm
56e0e227f2Smanucan be used to modify nearly any aspect of the routing policy,
57e0e227f2Smanuexcept packet forwarding, which can be manipulated through the
58e0e227f2Smanu.Xr sysctl 8
59e0e227f2Smanucommand.
60e0e227f2Smanu.Pp
614c8599d3SmycroftThe
62c9d9a2a1Slukem.Nm
634c8599d3Smycroftutility supports a limited number of general options,
644c8599d3Smycroftbut a rich command language, enabling the user to specify
654c8599d3Smycroftany arbitrary request that could be delivered via the
664c8599d3Smycroftprogrammatic interface discussed in
674c8599d3Smycroft.Xr route 4 .
6861f28255Scgd.Bl -tag -width Ds
6974d14744Schristos.It Fl d
7074d14744SchristosTurn on debugging
71a9db50e6Slukem.It Fl f
72a9db50e6SlukemRemove all routes (as per
73a9db50e6Slukem.Cm flush ) .
74a9db50e6SlukemIf used in conjunction with the
75a9db50e6Slukem.Cm add ,
76a9db50e6Slukem.Cm change ,
77a9db50e6Slukem.Cm delete
78a9db50e6Slukemor
79a9db50e6Slukem.Cm get
80a9db50e6Slukemcommands,
81a9db50e6Slukem.Nm
82a9db50e6Slukemremoves the routes before performing the command.
832bd97efcSchristos.It Fl L
842bd97efcSchristosDon't show link layer entries in routing table.
8561f28255Scgd.It Fl n
864c8599d3SmycroftBypasses attempts to print host and network names symbolically
873d7afc6dSfairwhen reporting actions.
883d7afc6dSfair(The process of translating between symbolic
894c8599d3Smycroftnames and numerical equivalents can be quite time consuming, and
904c8599d3Smycroftmay require correct operation of the network; thus it may be expedient
91788dcf90Smikelto forgo this, especially when attempting to repair networking operations).
9261f28255Scgd.It Fl q
93cdc62822SatatatSuppress all output from commands that manipulate the routing table.
94cc07c6e9Swiz.It Fl S
95cc07c6e9SwizPrint a space when a flag is missing so that flags are vertically aligned
96cc07c6e9Swizinstead of printing the flags that are set as a contiguous string.
97cdc62822Satatat.It Fl s
98cdc62822Satatat(short) Suppresses all output from a
99cdc62822Satatat.Cm get
100cdc62822Satatatcommand except for the actual gateway that will be used.
101cdc62822SatatatHow the gateway is printed depends on the type of route being looked up.
10274d14744Schristos.It Fl T
10374d14744SchristosShow tags in the route display.
10474d14744Schristos.It Fl t
10574d14744SchristosTest only, don't perform any actions.
106788dcf90Smikel.It Fl v
107788dcf90Smikel(verbose) Print additional details.
10861f28255Scgd.El
10961f28255Scgd.Pp
1104c8599d3SmycroftThe
111c9d9a2a1Slukem.Nm
112a5452153Sgwrutility provides several commands:
11361f28255Scgd.Pp
11461f28255Scgd.Bl -tag -width Fl -compact
11561f28255Scgd.It Cm add
11661f28255ScgdAdd a route.
11761f28255Scgd.It Cm flush
11861f28255ScgdRemove all routes.
119ce22377aSjrf.It Cm flushall
120ce22377aSjrfRemove all routes including the default gateway.
12161f28255Scgd.It Cm delete
12261f28255ScgdDelete a specific route.
12361f28255Scgd.It Cm change
12461f28255ScgdChange aspects of a route (such as its gateway).
12561f28255Scgd.It Cm get
12661f28255ScgdLookup and display the route for a destination.
127a5452153Sgwr.It Cm show
128a5452153SgwrPrint out the route table similar to "netstat \-r" (see
1293d7afc6dSfair.Xr netstat 1 ) .
13061f28255Scgd.It Cm monitor
13161f28255ScgdContinuously report any changes to the routing information base,
1324c8599d3Smycroftrouting lookup misses, or suspected network partitionings.
13361f28255Scgd.El
13461f28255Scgd.Pp
13561f28255ScgdThe monitor command has the syntax
13661f28255Scgd.Pp
13761f28255Scgd.Bd -filled -offset indent -compact
138a9f7f104Swiz.Nm
139a9f7f104Swiz.Op Fl n
14061f28255Scgd.Cm monitor
141a49d9c85Sozaki-r.Op Fl c Ar count
14261f28255Scgd.Ed
14361f28255Scgd.Pp
144a49d9c85Sozaki-rIf
145a49d9c85Sozaki-r.Ar count
146a49d9c85Sozaki-ris specified,
147a49d9c85Sozaki-r.Nm
148a49d9c85Sozaki-rexits after receiving
149a49d9c85Sozaki-r.Ar count
150a49d9c85Sozaki-rrouting messages.
151a49d9c85Sozaki-r.Pp
15261f28255ScgdThe flush command has the syntax
15361f28255Scgd.Pp
15461f28255Scgd.Bd -filled -offset indent -compact
155a9f7f104Swiz.Nm
156a9f7f104Swiz.Op Fl n
15761f28255Scgd.Cm flush
15861f28255Scgd.Op Ar family
15961f28255Scgd.Ed
16061f28255Scgd.Pp
1614c8599d3SmycroftIf the
1624c8599d3Smycroft.Cm flush
1634c8599d3Smycroftcommand is specified,
164c9d9a2a1Slukem.Nm
1654c8599d3Smycroftwill ``flush'' the routing tables of all gateway entries.
166788dcf90SmikelWhen the address family is specified by any of the
167d9349e61Schristos.Fl atalk ,
168d2111251Sitojun.Fl inet ,
16900875860Skefren.Fl inet6 ,
17061f28255Scgdor
17100875860Skefren.Fl mpls
1724c8599d3Smycroftmodifiers, only routes having destinations with addresses in the
17385cc2d10Shubertfdelineated family will be manipulated.
17461f28255Scgd.Pp
17561f28255ScgdThe other commands have the following syntax:
17661f28255Scgd.Pp
17761f28255Scgd.Bd -filled -offset indent -compact
178a9f7f104Swiz.Nm
179a9f7f104Swiz.Op Fl n
18061f28255Scgd.Ar command
18161f28255Scgd.Op Fl net No \&| Fl host
18261f28255Scgd.Ar destination gateway
18361f28255Scgd.Ed
18461f28255Scgd.Pp
18561f28255Scgdwhere
18661f28255Scgd.Ar destination
187788dcf90Smikelis the destination host or network, and
18861f28255Scgd.Ar gateway
1894c8599d3Smycroftis the next-hop intermediary via which packets should be routed.
1904c8599d3SmycroftRoutes to a particular host may be distinguished from those to
1914c8599d3Smycrofta network by interpreting the Internet address specified as the
192788dcf90Smikel.Ar destination
193788dcf90Smikelargument.
1944c8599d3SmycroftThe optional modifiers
19561f28255Scgd.Fl net
19661f28255Scgdand
19761f28255Scgd.Fl host
19861f28255Scgdforce the destination to be interpreted as a network or a host, respectively.
19961f28255ScgdOtherwise, if the
20061f28255Scgd.Ar destination
20161f28255Scgdhas a ``local address part'' of
202788dcf90Smikel.Dv INADDR_ANY ,
20361f28255Scgdor if the
20461f28255Scgd.Ar destination
20561f28255Scgdis the symbolic name of a network, then the route is
20661f28255Scgdassumed to be to a network; otherwise, it is presumed to be a
20761f28255Scgdroute to a host.
208627957ebSitojunOptionally, the
209627957ebSitojun.Ar destination
210627957ebSitojuncan also be specified in the
211627957ebSitojun.Ar net Ns / Ns Ar bits
212627957ebSitojunformat.
21361f28255Scgd.Pp
21461f28255ScgdFor example,
21561f28255Scgd.Li 128.32
21661f28255Scgdis interpreted as
21761f28255Scgd.Fl host Li 128.0.0.32 ;
21861f28255Scgd.Li 128.32.130
21961f28255Scgdis interpreted as
22061f28255Scgd.Fl host Li 128.32.0.130 ;
22161f28255Scgd.Fl net Li 128.32
22261f28255Scgdis interpreted as
22361f28255Scgd.Li 128.32.0.0 ;
22461f28255Scgdand
22561f28255Scgd.Fl net Li 128.32.130
22661f28255Scgdis interpreted as
22761f28255Scgd.Li 128.32.130.0 .
22861f28255Scgd.Pp
229b77fb2a4SchristosThe keyword
230b77fb2a4Schristos.Cm default
231b77fb2a4Schristoscan be used as the
232b77fb2a4Schristos.Ar destination
233b77fb2a4Schristosto set up a default route to a smart
234b77fb2a4Schristos.Ar gateway .
235b77fb2a4SchristosIf no other routes match, this default route will be used as a last resort.
236b77fb2a4Schristos.Pp
2374c8599d3SmycroftIf the destination is directly reachable
2384c8599d3Smycroftvia an interface requiring
2394c8599d3Smycroftno intermediary system to act as a gateway, the
24061f28255Scgd.Fl interface
24161f28255Scgdmodifier should be specified;
24261f28255Scgdthe gateway given is the address of this host on the common network,
24361f28255Scgdindicating the interface to be used for transmission.
24461f28255Scgd.Pp
24561f28255ScgdThe optional modifiers
246d9349e61Schristos.Fl atalk ,
24761f28255Scgdand
2484c8599d3Smycroft.Fl link
24961f28255Scgdspecify that all subsequent addresses are in the
250d9349e61Schristos.Tn AppleTalk
251162b461bSsevanaddress family,
25226f4e9f9Syamtor are specified as link-level addresses in the form described in
25326f4e9f9Syamt.Xr link_addr 3 ,
25461f28255Scgdand the names must be numeric specifications rather than
25561f28255Scgdsymbolic names.
25661f28255Scgd.Pp
257708985b7SkefrenThe optional modifier
25800875860Skefren.Fl tag
259af979664Sdhollandspecifies an address associated with the route.
260708985b7SkefrenHow the address is used is specific to the address family of
261708985b7Skefrenthe destination and the interface used to forward the packet.
262708985b7SkefrenCurrently route tags are consumed only by the
263708985b7Skefren.Xr mpls 4
264af979664Sdhollandstack; therefore
265708985b7Skefren.Nm
266708985b7Skefrenassumes that the subsequent addresses are in the
26700875860Skefren.Tn MPLS
26800875860Skefrenaddress family.
26900875860SkefrenSee
27099f3bafaSdholland.Xr mpls 4
271af979664Sdhollandfor examples of setting routes involving MPLS.
27200875860Skefren.Pp
27361f28255ScgdThe optional
27461f28255Scgd.Fl netmask
27561f28255Scgdqualifier is intended
27661f28255Scgdto achieve the effect of an
27761f28255Scgd.Tn ESIS
2784c8599d3Smycroftredirect with the netmask option,
2794c8599d3Smycroftor to manually add subnet routes with
2804c8599d3Smycroftnetmasks different from that of the implied network interface
2814c8599d3Smycroft(as would otherwise be communicated using the OSPF or ISIS routing protocols).
28261f28255ScgdOne specifies an additional ensuing address parameter
28361f28255Scgd(to be interpreted as a network mask).
284788dcf90SmikelThe implicit network mask generated in the
285788dcf90Smikel.Dv AF_INET
286788dcf90Smikelcase
28761f28255Scgdcan be overridden by making sure this option follows the destination parameter.
288d2111251Sitojun.Fl prefixlen
289507c97b6Sitojunis also available for similar purpose, in IPv4 and IPv6 case.
29061f28255Scgd.Pp
2914c8599d3SmycroftRoutes have associated flags which influence operation of the protocols
2924c8599d3Smycroftwhen sending to destinations matched by the routes.
29327fad02cSchristosThese flags are displayed using the following ID characters in the routing
29427fad02cSchristosdisplay and may be set (or sometimes cleared)
2954c8599d3Smycroftby indicating the following corresponding modifiers:
29627fad02cSchristos.Bl -column "ID" "xnoblackhole" "xRTF_BLACKHOLE" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
29727fad02cSchristos.It Sy "ID" Ta Sy "Modifier" Ta Sy " Flag Bit" Ta Sy "Description"
29827fad02cSchristos.It Li 1 Ta -proto1 Ta " RTF_PROTO1" Ta set protocol specific flag #1
29927fad02cSchristos.It Li 2 Ta -proto2 Ta " RTF_PROTO2" Ta set protocol specific flag #2
30027fad02cSchristos.It Li B Ta -blackhole Ta " RTF_BLACKHOLE" Ta discard pkts (during updates)
30127fad02cSchristos.It Li " " Ta -noblackhole Ta ~RTF_BLACKHOLE Ta clear blackhole flag
302ba49a143Suwe.It Li b Ta "" Ta " RTF_BROADCAST" Ta route represents a broadcast address
30309973b35Sozaki-r.It Li C Ta -cloning Ta " RTF_CLONING" Ta  (deprecated) same as
30409973b35Sozaki-r.Fl connected
30509973b35Sozaki-r.It Li " " Ta -nocloning Ta ~RTF_CLONING Ta (deprecated) same as
30609973b35Sozaki-r.Fl noconnected
30709973b35Sozaki-r.It Li C Ta -connected Ta " RTF_CONNECTED" Ta  treat as a connected route
30809973b35Sozaki-r.It Li " " Ta -noconnected Ta ~RTF_CONNECTED Ta stop treating a connected route
30927fad02cSchristos.It Li D Ta "" Ta " RTF_DYNAMIC" Ta created dynamically (redirect)
310*4c353c38Suwe.It Li G Ta "" Ta " RTF_GATEWAY" Ta forward to dest by intermediary
311*4c353c38Suwe.It Li " " Ta -iface Ta ~RTF_GATEWAY Ta destination is directly reachable
31227fad02cSchristos.It Li H Ta "" Ta " RTF_HOST" Ta host entry (net otherwise)
313ad93f4b7Schristos.It Li L Ta "" Ta " RTF_LLDATA" Ta local link, generated by ARP or NDP
314ba49a143Suwe.It Li l Ta "" Ta " RTF_LOCAL" Ta route represents a local address
31527fad02cSchristos.It Li M Ta "" Ta " RTF_MODIFIED" Ta modified dynamically (redirect)
31627fad02cSchristos.It Li p Ta -proxy Ta " RTF_ANNOUNCE" Ta make entry a link level proxy
31727fad02cSchristos.It Li R Ta -reject Ta " RTF_REJECT" Ta send ICMP unreachable on match
31827fad02cSchristos.It Li " " Ta -noreject Ta ~RTF_REJECT Ta clear reject flag
31927fad02cSchristos.It Li S Ta -static Ta " RTF_STATIC" Ta manually added route
32027fad02cSchristos.It Li " " Ta -nostatic Ta ~RTF_STATIC Ta pretend route added automatically
32127fad02cSchristos.It Li U Ta "" Ta " RTF_UP" Ta route usable
32227fad02cSchristos.El
3234c8599d3Smycroft.Pp
32461f28255ScgdThe optional modifiers
32561f28255Scgd.Fl rtt ,
32661f28255Scgd.Fl rttvar ,
32761f28255Scgd.Fl sendpipe ,
32861f28255Scgd.Fl recvpipe ,
32961f28255Scgd.Fl mtu ,
33061f28255Scgd.Fl hopcount ,
33161f28255Scgd.Fl expire ,
33261f28255Scgdand
33361f28255Scgd.Fl ssthresh
3344c8599d3Smycroftprovide initial values to quantities maintained in the routing entry
3354c8599d3Smycroftby transport level protocols, such as TCP or TP4.
33661f28255ScgdThese may be individually locked by preceding each such modifier to
33761f28255Scgdbe locked by
33861f28255Scgdthe
33961f28255Scgd.Fl lock
34061f28255Scgdmeta-modifier, or one can
34161f28255Scgdspecify that all ensuing metrics may be locked by the
34261f28255Scgd.Fl lockrest
34361f28255Scgdmeta-modifier.
34461f28255Scgd.Pp
34561f28255ScgdIn a
34661f28255Scgd.Cm change
34761f28255Scgdor
34861f28255Scgd.Cm add
34961f28255Scgdcommand where the destination and gateway are not sufficient to specify
350e240adbdSjoergthe route the
35161f28255Scgd.Fl ifp
35261f28255Scgdor
35361f28255Scgd.Fl ifa
35461f28255Scgdmodifiers may be used to determine the interface or interface address.
35561f28255Scgd.Pp
35661f28255ScgdAll symbolic names specified for a
35761f28255Scgd.Ar destination
35861f28255Scgdor
35961f28255Scgd.Ar gateway
36061f28255Scgdare looked up first as a host name using
36161f28255Scgd.Xr gethostbyname 3 .
36261f28255ScgdIf this lookup fails,
36361f28255Scgd.Xr getnetbyname 3
36461f28255Scgdis then used to interpret the name as that of a network.
36561f28255Scgd.Pp
366c9d9a2a1Slukem.Nm
36761f28255Scgduses a routing socket and the new message types
368788dcf90Smikel.Dv RTM_ADD ,
369788dcf90Smikel.Dv RTM_DELETE ,
370788dcf90Smikel.Dv RTM_GET ,
37161f28255Scgdand
372788dcf90Smikel.Dv RTM_CHANGE .
37361f28255ScgdAs such, only the super-user may modify
37461f28255Scgdthe routing tables.
3757dd6e69dSwiz.Sh EXIT STATUS
37615957601Swiz.Ex -std route
37709cbac4eSwizThis includes the use of the
3787dd6e69dSwiz.Cm get
3797dd6e69dSwizcommand to look up a route that is incomplete.
380e0e227f2Smanu.Sh EXAMPLES
381e0e227f2SmanuThis sets the default route to 192.168.0.1:
382e0e227f2Smanu.Dl route add default 192.168.0.1
383e0e227f2SmanuThis shows all routes, without DNS resolution (this is useful if the
384e0e227f2SmanuDNS is not available):
385e0e227f2Smanu.Dl route -n show
386e0e227f2SmanuTo install a static route through 10.200.0.1 to reach the network
387e0e227f2Smanu192.168.1.0/28, use this:
388d3e55680Sitojun.Dl route add -net 192.168.1.0 -netmask 255.255.255.240 10.200.0.1
38961f28255Scgd.Sh DIAGNOSTICS
39061f28255Scgd.Bl -tag -width Ds
39161f28255Scgd.It Sy "add [host \&| network ] %s: gateway %s flags %x"
3923d7afc6dSfairThe specified route is being added to the tables.
3933d7afc6dSfairThe values printed are from the routing table entry supplied in the
39461f28255Scgd.Xr ioctl 2
39561f28255Scgdcall.
39661f28255ScgdIf the gateway address used was not the primary address of the gateway
39761f28255Scgd(the first one returned by
39861f28255Scgd.Xr gethostbyname 3 ) ,
39961f28255Scgdthe gateway address is printed numerically as well as symbolically.
400f4609c55Sbgrayson.It Sy "delete [ host \&| network ] %s: gateway %s flags %x"
40161f28255ScgdAs above, but when deleting an entry.
40261f28255Scgd.It Sy "%s %s done"
40361f28255ScgdWhen the
40461f28255Scgd.Cm flush
40561f28255Scgdcommand is specified, each routing table entry deleted
40661f28255Scgdis indicated with a message of this form.
40761f28255Scgd.It Sy "Network is unreachable"
40861f28255ScgdAn attempt to add a route failed because the gateway listed was not
40961f28255Scgdon a directly-connected network.
41061f28255ScgdThe next-hop gateway must be given.
41161f28255Scgd.It Sy "not in table"
41261f28255ScgdA delete operation was attempted for an entry which
41361f28255Scgdwasn't present in the tables.
41461f28255Scgd.It Sy "routing table overflow"
41561f28255ScgdAn add operation was attempted, but the system was
41661f28255Scgdlow on resources and was unable to allocate memory
41761f28255Scgdto create the new entry.
418533cb559Scarrel.It Sy "Permission denied"
4193d7afc6dSfairThe attempted operation is privileged.
4203d7afc6dSfairOnly root may modify the routing tables.
4213d7afc6dSfairThese privileges are enforced by the kernel.
42261f28255Scgd.El
42361f28255Scgd.Sh SEE ALSO
42400875860Skefren.Xr mpls 4 ,
4257dd6e69dSwiz.Xr netintro 4 ,
4267dd6e69dSwiz.Xr route 4 ,
4277dd6e69dSwiz.Xr routed 8 ,
4287dd6e69dSwiz.Xr sysctl 8
42961f28255Scgd.Sh HISTORY
43061f28255ScgdThe
43161f28255Scgd.Nm
43261f28255Scgdcommand appeared in
43361f28255Scgd.Bx 4.2 .
4349e2ce611SitojunIPv6 support was added by WIDE/KAME project.
43509973b35Sozaki-r.Pp
43609973b35Sozaki-rSince
43709973b35Sozaki-r.Nx 8.0 ,
43809973b35Sozaki-r.Fl cloned ,
43909973b35Sozaki-r.Fl nocloned ,
44009973b35Sozaki-r.Fl llinfo
44109973b35Sozaki-rand
44209973b35Sozaki-r.Fl xresolve
44309973b35Sozaki-rwere obsolete and
44409973b35Sozaki-r.Fl cloning
44509973b35Sozaki-rand
44609973b35Sozaki-r.Fl nocloning
44709973b35Sozaki-rwere deprecated.
44809973b35Sozaki-r.Fl connected
44909973b35Sozaki-rand
45009973b35Sozaki-r.Fl noconnected
45109973b35Sozaki-rappeared in
45209973b35Sozaki-r.Nx 8.0 .
45361f28255Scgd.Sh BUGS
45461f28255ScgdThe first paragraph may have slightly exaggerated
455d110bb97Smikel.Xr routed 8 Ns 's
45661f28255Scgdabilities.
457d2111251Sitojun.Pp
458d2111251SitojunSome uses of the
459d2111251Sitojun.Fl ifa
460d2111251Sitojunor
461d2111251Sitojun.Fl ifp
462d2111251Sitojunmodifiers with the add command will incorrectly fail with a
463d2111251Sitojun.Dq Network is unreachable
464d2111251Sitojunmessage if there is no default route.
465d2111251SitojunSee case
466d2111251Sitojun.Dv RTM_ADD
467d2111251Sitojunin
468d2111251Sitojun.Pa sys/net/rtsock.c:route_output
469d2111251Sitojunfor details.
470