18fae3551SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 68fae3551SRodney W. Grimes.\" are met: 78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 88fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 108fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 118fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 128fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 138fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 148fae3551SRodney W. Grimes.\" without specific prior written permission. 158fae3551SRodney W. Grimes.\" 168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 198fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 268fae3551SRodney W. Grimes.\" SUCH DAMAGE. 278fae3551SRodney W. Grimes.\" 288fae3551SRodney W. Grimes.\" @(#)route.8 8.3 (Berkeley) 3/19/94 297f3dea24SPeter Wemm.\" $FreeBSD$ 308fae3551SRodney W. Grimes.\" 31fa967069SBruce M Simpson.Dd November 4, 2004 328fae3551SRodney W. Grimes.Dt ROUTE 8 331d36c899SRuslan Ermilov.Os 348fae3551SRodney W. Grimes.Sh NAME 358fae3551SRodney W. Grimes.Nm route 361cc580efSPhilippe Charnier.Nd manually manipulate the routing tables 378fae3551SRodney W. Grimes.Sh SYNOPSIS 387c7fb079SRuslan Ermilov.Nm 391cc580efSPhilippe Charnier.Op Fl dnqtv 408fae3551SRodney W. Grimes.Ar command 418fae3551SRodney W. Grimes.Oo 428fae3551SRodney W. Grimes.Op Ar modifiers 438fae3551SRodney W. Grimes.Ar args 448fae3551SRodney W. Grimes.Oc 458fae3551SRodney W. Grimes.Sh DESCRIPTION 46629e80efSPhilippe CharnierThe 47629e80efSPhilippe Charnier.Nm 48629e80efSPhilippe Charnierutility is used to manually manipulate the network 499806e231SRuslan Ermilovrouting tables. 509806e231SRuslan ErmilovIt normally is not needed, as a 5176a88626SChristian Brueffersystem routing table management daemon, such as 528fae3551SRodney W. Grimes.Xr routed 8 , 538fae3551SRodney W. Grimesshould tend to this task. 548fae3551SRodney W. Grimes.Pp 558fae3551SRodney W. GrimesThe 561cc580efSPhilippe Charnier.Nm 578fae3551SRodney W. Grimesutility supports a limited number of general options, 588fae3551SRodney W. Grimesbut a rich command language, enabling the user to specify 598fae3551SRodney W. Grimesany arbitrary request that could be delivered via the 608fae3551SRodney W. Grimesprogrammatic interface discussed in 618fae3551SRodney W. Grimes.Xr route 4 . 628fae3551SRodney W. Grimes.Pp 631cc580efSPhilippe CharnierThe following options are available: 641cc580efSPhilippe Charnier.Bl -tag -width indent 6576a88626SChristian Brueffer.It Fl d 6676a88626SChristian BruefferRun in debug-only mode, i.e., do not actually modify the routing table. 678fae3551SRodney W. Grimes.It Fl n 681cc580efSPhilippe CharnierBypass attempts to print host and network names symbolically 699806e231SRuslan Ermilovwhen reporting actions. 709806e231SRuslan Ermilov(The process of translating between symbolic 718fae3551SRodney W. Grimesnames and numerical equivalents can be quite time consuming, and 728fae3551SRodney W. Grimesmay require correct operation of the network; thus it may be expedient 7332704e57SDaniel Harristo forget this, especially when attempting to repair networking operations). 748fae3551SRodney W. Grimes.It Fl v 758fae3551SRodney W. Grimes(verbose) Print additional details. 768fae3551SRodney W. Grimes.It Fl q 77999ffea5SRuslan ErmilovSuppress all output from the 78999ffea5SRuslan Ermilov.Cm add , delete , 79999ffea5SRuslan Ermilovand 80999ffea5SRuslan Ermilov.Cm flush 81999ffea5SRuslan Ermilovcommands. 828fae3551SRodney W. Grimes.El 838fae3551SRodney W. Grimes.Pp 848fae3551SRodney W. GrimesThe 851cc580efSPhilippe Charnier.Nm 86064b93d5SAnton Berezinutility provides the following commands: 878fae3551SRodney W. Grimes.Pp 888fae3551SRodney W. Grimes.Bl -tag -width Fl -compact 898fae3551SRodney W. Grimes.It Cm add 908fae3551SRodney W. GrimesAdd a route. 918fae3551SRodney W. Grimes.It Cm flush 928fae3551SRodney W. GrimesRemove all routes. 938fae3551SRodney W. Grimes.It Cm delete 948fae3551SRodney W. GrimesDelete a specific route. 95064b93d5SAnton Berezin.It Cm del 96064b93d5SAnton BerezinAnother name for the 97064b93d5SAnton Berezin.Cm delete 98064b93d5SAnton Berezincommand. 998fae3551SRodney W. Grimes.It Cm change 1008fae3551SRodney W. GrimesChange aspects of a route (such as its gateway). 1018fae3551SRodney W. Grimes.It Cm get 1028fae3551SRodney W. GrimesLookup and display the route for a destination. 1038fae3551SRodney W. Grimes.It Cm monitor 1048fae3551SRodney W. GrimesContinuously report any changes to the routing information base, 1058fae3551SRodney W. Grimesrouting lookup misses, or suspected network partitionings. 1068fae3551SRodney W. Grimes.El 1078fae3551SRodney W. Grimes.Pp 1081cc580efSPhilippe CharnierThe monitor command has the syntax: 1098fae3551SRodney W. Grimes.Pp 11046eea498SRuslan Ermilov.Bd -ragged -offset indent -compact 1117c7fb079SRuslan Ermilov.Nm 1127c7fb079SRuslan Ermilov.Op Fl n 1138fae3551SRodney W. Grimes.Cm monitor 1148fae3551SRodney W. Grimes.Ed 1158fae3551SRodney W. Grimes.Pp 1161cc580efSPhilippe CharnierThe flush command has the syntax: 1178fae3551SRodney W. Grimes.Pp 11846eea498SRuslan Ermilov.Bd -ragged -offset indent -compact 1197c7fb079SRuslan Ermilov.Nm 1207c7fb079SRuslan Ermilov.Op Fl n 1218fae3551SRodney W. Grimes.Cm flush 1228fae3551SRodney W. Grimes.Op Ar family 1238fae3551SRodney W. Grimes.Ed 1248fae3551SRodney W. Grimes.Pp 1258fae3551SRodney W. GrimesIf the 1268fae3551SRodney W. Grimes.Cm flush 1278fae3551SRodney W. Grimescommand is specified, 1281cc580efSPhilippe Charnier.Nm 1298fae3551SRodney W. Grimeswill ``flush'' the routing tables of all gateway entries. 1308fae3551SRodney W. GrimesWhen the address family may is specified by any of the 1318fae3551SRodney W. Grimes.Fl osi , 1328fae3551SRodney W. Grimes.Fl xns , 133144b3534SJulian Elischer.Fl atalk , 134cfa1ca9dSYoshinobu Inoue.Fl inet6 , 1358fae3551SRodney W. Grimesor 1368fae3551SRodney W. Grimes.Fl inet 1378fae3551SRodney W. Grimesmodifiers, only routes having destinations with addresses in the 1388fae3551SRodney W. Grimesdelineated family will be deleted. 1398fae3551SRodney W. Grimes.Pp 1408fae3551SRodney W. GrimesThe other commands have the following syntax: 1418fae3551SRodney W. Grimes.Pp 14246eea498SRuslan Ermilov.Bd -ragged -offset indent -compact 1437c7fb079SRuslan Ermilov.Nm 1447c7fb079SRuslan Ermilov.Op Fl n 1458fae3551SRodney W. Grimes.Ar command 1468fae3551SRodney W. Grimes.Op Fl net No \&| Fl host 1478fae3551SRodney W. Grimes.Ar destination gateway 148ce6da1a9SRuslan Ermilov.Op Ar netmask 1498fae3551SRodney W. Grimes.Ed 1508fae3551SRodney W. Grimes.Pp 1518fae3551SRodney W. Grimeswhere 1528fae3551SRodney W. Grimes.Ar destination 1538fae3551SRodney W. Grimesis the destination host or network, 1548fae3551SRodney W. Grimes.Ar gateway 1558fae3551SRodney W. Grimesis the next-hop intermediary via which packets should be routed. 1568fae3551SRodney W. GrimesRoutes to a particular host may be distinguished from those to 1578fae3551SRodney W. Grimesa network by interpreting the Internet address specified as the 158ce6da1a9SRuslan Ermilov.Ar destination 159ce6da1a9SRuslan Ermilovargument. 1608fae3551SRodney W. GrimesThe optional modifiers 1618fae3551SRodney W. Grimes.Fl net 1628fae3551SRodney W. Grimesand 1638fae3551SRodney W. Grimes.Fl host 1648fae3551SRodney W. Grimesforce the destination to be interpreted as a network or a host, respectively. 1658fae3551SRodney W. GrimesOtherwise, if the 1668fae3551SRodney W. Grimes.Ar destination 16778c65517SGuy Helmerhas a 16878c65517SGuy Helmer.Dq local address part 16978c65517SGuy Helmerof 17078c65517SGuy HelmerINADDR_ANY 17178c65517SGuy Helmer.Pq Li 0.0.0.0 , 1728fae3551SRodney W. Grimesor if the 1738fae3551SRodney W. Grimes.Ar destination 1748fae3551SRodney W. Grimesis the symbolic name of a network, then the route is 1758fae3551SRodney W. Grimesassumed to be to a network; otherwise, it is presumed to be a 1768fae3551SRodney W. Grimesroute to a host. 177ce6da1a9SRuslan ErmilovOptionally, the 178ce6da1a9SRuslan Ermilov.Ar destination 179ce6da1a9SRuslan Ermilovcould also be specified in the 1801b33d61dSRuslan Ermilov.Ar net Ns / Ns Ar bits 181ce6da1a9SRuslan Ermilovformat. 1828fae3551SRodney W. Grimes.Pp 1838fae3551SRodney W. GrimesFor example, 1848fae3551SRodney W. Grimes.Li 128.32 1858fae3551SRodney W. Grimesis interpreted as 1868fae3551SRodney W. Grimes.Fl host Li 128.0.0.32 ; 1878fae3551SRodney W. Grimes.Li 128.32.130 1888fae3551SRodney W. Grimesis interpreted as 1898fae3551SRodney W. Grimes.Fl host Li 128.32.0.130 ; 1908fae3551SRodney W. Grimes.Fl net Li 128.32 1918fae3551SRodney W. Grimesis interpreted as 1928fae3551SRodney W. Grimes.Li 128.32.0.0; 1938fae3551SRodney W. Grimes.Fl net Li 128.32.130 1948fae3551SRodney W. Grimesis interpreted as 195ce6da1a9SRuslan Ermilov.Li 128.32.130.0; 196ce6da1a9SRuslan Ermilovand 1971b33d61dSRuslan Ermilov.Li 192.168.64/20 198ce6da1a9SRuslan Ermilovis interpreted as 1991b33d61dSRuslan Ermilov.Fl net Li 192.168.64 Fl netmask Li 255.255.240.0 . 2008fae3551SRodney W. Grimes.Pp 20178c65517SGuy HelmerA 20278c65517SGuy Helmer.Ar destination 20378c65517SGuy Helmerof 20478c65517SGuy Helmer.Ar default 20578c65517SGuy Helmeris a synonym for 20678c65517SGuy Helmer.Fl net Li 0.0.0.0 , 20778c65517SGuy Helmerwhich is the default route. 20878c65517SGuy Helmer.Pp 2098fae3551SRodney W. GrimesIf the destination is directly reachable 2108fae3551SRodney W. Grimesvia an interface requiring 2118fae3551SRodney W. Grimesno intermediary system to act as a gateway, the 2128fae3551SRodney W. Grimes.Fl interface 2138fae3551SRodney W. Grimesmodifier should be specified; 2148fae3551SRodney W. Grimesthe gateway given is the address of this host on the common network, 2158fae3551SRodney W. Grimesindicating the interface to be used for transmission. 216aa648cf8SJulian ElischerAlternately, if the interface is point to point the name of the interface 217aa648cf8SJulian Elischeritself may be given, in which case the route remains valid even 218072a289aSJulian Elischerif the local or remote addresses change. 2198fae3551SRodney W. Grimes.Pp 2208fae3551SRodney W. GrimesThe optional modifiers 2218fae3551SRodney W. Grimes.Fl xns , 2228fae3551SRodney W. Grimes.Fl osi , 223144b3534SJulian Elischer.Fl atalk , 2248fae3551SRodney W. Grimesand 2258fae3551SRodney W. Grimes.Fl link 2268fae3551SRodney W. Grimesspecify that all subsequent addresses are in the 227144b3534SJulian Elischer.Tn XNS , 228144b3534SJulian Elischer.Tn OSI , 229144b3534SJulian Elischeror 230144b3534SJulian Elischer.Tn AppleTalk 2318fae3551SRodney W. Grimesaddress families, 2328fae3551SRodney W. Grimesor are specified as link-level addresses, 2338fae3551SRodney W. Grimesand the names must be numeric specifications rather than 2348fae3551SRodney W. Grimessymbolic names. 2358fae3551SRodney W. Grimes.Pp 2368fae3551SRodney W. GrimesThe optional 2378fae3551SRodney W. Grimes.Fl netmask 238eee9b17eSPhilippe Charniermodifier is intended 2398fae3551SRodney W. Grimesto achieve the effect of an 2408fae3551SRodney W. Grimes.Tn OSI 2418fae3551SRodney W. Grimes.Tn ESIS 2428fae3551SRodney W. Grimesredirect with the netmask option, 2438fae3551SRodney W. Grimesor to manually add subnet routes with 2448fae3551SRodney W. Grimesnetmasks different from that of the implied network interface 2458fae3551SRodney W. Grimes(as would otherwise be communicated using the OSPF or ISIS routing protocols). 2468fae3551SRodney W. GrimesOne specifies an additional ensuing address parameter 2478fae3551SRodney W. Grimes(to be interpreted as a network mask). 2488fae3551SRodney W. GrimesThe implicit network mask generated in the AF_INET case 2498fae3551SRodney W. Grimescan be overridden by making sure this option follows the destination parameter. 2508fae3551SRodney W. Grimes.Pp 251cfa1ca9dSYoshinobu InoueFor 252cfa1ca9dSYoshinobu Inoue.Dv AF_INET6 , 253cfa1ca9dSYoshinobu Inouethe 254cfa1ca9dSYoshinobu Inoue.Fl prefixlen 255cfa1ca9dSYoshinobu Inouequalifier 256cfa1ca9dSYoshinobu Inoueis available instead of the 257cfa1ca9dSYoshinobu Inoue.Fl mask 258cfa1ca9dSYoshinobu Inouequalifier because non-continuous masks are not allowed in IPv6. 259cfa1ca9dSYoshinobu InoueFor example, 260cfa1ca9dSYoshinobu Inoue.Fl prefixlen Li 32 261cfa1ca9dSYoshinobu Inouespecifies network mask of 262cfa1ca9dSYoshinobu Inoue.Li ffff:ffff:0000:0000:0000:0000:0000:0000 263cfa1ca9dSYoshinobu Inoueto be used. 264cfa1ca9dSYoshinobu InoueThe default value of prefixlen is 64 to get along with 265cfa1ca9dSYoshinobu Inouethe aggregatable address. 266cfa1ca9dSYoshinobu InoueBut 0 is assumed if 267cfa1ca9dSYoshinobu Inoue.Cm default 268cfa1ca9dSYoshinobu Inoueis specified. 269cfa1ca9dSYoshinobu InoueNote that the qualifier works only for 270cfa1ca9dSYoshinobu Inoue.Dv AF_INET6 271cfa1ca9dSYoshinobu Inoueaddress family. 272cfa1ca9dSYoshinobu Inoue.Pp 2738fae3551SRodney W. GrimesRoutes have associated flags which influence operation of the protocols 2748fae3551SRodney W. Grimeswhen sending to destinations matched by the routes. 2758fae3551SRodney W. GrimesThese flags may be set (or sometimes cleared) 2768fae3551SRodney W. Grimesby indicating the following corresponding modifiers: 2778fae3551SRodney W. Grimes.Bd -literal 2788fae3551SRodney W. Grimes-cloning RTF_CLONING - generates a new route on use 2798fae3551SRodney W. Grimes-xresolve RTF_XRESOLVE - emit mesg on use (for external lookup) 2808fae3551SRodney W. Grimes-iface ~RTF_GATEWAY - destination is directly reachable 2818fae3551SRodney W. Grimes-static RTF_STATIC - manually added route 2828fae3551SRodney W. Grimes-nostatic ~RTF_STATIC - pretend route added by kernel or daemon 2838fae3551SRodney W. Grimes-reject RTF_REJECT - emit an ICMP unreachable when matched 2848fae3551SRodney W. Grimes-blackhole RTF_BLACKHOLE - silently discard pkts (during updates) 2858fae3551SRodney W. Grimes-proto1 RTF_PROTO1 - set protocol specific routing flag #1 2868fae3551SRodney W. Grimes-proto2 RTF_PROTO2 - set protocol specific routing flag #2 2878fae3551SRodney W. Grimes-llinfo RTF_LLINFO - validly translates proto addr to link addr 2888fae3551SRodney W. Grimes.Ed 2898fae3551SRodney W. Grimes.Pp 2908fae3551SRodney W. GrimesThe optional modifiers 2918fae3551SRodney W. Grimes.Fl rtt , 2928fae3551SRodney W. Grimes.Fl rttvar , 2938fae3551SRodney W. Grimes.Fl sendpipe , 2948fae3551SRodney W. Grimes.Fl recvpipe , 2958fae3551SRodney W. Grimes.Fl mtu , 2968fae3551SRodney W. Grimes.Fl hopcount , 2978fae3551SRodney W. Grimes.Fl expire , 2988fae3551SRodney W. Grimesand 2998fae3551SRodney W. Grimes.Fl ssthresh 3008fae3551SRodney W. Grimesprovide initial values to quantities maintained in the routing entry 3018fae3551SRodney W. Grimesby transport level protocols, such as TCP or TP4. 3028fae3551SRodney W. GrimesThese may be individually locked by preceding each such modifier to 3038fae3551SRodney W. Grimesbe locked by 3048fae3551SRodney W. Grimesthe 3058fae3551SRodney W. Grimes.Fl lock 3068fae3551SRodney W. Grimesmeta-modifier, or one can 3078fae3551SRodney W. Grimesspecify that all ensuing metrics may be locked by the 3088fae3551SRodney W. Grimes.Fl lockrest 3098fae3551SRodney W. Grimesmeta-modifier. 3108fae3551SRodney W. Grimes.Pp 3118fae3551SRodney W. GrimesIn a 3128fae3551SRodney W. Grimes.Cm change 3138fae3551SRodney W. Grimesor 3148fae3551SRodney W. Grimes.Cm add 3158fae3551SRodney W. Grimescommand where the destination and gateway are not sufficient to specify 3168fae3551SRodney W. Grimesthe route (as in the 3178fae3551SRodney W. Grimes.Tn ISO 3188fae3551SRodney W. Grimescase where several interfaces may have the 3198fae3551SRodney W. Grimessame address), the 3208fae3551SRodney W. Grimes.Fl ifp 3218fae3551SRodney W. Grimesor 3228fae3551SRodney W. Grimes.Fl ifa 3238fae3551SRodney W. Grimesmodifiers may be used to determine the interface or interface address. 3248fae3551SRodney W. Grimes.Pp 3251c59bf7dSRuslan ErmilovThe optional 3261c59bf7dSRuslan Ermilov.Fl proxy 3271c59bf7dSRuslan Ermilovmodifier specifies that the 3281c59bf7dSRuslan Ermilov.Dv RTF_LLINFO 3291c59bf7dSRuslan Ermilovrouting table entry is the 330c4d9468eSRuslan Ermilov.Dq published (proxy-only) 3311c59bf7dSRuslan Ermilov.Tn ARP 3321c59bf7dSRuslan Ermiloventry, as reported by 3331c59bf7dSRuslan Ermilov.Xr arp 8 . 3341c59bf7dSRuslan Ermilov.Pp 335a441e6c4SBruce M SimpsonThe optional 336a441e6c4SBruce M Simpson.Fl genmask 337a441e6c4SBruce M Simpsonmodifier specifies that a cloning mask is present. 338a441e6c4SBruce M SimpsonThis specifies the mask applied when determining if a child route 339a441e6c4SBruce M Simpsonshould be created. 340a441e6c4SBruce M SimpsonIt is only applicable to network routes with the 341a441e6c4SBruce M Simpson.Dv RTF_CLONING 342a441e6c4SBruce M Simpsonflag set. 343a441e6c4SBruce M Simpson.Pp 3448fae3551SRodney W. GrimesAll symbolic names specified for a 3458fae3551SRodney W. Grimes.Ar destination 3468fae3551SRodney W. Grimesor 3478fae3551SRodney W. Grimes.Ar gateway 3488fae3551SRodney W. Grimesare looked up first as a host name using 3498fae3551SRodney W. Grimes.Xr gethostbyname 3 . 3508fae3551SRodney W. GrimesIf this lookup fails, 3518fae3551SRodney W. Grimes.Xr getnetbyname 3 3528fae3551SRodney W. Grimesis then used to interpret the name as that of a network. 3538fae3551SRodney W. Grimes.Pp 354629e80efSPhilippe CharnierThe 355629e80efSPhilippe Charnier.Nm 356629e80efSPhilippe Charnierutility uses a routing socket and the new message types 3571c59bf7dSRuslan Ermilov.Dv RTM_ADD , RTM_DELETE , RTM_GET , 3588fae3551SRodney W. Grimesand 3591c59bf7dSRuslan Ermilov.Dv RTM_CHANGE . 3608fae3551SRodney W. GrimesAs such, only the super-user may modify 3618fae3551SRodney W. Grimesthe routing tables. 3626087df9eSRuslan Ermilov.Sh EXIT STATUS 3636087df9eSRuslan Ermilov.Ex -std 3648fae3551SRodney W. Grimes.Sh DIAGNOSTICS 36519ab52cbSDima Dorfman.Bl -diag 36619ab52cbSDima Dorfman.It "add [host \&| network ] %s: gateway %s flags %x" 3679806e231SRuslan ErmilovThe specified route is being added to the tables. 3689806e231SRuslan ErmilovThe 3698fae3551SRodney W. Grimesvalues printed are from the routing table entry supplied 3708fae3551SRodney W. Grimesin the 3718fae3551SRodney W. Grimes.Xr ioctl 2 3728fae3551SRodney W. Grimescall. 3738fae3551SRodney W. GrimesIf the gateway address used was not the primary address of the gateway 3748fae3551SRodney W. Grimes(the first one returned by 3758fae3551SRodney W. Grimes.Xr gethostbyname 3 ) , 3768fae3551SRodney W. Grimesthe gateway address is printed numerically as well as symbolically. 37719ab52cbSDima Dorfman.It "delete [ host \&| network ] %s: gateway %s flags %x" 3788fae3551SRodney W. GrimesAs above, but when deleting an entry. 37919ab52cbSDima Dorfman.It "%s %s done" 3808fae3551SRodney W. GrimesWhen the 3818fae3551SRodney W. Grimes.Cm flush 3828fae3551SRodney W. Grimescommand is specified, each routing table entry deleted 3838fae3551SRodney W. Grimesis indicated with a message of this form. 38419ab52cbSDima Dorfman.It "Network is unreachable" 3858fae3551SRodney W. GrimesAn attempt to add a route failed because the gateway listed was not 3868fae3551SRodney W. Grimeson a directly-connected network. 3878fae3551SRodney W. GrimesThe next-hop gateway must be given. 38819ab52cbSDima Dorfman.It "not in table" 3898fae3551SRodney W. GrimesA delete operation was attempted for an entry which 3900227791bSRuslan Ermilovwas not present in the tables. 39119ab52cbSDima Dorfman.It "routing table overflow" 3928fae3551SRodney W. GrimesAn add operation was attempted, but the system was 3938fae3551SRodney W. Grimeslow on resources and was unable to allocate memory 3948fae3551SRodney W. Grimesto create the new entry. 3951d36c899SRuslan Ermilov.It "gateway uses the same route" 3961d36c899SRuslan ErmilovA 3971d36c899SRuslan Ermilov.Cm change 3981d36c899SRuslan Ermilovoperation resulted in a route whose gateway uses the 3991d36c899SRuslan Ermilovsame route as the one being changed. 4001d36c899SRuslan ErmilovThe next-hop gateway should be reachable through a different route. 4018fae3551SRodney W. Grimes.El 4028fae3551SRodney W. Grimes.Sh SEE ALSO 4035521ff5aSRuslan Ermilov.\".Xr esis 4 , 4048fae3551SRodney W. Grimes.Xr netintro 4 , 4058fae3551SRodney W. Grimes.Xr route 4 , 4061c59bf7dSRuslan Ermilov.Xr arp 8 , 4075521ff5aSRuslan Ermilov.Xr IPXrouted 8 , 408bcff8e2aSMike Pritchard.Xr routed 8 409bcff8e2aSMike Pritchard.\".Xr XNSrouted 8 4108fae3551SRodney W. Grimes.Sh HISTORY 4118fae3551SRodney W. GrimesThe 4128fae3551SRodney W. Grimes.Nm 413629e80efSPhilippe Charnierutility appeared in 4148fae3551SRodney W. Grimes.Bx 4.2 . 4158fae3551SRodney W. Grimes.Sh BUGS 4168fae3551SRodney W. GrimesThe first paragraph may have slightly exaggerated 4171cc580efSPhilippe Charnier.Xr routed 8 Ns 's 4188fae3551SRodney W. Grimesabilities. 4192c9743caSBruce M Simpson.Pp 4202c9743caSBruce M SimpsonCurrently, routes with the 42121414470SRuslan Ermilov.Dv RTF_BLACKHOLE 4222c9743caSBruce M Simpsonflag set need to have the gateway set to an instance of the 4232c9743caSBruce M Simpson.Xr lo 4 4242c9743caSBruce M Simpsondriver, using the 4252c9743caSBruce M Simpson.Fl iface 4262c9743caSBruce M Simpsonoption, for the flag to have any effect; unless IP fast forwarding 4272c9743caSBruce M Simpsonis enabled, in which case the meaning of the flag will always 4282c9743caSBruce M Simpsonbe honored. 429