2 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GATEWAYS 4 "May 20, 2009"
8 gateways \- configuration file for /usr/sbin/in.routed IPv4 network routing
19 The \fB/etc/gateways\fR file is used by the routing daemon,
20 \fBin.routed\fR(1M). When the daemon starts, it reads \fB/etc/gateways\fR to
21 find such distant gateways that cannot be located using only information from a
22 routing socket, to discover if some of the local gateways are passive, and to
23 obtain other parameters.
26 The \fB/etc/gateways\fR file consists of a series of lines, each in one of the
27 two formats shown below or consisting of parameters described later. Blank
28 lines and lines starting with "\fB#\fR" are treated as comments.
31 One format specifies networks:
35 net Nname[/mask] gateway Gname metric value <passive | active | external>
41 The other format specifies hosts:
45 host \fIHname\fR gateway \fIGname\fR metric \fIvalue\fR <passive | active | external>
51 Host \fIhname\fR is equivalent to \fBnet \fInname\fR/32\fR.
54 The parameters in the lines shown above are described as follows:
58 \fB\fINname\fR or \fIHname\fR\fR
62 Name of the destination network or host. It can be a symbolic network name or
63 an Internet address specified in \fBdot\fR notation (see \fBinet\fR(3SOCKET)).
64 If it is a name, then it must either be defined in \fB/etc/networks\fR or
65 \fB/etc/hosts\fR, or a naming service must have been started before
76 An optional number between 1 and 32 indicating the netmask associated with
87 Name or address of the gateway to which RIP responses should be forwarded.
97 The hop count to the destination host or network.
103 \fB\fBpassive\fR | \fBactive\fR | \fBexternal\fR\fR
107 One of these keywords must be present to indicate whether the gateway should be
108 treated as passive or active, or whether the gateway is external to the scope
109 of the RIP protocol. A passive gateway is not expected to exchange routing
110 information, while gateways marked active should be willing to exchange RIP
111 packets. See \fBin.routed\fR(1M) for further details.
116 After turning on debugging in \fBin.routed\fR with the \fB-t\fR option, you can
117 see that lines that follow the format described above create pseudo-interfaces.
118 To set parameters for remote or external interfaces, use a line starting with
119 \fBif=alias(\fIHname\fR)\fR, \fBif=remote(\fIHname\fR)\fR, and so forth.
122 For backward compatibility with the previous Solaris \fBin.routed\fR
123 implementation, three special keyword formats are accepted. If present, these
124 forms must each be on a separate line, and must not be combined on the same
125 line with any of the keywords listed elsewhere in this document. These three
130 \fB\fBnorip \fIifname\fR\fR\fR
133 Disable all RIP processing on the specified interface.
139 \fB\fBnoripin \fIifname\fR\fR\fR
142 Disable the processing of received RIP responses on the specified interface.
148 \fB\fBnoripout \fIifname\fR\fR\fR
151 Disable RIP output on the specified interface.
156 Lines that start with neither \fBnet\fR nor \fBhost\fR must consist of one or
157 more of the following parameter settings, separated by commas or blanks:
161 \fB\fB\fR\fBif=\fIifname\fR\fR\fR
165 Indicates that the other parameters on the line apply only to the interface
166 name \fIifname\fR. If this parameter is not specified, then other parameters on
167 the line apply to all interfaces.
173 \fB\fBsubnet=\fInname\fR[/\fImask\fR][,\fImetric\fR]\fR\fR
177 Advertises a route to network nname with mask mask and the supplied metric
178 (default 1). This is useful for filling \fBholes\fR in CIDR allocations. This
179 parameter must appear by itself on a line. The network number must specify a
180 full, 32-bit value, as in \fB192.0.2.0\fR instead of \fB192.0.2\fR.
186 \fB\fBripv1_mask=\fInname\fR/\fImask1\fR,\fImask2\fR\fR\fR
190 Specifies that the netmask of the network of which \fInname\fR/\fImask1\fR is a
191 subnet should be \fImask2\fR. For example, \fBripv1_mask=192.0.2.16/28,27\fR
192 marks \fB192.0.2.16/28\fR as a subnet of \fB192.0.2.0/27\fR instead of
193 \fB192.0.2.0/24\fR. It is better to turn on RIPv2 instead of using this
194 facility. See the description of \fBripv2_out\fR, below.
200 \fB\fBpasswd=\fIXXX\fR[|\fIKeyID\fR[\fIstart\fR|\fIstop\fR]]\fR\fR
204 Specifies a RIPv2 cleartext password that will be included on all RIPv2
205 responses sent, and checked on all RIPv2 responses received. Any blanks, tab
206 characters, commas, or "\fB#\fR", "\fB|\fR", or NULL characters in the password
207 must be escaped with a backslash (\fB\e\fR). The common escape sequences
208 \fB\en\fR, \fB\er\fR, \fB\et\fR, \fB\eb\fR, and \fB\e\fIxxx\fR\fR have their
209 usual meanings. The \fIKeyID\fR must be unique but is ignored for cleartext
210 passwords. If present, \fIstart\fR and \fIstop\fR are timestamps in the form
211 year/month/day@hour:minute. They specify when the password is valid. The valid
212 password with the longest future is used on output packets, unless all
213 passwords have expired, in which case the password that expired most recently
214 is used. If no passwords are valid yet, no password is output. Incoming packets
215 can carry any password that is valid, will be valid within 24 hours, or that
216 was valid within 24 hours. To protect password secrecy, the passwd settings are
217 valid only in the \fB/etc/gateways\fR file and only when that file is readable
224 \fB\fBmd5_passwd=\fR\fIXXX\fR|\fIKeyID\fR[\fIstart\fR|\fIstop\fR]\fR
228 Specifies a RIPv2 MD5 password. Except that a KeyID is required, this keyword
229 is similar to \fBpasswd\fR (described above).
239 Turns off aggregation of subnets in RIPv1 and RIPv2 responses.
249 Turns off acceptance of host routes.
255 \fB\fBno_super_ag\fR\fR
259 Turns off aggregation of networks into supernets in RIPv2 responses.
269 Marks the interface not to be advertised in updates sent over other interfaces,
270 and turns off all RIP and router discovery through the interface.
280 Disables all RIP processing on the specified interface. If no interfaces are
281 allowed to process RIP packets, \fBin.routed\fR acts purely as a router
284 Note that turning off RIP without explicitly turning on router discovery
285 advertisements with \fBrdisc_adv\fR or \fB-s\fR causes \fBin.routed\fR to act
286 as a client router discovery daemon, which does not advertise.
292 \fB\fBno_rip_mcast\fR\fR
296 Causes RIPv2 packets to be broadcast instead of multicast.
302 \fB\fBno_ripv1_in\fR\fR
306 Causes RIPv1 received responses to be ignored.
312 \fB\fBno_ripv2_in\fR\fR
316 Causes RIPv2 received responses to be ignored.
322 \fB\fBripv2_out\fR\fR
326 Turns on RIPv2 output and causes RIPv2 advertisements to be multicast when
337 Equivalent to \fBno_ripv1_in\fR and \fBripv2_out\fR. This enables RIPv2 and
348 Disables the Internet Router Discovery Protocol.
354 \fB\fBno_solicit\fR\fR
358 Disables the transmission of Router Discovery Solicitations.
364 \fB\fBsend_solicit\fR\fR
368 Specifies that Router Discovery solicitations should be sent, even on
369 point-to-point links, which, by default, only listen to Router Discovery
376 \fB\fBno_rdisc_adv\fR\fR
380 Disables the transmission of Router Discovery Advertisements.
386 \fB\fBrdisc_adv\fR\fR
390 Specifies that Router Discovery Advertisements should be sent, even on
391 point-to-point links, which by default only listen to Router Discovery
398 \fB\fBbcast_rdisc\fR\fR
402 Specifies that Router Discovery packets should be broadcast instead of
409 \fB\fBrdisc_pref=\fIN\fR\fR\fR
413 Sets the preference in Router Discovery Advertisements to the optionally signed
414 integer \fIN\fR. The default preference is 0. Default routes with higher or
415 less negative preferences are preferred by clients.
421 \fB\fBrdisc_interval=\fIN\fR\fR\fR
425 Sets the nominal interval with which Router Discovery Advertisements are
426 transmitted to \fIN\fR seconds and their lifetime to 3*\fIN\fR.
432 \fB\fBfake_default=\fImetric\fR\fR\fR
436 Has an identical effect to \fB-F\fR \fBnet\fR[/\fImask\fR][=\fImetric\fR] with
437 the network number and netmask coming from the specified interface.
447 Similar to \fBfake_default\fR. To prevent RIPv1 listeners from receiving RIPv2
448 routes when those routes are multicast, this feature causes a RIPv1 default
449 route to be broadcast to RIPv1 listeners. Unless modified with
450 \fBfake_default\fR, the default route is broadcast with a metric of 14. That
451 serves as a \fBpoor man's router discovery\fR protocol.
457 \fB\fBtrust_gateway=\fIrtr_name\fR[|\fInet1\fR/\fImask1\fR|\fInet2\fR/\fImask2\
462 Causes RIP packets from that router and other routers named in other
463 \fBtrust_gateway\fR keywords to be accepted, and packets from other routers to
464 be ignored. If networks are specified, then routes to other networks will be
465 ignored from that router.
471 \fB\fBredirect_ok\fR\fR
475 Causes RIP to allow ICMP Redirect messages when the system is acting as a
476 router and forwarding packets. Otherwise, ICMP Redirect messages are
483 \fB\fBrip_neighbor=\fIx.x.x.x\fR\fR\fR
487 By default, RIPv1 advertisements over point-to-point links are sent to the
488 peer's address (255.255.255.255, if none is available), and RIPv2
489 advertisements are sent to either the RIP multicast address or the peer's
490 address if \fBno_rip_mcast\fR is set. This option overrides those defaults and
491 configures a specific address to use on the indicated interface. This can be
492 used to set a broadcast type advertisement on a point-to-point link.
498 \fBin.routed\fR(1M), \fBroute\fR(1M), \fBrtquery\fR(1M), \fBinet\fR(3SOCKET),
501 \fIInternet Transport Protocols, XSIS 028112, Xerox System Integration