]>
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 | |
0efdf0fe | 63 | .. _eigrp-configuration: |
42fc5d26 QY |
64 | |
65 | EIGRP Configuration | |
66 | =================== | |
67 | ||
41747439 | 68 | .. clicmd:: router eigrp (1-65535) [vrf NAME] |
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 | |
41747439 DS |
72 | carrying out any of the EIGRP commands. Specify vrf NAME if you want |
73 | eigrp to work within the specified vrf. | |
42fc5d26 | 74 | |
29adcd50 | 75 | .. clicmd:: network NETWORK |
42fc5d26 | 76 | |
a90cfb7f QY |
77 | Set the EIGRP enable interface by `network`. The interfaces which |
78 | have addresses matching with `network` are enabled. | |
42fc5d26 | 79 | |
a90cfb7f QY |
80 | This group of commands either enables or disables EIGRP interfaces between |
81 | certain numbers of a specified network address. For example, if the | |
82 | network for 10.0.0.0/24 is EIGRP enabled, this would result in all the | |
83 | addresses from 10.0.0.0 to 10.0.0.255 being enabled for EIGRP. The `no | |
84 | network` command will disable EIGRP for the specified network. | |
42fc5d26 | 85 | |
a90cfb7f QY |
86 | Below is very simple EIGRP configuration. Interface `eth0` and |
87 | interface which address match to `10.0.0.0/8` are EIGRP enabled. | |
42fc5d26 | 88 | |
9eb95b3b | 89 | .. code-block:: frr |
dfab2669 | 90 | |
c1a54c05 QY |
91 | ! |
92 | router eigrp 1 | |
93 | network 10.0.0.0/8 | |
94 | ! | |
42fc5d26 | 95 | |
42fc5d26 | 96 | |
29adcd50 | 97 | .. clicmd:: passive-interface (IFNAME|default) |
42fc5d26 | 98 | |
c1a54c05 | 99 | |
a90cfb7f | 100 | This command sets the specified interface to passive mode. On passive mode |
c1a54c05 QY |
101 | interface, all receiving packets are ignored and eigrpd does not send either |
102 | multicast or unicast EIGRP packets except to EIGRP neighbors specified with | |
103 | `neighbor` command. The interface may be specified as `default` to make | |
104 | eigrpd default to passive on all interfaces. | |
42fc5d26 | 105 | |
a90cfb7f | 106 | The default is to be passive on all interfaces. |
42fc5d26 | 107 | |
0efdf0fe | 108 | .. _how-to-announce-eigrp-route: |
42fc5d26 QY |
109 | |
110 | How to Announce EIGRP route | |
111 | =========================== | |
112 | ||
1e31580f | 113 | Redistribute routes into EIGRP: |
42fc5d26 | 114 | |
1e31580f | 115 | .. clicmd:: redistribute <babel|bgp|connected|isis|kernel|openfabric|ospf|rip|sharp|static|table> [metric (1-4294967295) (0-4294967295) (0-255) (1-255) (1-65535)] |
42fc5d26 | 116 | |
1e31580f QY |
117 | The ``redistribute`` family of commands imports routing information from |
118 | other sources into EIGRP's tables. Redistribution may be disabled with the | |
119 | ``no`` form of the commands. | |
42fc5d26 | 120 | |
1e31580f QY |
121 | Note that connected routes on interfaces EIGRP is enabled on are announced |
122 | by default. | |
42fc5d26 | 123 | |
1e31580f QY |
124 | Optionally, various EIGRP metrics may be specified. These metrics will be |
125 | applied to the imported routes. | |
42fc5d26 | 126 | |
42fc5d26 | 127 | |
0efdf0fe | 128 | .. _show-eigrp-information: |
42fc5d26 QY |
129 | |
130 | Show EIGRP Information | |
131 | ====================== | |
132 | ||
41747439 | 133 | .. clicmd:: show ip eigrp [vrf NAME] topology |
42fc5d26 | 134 | |
013f9762 | 135 | Display current EIGRP status. |
42fc5d26 | 136 | |
c1a54c05 | 137 | :: |
42fc5d26 | 138 | |
c1a54c05 QY |
139 | eigrpd> **show ip eigrp topology** |
140 | # show ip eigrp topo | |
42fc5d26 | 141 | |
c1a54c05 | 142 | EIGRP Topology Table for AS(4)/ID(0.0.0.0) |
42fc5d26 | 143 | |
c1a54c05 QY |
144 | Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply |
145 | r - reply Status, s - sia Status | |
146 | ||
147 | P 10.0.2.0/24, 1 successors, FD is 256256, serno: 0 | |
148 | via Connected, enp0s3 | |
dfab2669 | 149 | |
41747439 DS |
150 | .. clicmd:: show ip eigrp [vrf NAME] interface |
151 | ||
152 | Display the list of interfaces associated with a particular eigrp | |
153 | instance. | |
154 | ||
dc47f2e7 | 155 | .. clicmd:: show ip eigrp [vrf NAME] neighbor |
41747439 DS |
156 | |
157 | Display the list of neighbors that have been established within | |
158 | a particular eigrp instance. | |
42fc5d26 QY |
159 | |
160 | EIGRP Debug Commands | |
161 | ==================== | |
162 | ||
163 | Debug for EIGRP protocol. | |
164 | ||
29adcd50 | 165 | .. clicmd:: debug eigrp packets |
42fc5d26 | 166 | |
c1a54c05 | 167 | Debug eigrp packets |
42fc5d26 | 168 | |
d1e7591e | 169 | ``debug eigrp`` will show EIGRP packets that are sent and received. |
42fc5d26 | 170 | |
29adcd50 | 171 | .. clicmd:: debug eigrp transmit |
42fc5d26 | 172 | |
c1a54c05 | 173 | Debug eigrp transmit events |
42fc5d26 | 174 | |
c1a54c05 QY |
175 | ``debug eigrp transmit`` will display detailed information about the EIGRP |
176 | transmit events. | |
42fc5d26 | 177 | |
29adcd50 | 178 | .. clicmd:: show debugging eigrp |
42fc5d26 | 179 | |
c1a54c05 QY |
180 | Display *eigrpd*'s debugging option. |
181 | ||
182 | ``show debugging eigrp`` will show all information currently set for eigrpd | |
183 | debug. | |
42fc5d26 | 184 | |
b832909b QY |
185 | |
186 | Sample configuration | |
187 | ==================== | |
188 | ||
189 | .. code-block:: frr | |
190 | ||
191 | hostname eigrpd | |
192 | password zebra | |
193 | enable password please-set-at-here | |
194 | ! | |
195 | router eigrp 4453 | |
196 | network 192.168.1.0/24 | |
197 | ! | |
198 | log stdout | |
199 |