1.\" $OpenBSD: ripd.conf.5,v 1.13 2011/04/30 07:52:33 sthen Exp $ 2.\" 3.\" Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> 4.\" Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org> 5.\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> 6.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> 7.\" Copyright (c) 2002 Daniel Hartmeier <dhartmei@openbsd.org> 8.\" 9.\" Permission to use, copy, modify, and distribute this software for any 10.\" purpose with or without fee is hereby granted, provided that the above 11.\" copyright notice and this permission notice appear in all copies. 12.\" 13.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 14.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 15.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 16.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 18.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 19.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20.\" 21.Dd $Mdocdate: April 30 2011 $ 22.Dt RIPD.CONF 5 23.Os 24.Sh NAME 25.Nm ripd.conf 26.Nd Routing Information Protocol daemon configuration file 27.Sh DESCRIPTION 28The 29.Xr ripd 8 30daemon implements the Routing Information Protocol version 2 as described 31in RFC 2453. 32.Sh SECTIONS 33The 34.Nm 35config file is divided into three main sections. 36.Bl -tag -width xxxx 37.It Sy Macros 38User-defined variables may be defined and used later, simplifying the 39configuration file. 40.It Sy Global Configuration 41Global settings for 42.Xr ripd 8 . 43.It Sy Interfaces Configuration 44Interface-specific parameters. 45.El 46.Sh MACROS 47Much like 48.Xr cpp 1 49or 50.Xr m4 1 , 51macros can be defined that will later be expanded in context. 52Macro names must start with a letter, and may contain letters, digits, 53and underscores. 54Macro names may not be reserved words (for example, 55.Ic cost ) . 56Macros are not expanded inside quotes. 57.Pp 58For example: 59.Bd -literal -offset indent 60hi="2" 61interface em0 { 62 cost $hi 63} 64.Ed 65.Sh GLOBAL CONFIGURATION 66Global settings concerns the main behaviour of the daemon. 67.Pp 68.Bl -tag -width Ds -compact 69.It Xo 70.Ic fib-update 71.Pq Ic yes Ns | Ns Ic no 72.Xc 73If set to 74.Ic no , 75do not update the Forwarding Information Base, a.k.a. the kernel routing 76table. 77The default is 78.Ic yes . 79.Pp 80.It Ic rdomain Ar tableid 81Specifies the routing table 82.Xr ripd 8 83should modify. 84Table 0 is the default table. 85.Pp 86.It Xo 87.Op Ic no 88.Ic redistribute 89.Sm off 90.Po Ic static Ns | Ns Ic connected Ns | Ns 91.Ic default Pc 92.Sm on 93.Xc 94.It Xo 95.Op Ic no 96.Ic redistribute Ar prefix 97.Xc 98.It Xo 99.Op Ic no 100.Ic redistribute rtlabel Ar label 101.Xc 102If set to 103.Ic connected , 104routes to directly attached networks will be 105announced over RIP. 106If set to 107.Ic static , 108static routes will be announced over RIP. 109If set to 110.Ic default , 111a default route pointing to this router will be announced over RIP. 112It is possible to specify a network range with 113.Ar prefix ; 114networks need to be part of that range to be redistributed. 115Additionally it is possible to redistribute based on route labels 116using the 117.Ic rtlabel 118keyword. 119By default no additional routes will be announced over RIP. 120.Pp 121.Ic redistribute 122statements are evaluated in sequential order, from first to last. 123The first matching rule decides if a route should be redistributed or not. 124Matching rules starting with 125.Ic no 126will force the route to be not announced. 127.Pp 128.It Xo 129.Ic split-horizon 130.Sm off 131.Po Ic simple Ns | Ns Ic poisoned Ns | Ns 132.Ic none Pc 133.Sm on 134.Xc 135If set to 136.Ic simple , 137do not redistribute routes to the interface from which they were learned. 138If set to 139.Ic poisoned , 140redistribute routes to the interface from which they were learned, by 141forcing the metric to infinity. 142Both these behaviours can resolve routing loops when a router goes down. 143The default is 144.Ic poisoned . 145.Pp 146.It Xo 147.Ic triggered-updates 148.Pq Ic yes Ns | Ns Ic no 149.Xc 150Immediately trigger responses when a route changes. 151The default is 152.Ic yes . 153.El 154.Sh INTERFACES 155Each interface can have several parameters configured individually, otherwise 156they are inherited. 157.Bd -literal -offset indent 158interface em0 { 159} 160.Ed 161.Pp 162Interface-specific parameters are listed below. 163.Bl -tag -width Ds 164.It Ic auth-key Ar key 165Set the authentication key for 166.Ic simple 167authentication. 168Up to 16 characters can be specified. 169.It Ic auth-md Ar key-id key 170Set the authentication 171.Ar key-id 172and 173.Ar key 174for 175.Ic crypt 176authentication. 177The valid range for 178.Ar key-id 179is 0\-255. 180Up to 16 characters can be specified for 181.Ar key . 182Multiple keys may be specified. 183.It Ic auth-md-keyid Ar key-id 184Configure the 185.Ar key-id 186to use for 187.Ic crypt 188authentication. 189The valid range for 190.Ar key-id 191is 0\-255. 192The default key-id is 1. 193.It Xo 194.Ic auth-type 195.Po Ic none Ns | Ns 196.Ic simple Ns | Ns Ic crypt Pc 197.Xc 198Set the authentication type. 199The default is 200.Ic none . 201Simple authentication uses a plaintext password, up to 16 characters. 202Crypt authentication uses an MD5 hash. 203.It Ic cost Ar number 204Cost of the network connected through this interface. 205Values must be between 1 and 16, inclusive. 206.It Ic demote Ar group 207Increase the 208.Xr carp 4 209demotion counter by 1 on the given interface group, usually 210.Ar carp , 211when the interface state is going down. 212The demotion counter will be decreased when the interface 213state is active again. 214.It Ic passive 215Prevent transmission and reception of RIP packets on this interface. 216.El 217.Sh FILES 218.Bl -tag -width "/etc/ripd.conf" -compact 219.It Pa /etc/ripd.conf 220.Xr ripd 8 221configuration file 222.El 223.Sh SEE ALSO 224.Xr rc.conf.local 8 , 225.Xr ripctl 8 , 226.Xr ripd 8 227.Sh HISTORY 228The 229.Nm 230file format first appeared in 231.Ox 4.1 . 232