summaryrefslogtreecommitdiff
path: root/usr.sbin/eigrpd/eigrpd.conf.5
blob: e18706e37adc210d1f73539507d741006e77f379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
.\"	$OpenBSD: eigrpd.conf.5,v 1.4 2015/10/27 13:14:44 renato Exp $
.\"
.\" Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
.\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
.\" Copyright (c) 2002 Daniel Hartmeier <dhartmei@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: October 27 2015 $
.Dt EIGRPD.CONF 5
.Os
.Sh NAME
.Nm eigrpd.conf
.Nd Enhanced Interior Gateway Routing Protocol daemon configuration file
.Sh DESCRIPTION
The
.Xr eigrpd 8
daemon implements the Enhanced Interior Gateway Routing Protocol.
.Sh SECTIONS
The
.Nm
config file is divided into four main sections.
.Bl -tag -width xxxx
.It Sy Macros
User-defined variables may be defined and used later, simplifying the
configuration file.
.It Sy Global Configuration
Global settings for
.Xr eigrpd 8 .
.It Sy Routing Instances
Multiple routing instances can be defined.
Routing instances are defined hierarchically
by address-family and then autonomous-system.
.It Sy Interfaces Configuration
Interface-specific parameters.
.El
.Pp
Argument names not beginning with a letter, digit, or underscore
must be quoted.
.Pp
Additional configuration files can be included with the
.Ic include
keyword, for example:
.Bd -literal -offset indent
include "/etc/eigrpd.sub.conf"
.Ed
.Sh MACROS
Macros can be defined that will later be expanded in context.
Macro names must start with a letter, digit, or underscore,
and may contain any of those characters.
Macro names may not be reserved words (for example,
.Ic bandwidth ,
.Ic interface ,
or
.Ic hello-interval ) .
Macros are not expanded inside quotes.
.Pp
For example:
.Bd -literal -offset indent
fastethernet="100000"
address-family ipv4 {
	autonomous-system 1 {
		interface em1 {
			bandwidth $fastethernet
		}
	}
}
.Ed
.Pp
The same can be accomplished by specifying the bandwidth
globally or within the address-family or autonomous-system declaration.
.Sh GLOBAL CONFIGURATION
Several settings can be configured globally, per adress-family, per
autonomous-system and per interface.
The only settings that can be set globally and not overruled are listed below.
.Bl -tag -width Ds
.It Ic fib-priority-internal Ar prio
Set the routing priority of EIGRP internal routes to
.Ar prio .
The default is 28.
.It Ic fib-priority-external Ar prio
Set the routing priority of EIGRP external routes to
.Ar prio .
This option may be used as a simple loop-prevention mechanism when another
routing protocol is being redistributed into EIGRP.
The default is 28.
.It Ic fib-priority-summary Ar prio
Set the routing priority of EIGRP summary routes to
.Ar prio .
The default is 28.
.It Xo
.Ic fib-update
.Pq Ic yes Ns | Ns Ic no
.Xc
If set to
.Ic \&no ,
do not update the Forwarding Information Base, a.k.a. the kernel
routing table.
The default is
.Ic yes .
.It Ic rdomain Ar tableid
Specifies the routing table
.Xr eigrpd 8
should modify.
Table 0 is the default table.
.It Ic router-id Ar address
Set the router ID; if not specified, the numerically lowest IP address of
the router will be used.
.El
.Sh ROUTING INSTANCES
Multiple routing instances can be defined.
Routing instances are defined hierarchically
by address-family and then autonomous-system.
.Bd -literal -offset indent
address-family ipv4 {
	...
	autonomous-system 1 {
		...
		interface em0 {
			...
		}
	}
}
.Ed
.Pp
Routing-instance specific parameters are listed below.
.Bl -tag -width Ds
.It Ic active-timeout Ar minutes
Set the maximum time to wait before declaring a route to be in the stuck
in active state.
If 0 is given, the active timeout is disabled.
The default value is 3; valid range is 0\-65535.
.It Xo
.Ic address-family
.Pq Ic ipv4 Ns | Ns Ic ipv6
.Xc
Specify an address-family section, grouping one or more autonomous-systems.
.It Ic autonomous-system Ar number
Specify the autonomous-system, grouping one or more interfaces.
Valid range is 1\-65535.
.It Ic default-metric Ar bandwidth Ar delay Ar reliability Ar load Ar mtu
Specify a default metric for all routes redistributed into EIGRP.
Valid ranges are: 1\-10000000 for the bandwidth, 1\-16777215 for the delay,
1\-255 for the reliability, 1\-255 for the load and 1\-65535 for the mtu.
.It Ic k-values Ar K1 Ar K2 Ar K3 Ar K4 Ar K5
Set the coefficients used by the composite metric calculation.
Two routers become neighbors only if their K-values are the same.
For K1 and K3, The default value is 1.
For K2, K4 and K5 the default value is 0;
valid range is 1\-254.
.It Ic maximum-hops Ar number
Advertise as unreachable the routes with a hop count higher than specified.
The default value is 100; valid range is 1\-255.
.It Ic maximum-paths Ar number
Specify the maximum number of ECMP paths to be installed in the FIB for
each route.
The default value is 4; valid range is 1\-32.
.It Xo
.Op Ic no
.Ic redistribute
.Sm off
.Po Ic static Ns | Ns Ic connected Ns | Ns Ic ospf | Ns Ic rip | Ns
.Ic default Pc
.Sm on
.Op Ic metric Ar bandwidth Ar delay Ar reliability Ar load Ar mtu
.Xc
.It Xo
.Op Ic no
.Ic redistribute Ar prefix
.Op Ic metric Ar bandwidth Ar delay Ar reliability Ar load Ar mtu
.Xc
If set to
.Ic connected ,
routes to directly attached networks will be announced over EIGRP.
If set to
.Ic static ,
static routes will be announced over EIGRP.
If set to
.Ic ospf ,
OSPF routes will be announced over EIGRP.
If set to
.Ic rip ,
RIP routes will be announced over EIGRP.
If set to
.Ic default ,
a default route pointing to this router will be announced over EIGRP.
It is possible to specify a network range with
.Ar prefix ;
networks need to be part of that range to be redistributed.
By default no additional routes will be announced over EIGRP.
.Pp
.Ic redistribute
statements are evaluated in sequential order, from first to last.
The first matching rule decides if a route should be redistributed or not.
Matching rules starting with
.Ic no
will force the route to be not announced.
The only exception is
.Ic default ,
which will be set no matter what, and additionally
.Ic no
cannot be used together with it.
.Pp
It is possible to set the route
.Ic metric
for each redistribute rule.
.It Ic variance Ar multiplier
Set the variance used to permit the installation of feasible successors in the
FIB if their metric is lower than the metric of the successor multiplied by the
specified multiplier.
The default value is 1; valid range is 1\-128.
.El
.Sh INTERFACES
Each interface can have several parameters configured individually, otherwise
they are inherited.
Interfaces can pertain to multiple routing instances.
An interface is specified by its name.
.Bd -literal -offset indent
interface em0 {
	...
}
.Ed
.Pp
Interface-specific parameters are listed below.
.Bl -tag -width Ds
.It Ic bandwidth Ar bandwidth
Set the interface bandwidth in kilobits per second.
The bandwidth is used as part of the EIGRP composite metric.
The default value is 100000; valid range is 1\-10000000.
.It Ic delay Ar delay
Set the interface delay in tens of microseconds.
The delay is used as part of the EIGRP composite metric.
The default value is 10; valid range is 1\-16777215.
.It Ic hello-interval Ar seconds
Set the hello interval.
The default value is 5; valid range is 1\-65535 seconds.
.It Ic holdtime Ar seconds
Set the hello holdtime.
The default value is 15; valid range is 1\-65535 seconds.
.It Ic passive
Prevent transmission and reception of EIGRP packets on this interface.
.It Xo
.Ic split-horizon
.Pq Ic yes Ns | Ns Ic no
.Xc
If set to
.Ic \&no ,
the split horizon rule will be disabled on this interface.
This option should be used with caution since it can introduce routing loops
in point-to-point or broadcast networks.
The default is
.Ic yes .
.It Ic summary-address Ar address Ns Li / Ns Ar len
Configure a summary aggregate address for this interface.
Multiple summary addresses can be configured.
.El
.Sh FILES
.Bl -tag -width "/etc/eigrpd.conf" -compact
.It Pa /etc/eigrpd.conf
.Xr eigrpd 8
configuration file
.El
.Sh SEE ALSO
.Xr eigrpctl 8 ,
.Xr eigrpd 8 ,
.Xr rc.conf.local 8
.Sh HISTORY
The
.Nm
file format first appeared in
.Ox 5.9 .
.Sh AUTHORS
The
.Xr eigrpd 8
program was written by
.An Renato Westphal Aq Mt renato@openbsd.org .