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