PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/usr/src/man/man4/gateways.4

https://bitbucket.org/illumos/illumos-gate/
Forth | 502 lines | 463 code | 39 blank | 0 comment | 10 complexity | d4e72ac4c07f4ed677851931517f26d3 MD5 | raw file
Possible License(s): LGPL-3.0, LGPL-2.0, BSD-3-Clause-No-Nuclear-License-2014, AGPL-1.0, AGPL-3.0, BSD-3-Clause, GPL-3.0, LGPL-2.1, BSD-2-Clause, MPL-2.0-no-copyleft-exception, GPL-2.0, 0BSD
  1. '\" te
  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"
  7. .SH NAME
  8. gateways \- configuration file for /usr/sbin/in.routed IPv4 network routing
  9. daemon
  10. .SH SYNOPSIS
  11. .LP
  12. .nf
  13. \fB/etc/gateways\fR
  14. .fi
  15. .SH DESCRIPTION
  16. .sp
  17. .LP
  18. The \fB/etc/gateways\fR file is used by the routing daemon,
  19. \fBin.routed\fR(1M). When the daemon starts, it reads \fB/etc/gateways\fR to
  20. find such distant gateways that cannot be located using only information from a
  21. routing socket, to discover if some of the local gateways are passive, and to
  22. obtain other parameters.
  23. .sp
  24. .LP
  25. The \fB/etc/gateways\fR file consists of a series of lines, each in one of the
  26. two formats shown below or consisting of parameters described later. Blank
  27. lines and lines starting with "\fB#\fR" are treated as comments.
  28. .sp
  29. .LP
  30. One format specifies networks:
  31. .sp
  32. .in +2
  33. .nf
  34. net Nname[/mask] gateway Gname metric value <passive | active | external>
  35. .fi
  36. .in -2
  37. .sp
  38. .LP
  39. The other format specifies hosts:
  40. .sp
  41. .in +2
  42. .nf
  43. host \fIHname\fR gateway \fIGname\fR metric \fIvalue\fR <passive | active | external>
  44. .fi
  45. .in -2
  46. .sp
  47. .LP
  48. Host \fIhname\fR is equivalent to \fBnet \fInname\fR/32\fR.
  49. .sp
  50. .LP
  51. The parameters in the lines shown above are described as follows:
  52. .sp
  53. .ne 2
  54. .na
  55. \fB\fINname\fR or \fIHname\fR\fR
  56. .ad
  57. .sp .6
  58. .RS 4n
  59. Name of the destination network or host. It can be a symbolic network name or
  60. an Internet address specified in \fBdot\fR notation (see \fBinet\fR(3SOCKET)).
  61. If it is a name, then it must either be defined in \fB/etc/networks\fR or
  62. \fB/etc/hosts\fR, or a naming service must have been started before
  63. \fBin.routed\fR(1M).
  64. .RE
  65. .sp
  66. .ne 2
  67. .na
  68. \fB\fIMask\fR\fR
  69. .ad
  70. .sp .6
  71. .RS 4n
  72. An optional number between 1 and 32 indicating the netmask associated with
  73. Nname.
  74. .RE
  75. .sp
  76. .ne 2
  77. .na
  78. \fB\fIGname\fR\fR
  79. .ad
  80. .sp .6
  81. .RS 4n
  82. Name or address of the gateway to which RIP responses should be forwarded.
  83. .RE
  84. .sp
  85. .ne 2
  86. .na
  87. \fB\fIValue\fR\fR
  88. .ad
  89. .sp .6
  90. .RS 4n
  91. The hop count to the destination host or network.
  92. .RE
  93. .sp
  94. .ne 2
  95. .na
  96. \fB\fBpassive\fR | \fBactive\fR | \fBexternal\fR\fR
  97. .ad
  98. .sp .6
  99. .RS 4n
  100. One of these keywords must be present to indicate whether the gateway should be
  101. treated as passive or active, or whether the gateway is external to the scope
  102. of the RIP protocol. A passive gateway is not expected to exchange routing
  103. information, while gateways marked active should be willing to exchange RIP
  104. packets. See \fBin.routed\fR(1M) for further details.
  105. .RE
  106. .sp
  107. .LP
  108. After turning on debugging in \fBin.routed\fR with the \fB-t\fR option, you can
  109. see that lines that follow the format described above create pseudo-interfaces.
  110. To set parameters for remote or external interfaces, use a line starting with
  111. \fBif=alias(\fIHname\fR)\fR, \fBif=remote(\fIHname\fR)\fR, and so forth.
  112. .sp
  113. .LP
  114. For backward compatibility with the previous Solaris \fBin.routed\fR
  115. implementation, three special keyword formats are accepted. If present, these
  116. forms must each be on a separate line, and must not be combined on the same
  117. line with any of the keywords listed elsewhere in this document. These three
  118. forms are:
  119. .sp
  120. .ne 2
  121. .na
  122. \fB\fBnorip \fIifname\fR\fR\fR
  123. .ad
  124. .RS 19n
  125. Disable all RIP processing on the specified interface.
  126. .RE
  127. .sp
  128. .ne 2
  129. .na
  130. \fB\fBnoripin \fIifname\fR\fR\fR
  131. .ad
  132. .RS 19n
  133. Disable the processing of received RIP responses on the specified interface.
  134. .RE
  135. .sp
  136. .ne 2
  137. .na
  138. \fB\fBnoripout \fIifname\fR\fR\fR
  139. .ad
  140. .RS 19n
  141. Disable RIP output on the specified interface.
  142. .RE
  143. .sp
  144. .LP
  145. Lines that start with neither \fBnet\fR nor \fBhost\fR must consist of one or
  146. more of the following parameter settings, separated by commas or blanks:
  147. .sp
  148. .ne 2
  149. .na
  150. \fB\fB\fR\fBif=\fIifname\fR\fR\fR
  151. .ad
  152. .sp .6
  153. .RS 4n
  154. Indicates that the other parameters on the line apply only to the interface
  155. name \fIifname\fR. If this parameter is not specified, then other parameters on
  156. the line apply to all interfaces.
  157. .RE
  158. .sp
  159. .ne 2
  160. .na
  161. \fB\fBsubnet=\fInname\fR[/\fImask\fR][,\fImetric\fR]\fR\fR
  162. .ad
  163. .sp .6
  164. .RS 4n
  165. Advertises a route to network nname with mask mask and the supplied metric
  166. (default 1). This is useful for filling \fBholes\fR in CIDR allocations. This
  167. parameter must appear by itself on a line. The network number must specify a
  168. full, 32-bit value, as in \fB192.0.2.0\fR instead of \fB192.0.2\fR.
  169. .RE
  170. .sp
  171. .ne 2
  172. .na
  173. \fB\fBripv1_mask=\fInname\fR/\fImask1\fR,\fImask2\fR\fR\fR
  174. .ad
  175. .sp .6
  176. .RS 4n
  177. Specifies that the netmask of the network of which \fInname\fR/\fImask1\fR is a
  178. subnet should be \fImask2\fR. For example, \fBripv1_mask=192.0.2.16/28,27\fR
  179. marks \fB192.0.2.16/28\fR as a subnet of \fB192.0.2.0/27\fR instead of
  180. \fB192.0.2.0/24\fR. It is better to turn on RIPv2 instead of using this
  181. facility. See the description of \fBripv2_out\fR, below.
  182. .RE
  183. .sp
  184. .ne 2
  185. .na
  186. \fB\fBpasswd=\fIXXX\fR[|\fIKeyID\fR[\fIstart\fR|\fIstop\fR]]\fR\fR
  187. .ad
  188. .sp .6
  189. .RS 4n
  190. Specifies a RIPv2 cleartext password that will be included on all RIPv2
  191. responses sent, and checked on all RIPv2 responses received. Any blanks, tab
  192. characters, commas, or "\fB#\fR", "\fB|\fR", or NULL characters in the password
  193. must be escaped with a backslash (\fB\e\fR). The common escape sequences
  194. \fB\en\fR, \fB\er\fR, \fB\et\fR, \fB\eb\fR, and \fB\e\fIxxx\fR\fR have their
  195. usual meanings. The \fIKeyID\fR must be unique but is ignored for cleartext
  196. passwords. If present, \fIstart\fR and \fIstop\fR are timestamps in the form
  197. year/month/day@hour:minute. They specify when the password is valid. The valid
  198. password with the longest future is used on output packets, unless all
  199. passwords have expired, in which case the password that expired most recently
  200. is used. If no passwords are valid yet, no password is output. Incoming packets
  201. can carry any password that is valid, will be valid within 24 hours, or that
  202. was valid within 24 hours. To protect password secrecy, the passwd settings are
  203. valid only in the \fB/etc/gateways\fR file and only when that file is readable
  204. only by UID 0.
  205. .RE
  206. .sp
  207. .ne 2
  208. .na
  209. \fB\fBmd5_passwd=\fR\fIXXX\fR|\fIKeyID\fR[\fIstart\fR|\fIstop\fR]\fR
  210. .ad
  211. .sp .6
  212. .RS 4n
  213. Specifies a RIPv2 MD5 password. Except that a KeyID is required, this keyword
  214. is similar to \fBpasswd\fR (described above).
  215. .RE
  216. .sp
  217. .ne 2
  218. .na
  219. \fB\fBno_ag\fR\fR
  220. .ad
  221. .sp .6
  222. .RS 4n
  223. Turns off aggregation of subnets in RIPv1 and RIPv2 responses.
  224. .RE
  225. .sp
  226. .ne 2
  227. .na
  228. \fB\fBno_host\fR\fR
  229. .ad
  230. .sp .6
  231. .RS 4n
  232. Turns off acceptance of host routes.
  233. .RE
  234. .sp
  235. .ne 2
  236. .na
  237. \fB\fBno_super_ag\fR\fR
  238. .ad
  239. .sp .6
  240. .RS 4n
  241. Turns off aggregation of networks into supernets in RIPv2 responses.
  242. .RE
  243. .sp
  244. .ne 2
  245. .na
  246. \fB\fBpassive\fR\fR
  247. .ad
  248. .sp .6
  249. .RS 4n
  250. Marks the interface not to be advertised in updates sent over other interfaces,
  251. and turns off all RIP and router discovery through the interface.
  252. .RE
  253. .sp
  254. .ne 2
  255. .na
  256. \fB\fBno_rip\fR\fR
  257. .ad
  258. .sp .6
  259. .RS 4n
  260. Disables all RIP processing on the specified interface. If no interfaces are
  261. allowed to process RIP packets, \fBin.routed\fR acts purely as a router
  262. discovery daemon.
  263. .sp
  264. Note that turning off RIP without explicitly turning on router discovery
  265. advertisements with \fBrdisc_adv\fR or \fB-s\fR causes \fBin.routed\fR to act
  266. as a client router discovery daemon, which does not advertise.
  267. .RE
  268. .sp
  269. .ne 2
  270. .na
  271. \fB\fBno_rip_mcast\fR\fR
  272. .ad
  273. .sp .6
  274. .RS 4n
  275. Causes RIPv2 packets to be broadcast instead of multicast.
  276. .RE
  277. .sp
  278. .ne 2
  279. .na
  280. \fB\fBno_ripv1_in\fR\fR
  281. .ad
  282. .sp .6
  283. .RS 4n
  284. Causes RIPv1 received responses to be ignored.
  285. .RE
  286. .sp
  287. .ne 2
  288. .na
  289. \fB\fBno_ripv2_in\fR\fR
  290. .ad
  291. .sp .6
  292. .RS 4n
  293. Causes RIPv2 received responses to be ignored.
  294. .RE
  295. .sp
  296. .ne 2
  297. .na
  298. \fB\fBripv2_out\fR\fR
  299. .ad
  300. .sp .6
  301. .RS 4n
  302. Turns on RIPv2 output and causes RIPv2 advertisements to be multicast when
  303. possible.
  304. .RE
  305. .sp
  306. .ne 2
  307. .na
  308. \fB\fBripv2\fR\fR
  309. .ad
  310. .sp .6
  311. .RS 4n
  312. Equivalent to \fBno_ripv1_in\fR and \fBripv2_out\fR. This enables RIPv2 and
  313. disables RIPv1.
  314. .RE
  315. .sp
  316. .ne 2
  317. .na
  318. \fB\fBno_rdisc\fR\fR
  319. .ad
  320. .sp .6
  321. .RS 4n
  322. Disables the Internet Router Discovery Protocol.
  323. .RE
  324. .sp
  325. .ne 2
  326. .na
  327. \fB\fBno_solicit\fR\fR
  328. .ad
  329. .sp .6
  330. .RS 4n
  331. Disables the transmission of Router Discovery Solicitations.
  332. .RE
  333. .sp
  334. .ne 2
  335. .na
  336. \fB\fBsend_solicit\fR\fR
  337. .ad
  338. .sp .6
  339. .RS 4n
  340. Specifies that Router Discovery solicitations should be sent, even on
  341. point-to-point links, which, by default, only listen to Router Discovery
  342. messages.
  343. .RE
  344. .sp
  345. .ne 2
  346. .na
  347. \fB\fBno_rdisc_adv\fR\fR
  348. .ad
  349. .sp .6
  350. .RS 4n
  351. Disables the transmission of Router Discovery Advertisements.
  352. .RE
  353. .sp
  354. .ne 2
  355. .na
  356. \fB\fBrdisc_adv\fR\fR
  357. .ad
  358. .sp .6
  359. .RS 4n
  360. Specifies that Router Discovery Advertisements should be sent, even on
  361. point-to-point links, which by default only listen to Router Discovery
  362. messages.
  363. .RE
  364. .sp
  365. .ne 2
  366. .na
  367. \fB\fBbcast_rdisc\fR\fR
  368. .ad
  369. .sp .6
  370. .RS 4n
  371. Specifies that Router Discovery packets should be broadcast instead of
  372. multicast.
  373. .RE
  374. .sp
  375. .ne 2
  376. .na
  377. \fB\fBrdisc_pref=\fIN\fR\fR\fR
  378. .ad
  379. .sp .6
  380. .RS 4n
  381. Sets the preference in Router Discovery Advertisements to the optionally signed
  382. integer \fIN\fR. The default preference is 0. Default routes with higher or
  383. less negative preferences are preferred by clients.
  384. .RE
  385. .sp
  386. .ne 2
  387. .na
  388. \fB\fBrdisc_interval=\fIN\fR\fR\fR
  389. .ad
  390. .sp .6
  391. .RS 4n
  392. Sets the nominal interval with which Router Discovery Advertisements are
  393. transmitted to \fIN\fR seconds and their lifetime to 3*\fIN\fR.
  394. .RE
  395. .sp
  396. .ne 2
  397. .na
  398. \fB\fBfake_default=\fImetric\fR\fR\fR
  399. .ad
  400. .sp .6
  401. .RS 4n
  402. Has an identical effect to \fB-F\fR \fBnet\fR[/\fImask\fR][=\fImetric\fR] with
  403. the network number and netmask coming from the specified interface.
  404. .RE
  405. .sp
  406. .ne 2
  407. .na
  408. \fB\fBpm_rdisc\fR\fR
  409. .ad
  410. .sp .6
  411. .RS 4n
  412. Similar to \fBfake_default\fR. To prevent RIPv1 listeners from receiving RIPv2
  413. routes when those routes are multicast, this feature causes a RIPv1 default
  414. route to be broadcast to RIPv1 listeners. Unless modified with
  415. \fBfake_default\fR, the default route is broadcast with a metric of 14. That
  416. serves as a \fBpoor man's router discovery\fR protocol.
  417. .RE
  418. .sp
  419. .ne 2
  420. .na
  421. \fB\fBtrust_gateway=\fIrtr_name\fR[|\fInet1\fR/\fImask1\fR|\fInet2\fR/\fImask2\
  422. fR|...]\fR\fR
  423. .ad
  424. .sp .6
  425. .RS 4n
  426. Causes RIP packets from that router and other routers named in other
  427. \fBtrust_gateway\fR keywords to be accepted, and packets from other routers to
  428. be ignored. If networks are specified, then routes to other networks will be
  429. ignored from that router.
  430. .RE
  431. .sp
  432. .ne 2
  433. .na
  434. \fB\fBredirect_ok\fR\fR
  435. .ad
  436. .sp .6
  437. .RS 4n
  438. Causes RIP to allow ICMP Redirect messages when the system is acting as a
  439. router and forwarding packets. Otherwise, ICMP Redirect messages are
  440. overridden.
  441. .RE
  442. .sp
  443. .ne 2
  444. .na
  445. \fB\fBrip_neighbor=\fIx.x.x.x\fR\fR\fR
  446. .ad
  447. .sp .6
  448. .RS 4n
  449. By default, RIPv1 advertisements over point-to-point links are sent to the
  450. peer's address (255.255.255.255, if none is available), and RIPv2
  451. advertisements are sent to either the RIP multicast address or the peer's
  452. address if \fBno_rip_mcast\fR is set. This option overrides those defaults and
  453. configures a specific address to use on the indicated interface. This can be
  454. used to set a broadcast type advertisement on a point-to-point link.
  455. .RE
  456. .SH SEE ALSO
  457. .sp
  458. .LP
  459. \fBin.routed\fR(1M), \fBroute\fR(1M), \fBrtquery\fR(1M), \fBinet\fR(3SOCKET),
  460. .sp
  461. .LP
  462. \fIInternet Transport Protocols, XSIS 028112, Xerox System Integration
  463. Standard\fR