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