]> git.proxmox.com Git - mirror_frr.git/blame - doc/user/eigrpd.rst
doc: add targets for user & developer pdf + html
[mirror_frr.git] / doc / user / eigrpd.rst
CommitLineData
42fc5d26
QY
1.. _EIGRP:
2
3*****
4EIGRP
5*****
6
7EIGRP -- Routing Information Protocol is widely deployed interior gateway
a90cfb7f 8routing protocol. EIGRP was developed in the 1990's. EIGRP is a
dfab2669 9:term:`distance-vector` protocol and is based on the :term:`dual` algorithms.
42fc5d26
QY
10As a distance-vector protocol, the EIGRP router send updates to its
11neighbors as networks change, thus allowing the convergence to a
12known topology.
13
14*eigrpd* supports EIGRP as described in RFC7868
15
16.. _Starting_and_Stopping_eigrpd:
17
18Starting and Stopping eigrpd
19============================
20
c1a54c05
QY
21The default configuration file name of *eigrpd*'s is :file:`eigrpd.conf`. When
22invocation *eigrpd* searches directory |INSTALL_PREFIX_ETC|. If
23:file:`eigrpd.conf` is not there next search current directory. If an
24integrated config is specified configuration is written into :file:`frr.conf`.
42fc5d26 25
c1a54c05
QY
26The EIGRP protocol requires interface information maintained by *zebra* daemon.
27So running *zebra* is mandatory to run *eigrpd*. Thus minimum sequence for
28running EIGRP is:
42fc5d26
QY
29
30::
31
42fc5d26
QY
32 # zebra -d
33 # eigrpd -d
dfab2669 34
42fc5d26
QY
35
36Please note that *zebra* must be invoked before *eigrpd*.
37
c1a54c05
QY
38To stop *eigrpd*, please use ::
39 kill `cat /var/run/eigrpd.pid`
40
41Certain signals have special meanings to *eigrpd*.
42fc5d26 42
a90cfb7f
QY
43+------------------+-----------------------------------------------------------+
44| Signal | Meaning |
45+==================+===========================================================+
46| SIGHUP & SIGUSR1 | Rotate the log file |
47+------------------+-----------------------------------------------------------+
48| SIGINT & SIGTERM | Sweep all installed EIGRP routes and gracefully terminate |
49+------------------+-----------------------------------------------------------+
42fc5d26
QY
50
51
a90cfb7f 52*eigrpd* invocation options. Common options that can be specified
42fc5d26
QY
53(:ref:`Common_Invocation_Options`).
54
a90cfb7f 55.. program:: eigrpd
42fc5d26 56
a90cfb7f
QY
57.. option:: -r
58.. option:: --retain
42fc5d26 59
a90cfb7f 60 When the program terminates, retain routes added by *eigrpd*.
42fc5d26
QY
61
62.. _EIGRP_Configuration:
63
64EIGRP Configuration
65===================
66
a90cfb7f 67.. index:: router eigrp (1-65535)
29adcd50 68.. clicmd:: router eigrp (1-65535)
c1a54c05 69
a90cfb7f
QY
70 The `router eigrp` command is necessary to enable EIGRP. To disable EIGRP,
71 use the `no router eigrp (1-65535)` command. EIGRP must be enabled before
72 carrying out any of the EIGRP commands.
42fc5d26 73
a90cfb7f 74.. index:: no router eigrp (1-65535)
29adcd50 75.. clicmd:: no router eigrp (1-65535)
c1a54c05 76
a90cfb7f 77 Disable EIGRP.
42fc5d26 78
a90cfb7f 79.. index:: network NETWORK
29adcd50 80.. clicmd:: network NETWORK
42fc5d26 81
c1a54c05 82.. index:: no network NETWORK
29adcd50 83.. clicmd:: no network NETWORK
c1a54c05 84
a90cfb7f
QY
85 Set the EIGRP enable interface by `network`. The interfaces which
86 have addresses matching with `network` are enabled.
42fc5d26 87
a90cfb7f
QY
88 This group of commands either enables or disables EIGRP interfaces between
89 certain numbers of a specified network address. For example, if the
90 network for 10.0.0.0/24 is EIGRP enabled, this would result in all the
91 addresses from 10.0.0.0 to 10.0.0.255 being enabled for EIGRP. The `no
92 network` command will disable EIGRP for the specified network.
42fc5d26 93
a90cfb7f
QY
94 Below is very simple EIGRP configuration. Interface `eth0` and
95 interface which address match to `10.0.0.0/8` are EIGRP enabled.
42fc5d26 96
c1a54c05 97 ::
dfab2669 98
c1a54c05
QY
99 !
100 router eigrp 1
101 network 10.0.0.0/8
102 !
42fc5d26 103
42fc5d26 104
a90cfb7f 105.. index:: passive-interface (IFNAME|default)
29adcd50 106.. clicmd:: passive-interface (IFNAME|default)
42fc5d26 107
c1a54c05 108.. index:: no passive-interface IFNAME
29adcd50 109.. clicmd:: no passive-interface IFNAME
c1a54c05 110
a90cfb7f 111 This command sets the specified interface to passive mode. On passive mode
c1a54c05
QY
112 interface, all receiving packets are ignored and eigrpd does not send either
113 multicast or unicast EIGRP packets except to EIGRP neighbors specified with
114 `neighbor` command. The interface may be specified as `default` to make
115 eigrpd default to passive on all interfaces.
42fc5d26 116
a90cfb7f 117 The default is to be passive on all interfaces.
42fc5d26
QY
118
119.. _How_to_Announce_EIGRP_route:
120
121How to Announce EIGRP route
122===========================
123
a90cfb7f 124.. index:: redistribute kernel
29adcd50 125.. clicmd:: redistribute kernel
42fc5d26 126
c1a54c05 127.. index:: redistribute kernel metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
29adcd50 128.. clicmd:: redistribute kernel metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
42fc5d26 129
c1a54c05 130.. index:: no redistribute kernel
29adcd50 131.. clicmd:: no redistribute kernel
42fc5d26 132
c1a54c05
QY
133 `redistribute kernel` redistributes routing information from kernel route
134 entries into the EIGRP tables. `no redistribute kernel` disables the routes.
42fc5d26 135
c1a54c05 136.. index:: redistribute static
29adcd50 137.. clicmd:: redistribute static
42fc5d26 138
c1a54c05 139.. index:: redistribute static metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
29adcd50 140.. clicmd:: redistribute static metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
42fc5d26 141
c1a54c05 142.. index:: no redistribute static
29adcd50 143.. clicmd:: no redistribute static
42fc5d26 144
c1a54c05
QY
145 `redistribute static` redistributes routing information from static route
146 entries into the EIGRP tables. `no redistribute static` disables the routes.
42fc5d26 147
c1a54c05 148.. index:: redistribute connected
29adcd50 149.. clicmd:: redistribute connected
42fc5d26 150
c1a54c05 151.. index:: redistribute connected metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
29adcd50 152.. clicmd:: redistribute connected metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
42fc5d26 153
c1a54c05 154.. index:: no redistribute connected
29adcd50 155.. clicmd:: no redistribute connected
42fc5d26 156
c1a54c05
QY
157 Redistribute connected routes into the EIGRP tables. `no redistribute
158 connected` disables the connected routes in the EIGRP tables. This command
159 redistribute connected of the interface which EIGRP disabled. The connected
160 route on EIGRP enabled interface is announced by default.
42fc5d26 161
c1a54c05 162.. index:: redistribute ospf
29adcd50 163.. clicmd:: redistribute ospf
42fc5d26 164
c1a54c05 165.. index:: redistribute ospf metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
29adcd50 166.. clicmd:: redistribute ospf metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
42fc5d26 167
c1a54c05 168.. index:: no redistribute ospf
29adcd50 169.. clicmd:: no redistribute ospf
42fc5d26 170
c1a54c05
QY
171 `redistribute ospf` redistributes routing information from ospf route
172 entries into the EIGRP tables. `no redistribute ospf` disables the routes.
42fc5d26 173
c1a54c05 174.. index:: redistribute bgp
29adcd50 175.. clicmd:: redistribute bgp
42fc5d26 176
c1a54c05 177.. index:: redistribute bgp metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
29adcd50 178.. clicmd:: redistribute bgp metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)
42fc5d26 179
c1a54c05 180.. index:: no redistribute bgp
29adcd50 181.. clicmd:: no redistribute bgp
c1a54c05
QY
182
183 `redistribute bgp` redistributes routing information from bgp route entries
184 into the EIGRP tables. `no redistribute bgp` disables the routes.
42fc5d26
QY
185
186.. _Show_EIGRP_Information:
187
188Show EIGRP Information
189======================
190
191To display EIGRP routes.
192
a90cfb7f 193.. index:: show ip eigrp topology
29adcd50 194.. clicmd:: show ip eigrp topology
c1a54c05
QY
195
196 Show EIGRP routes.
42fc5d26
QY
197
198The command displays all EIGRP routes.
199
a90cfb7f 200.. index:: show ip eigrp topology
29adcd50 201.. clicmd:: show ip eigrp topology
42fc5d26 202
c1a54c05 203 The command displays current EIGRP status
42fc5d26 204
c1a54c05 205 ::
42fc5d26 206
c1a54c05
QY
207 eigrpd> **show ip eigrp topology**
208 # show ip eigrp topo
42fc5d26 209
c1a54c05 210 EIGRP Topology Table for AS(4)/ID(0.0.0.0)
42fc5d26 211
c1a54c05
QY
212 Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply
213 r - reply Status, s - sia Status
214
215 P 10.0.2.0/24, 1 successors, FD is 256256, serno: 0
216 via Connected, enp0s3
dfab2669 217
42fc5d26
QY
218
219EIGRP Debug Commands
220====================
221
222Debug for EIGRP protocol.
223
a90cfb7f 224.. index:: debug eigrp packets
29adcd50 225.. clicmd:: debug eigrp packets
42fc5d26 226
c1a54c05 227 Debug eigrp packets
42fc5d26 228
c1a54c05 229 ``debug eigrp`` will show EIGRP packets that are sent and recevied.
42fc5d26 230
c1a54c05 231.. index:: debug eigrp transmit
29adcd50 232.. clicmd:: debug eigrp transmit
42fc5d26 233
c1a54c05 234 Debug eigrp transmit events
42fc5d26 235
c1a54c05
QY
236 ``debug eigrp transmit`` will display detailed information about the EIGRP
237 transmit events.
42fc5d26 238
c1a54c05 239.. index:: show debugging eigrp
29adcd50 240.. clicmd:: show debugging eigrp
42fc5d26 241
c1a54c05
QY
242 Display *eigrpd*'s debugging option.
243
244 ``show debugging eigrp`` will show all information currently set for eigrpd
245 debug.
42fc5d26 246