|
| 1 | +# 12 - Configuring EIGRP Routing in Cisco Packet Tracer |
| 2 | + |
| 3 | +This tutorial is the twelfth in our Cisco Packet Tracer series and focuses on **EIGRP (Enhanced Interior Gateway Routing Protocol)**, a **hybrid dynamic routing** protocol developed by Cisco. Unlike RIP, EIGRP supports larger networks, faster convergence, and uses composite metrics based on bandwidth and delay to make routing decisions. |
| 4 | + |
| 5 | +We’ll extend our previous three-router topology by adding an extra link between R0 and R2 (just like how we did for OSPF), configure EIGRP across all routers, and verify dynamic routing. |
| 6 | + |
| 7 | +If you're after a different routing protocol, check out - |
| 8 | + |
| 9 | +- [Tutorial 9: Configuring Static Routing in Packet Tracer](../tutorial-series/tutorial9.md) |
| 10 | +- [Tutorial 10: Configuring RIP Routing in Packet Tracer](../tutorial-series/tutorial10.md) |
| 11 | +- [Tutorial 11: Configuring OSPF Routing in Packet Tracer](../tutorial-series/tutorial11.md) |
| 12 | +- [Tutorial 12: Configuring EIGRP Routing in Packet Tracer](../tutorial-series/tutorial12.md) |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +## Part 1 – Network Topology Overview |
| 17 | + |
| 18 | +This network includes: |
| 19 | + |
| 20 | +* **Three routers (R1, R2, R3)** all connected to each other |
| 21 | +* **Three switches (S1, S2, S3)** – one per router |
| 22 | +* **Two PCs per switch** (6 total PCs) |
| 23 | + |
| 24 | +The goal is to enable all PCs to communicate through EIGRP-configured routers. |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +## Part 2 – Device Placement and Cabling |
| 31 | + |
| 32 | +### Step 2.1 – Add Devices to the Workspace |
| 33 | + |
| 34 | +From **Network Devices** and **End Devices**, place: |
| 35 | + |
| 36 | +* **3 Routers** (Router-PT-Empty) |
| 37 | +* **3 Switches** (2960) |
| 38 | +* **6 PCs** |
| 39 | + |
| 40 | +Label the devices: |
| 41 | + |
| 42 | +* Routers: **R0**, **R1**, **R2** |
| 43 | +* Switches: **S0**, **S1**, **S2** |
| 44 | +* PCs: **PC0–PC5** |
| 45 | + |
| 46 | +### Step 2.2 – Add Network Modules to Routers |
| 47 | + |
| 48 | +For this topology, use **Router-PT-Empty** devices. Each router needs **two Serial** and **two FastEthernet** interfaces to support all required connections. |
| 49 | + |
| 50 | +Follow these steps for **R0**, **R1**, and **R2**: |
| 51 | + |
| 52 | +1. Click the router to open its configuration window. |
| 53 | +2. Go to the **Physical** tab. |
| 54 | +3. Click the **power button** to turn off the router (the green light will go out). |
| 55 | +  |
| 56 | +4. In the module area, locate **PT-ROUTER-NM-1S** (Serial Port) and **PT-ROUTER-NM-1CFE** (FastEthernet). |
| 57 | +5. Drag and insert **two** PT-ROUTER-NM-1S modules into the first two empty slots (from right to left). |
| 58 | +  |
| 59 | +6. Drag and insert **two** PT-ROUTER-NM-1CFE modules into the next two empty slots. |
| 60 | +  |
| 61 | +7. Click the **power button** again to turn the router back on. |
| 62 | +  |
| 63 | + |
| 64 | +### Step 2.2 – Cabling |
| 65 | + |
| 66 | +Now we will connect the devices using appropriate cables: |
| 67 | + |
| 68 | +```{admonition} Note |
| 69 | +:class: note |
| 70 | +For clarity and future expansion, I recommend connecting the switch to the router using the last available port on the switch (for example, fa0/24). This keeps the lower-numbered ports free for connecting PCs and other end devices. |
| 71 | +``` |
| 72 | + |
| 73 | +#### **Copper Straight-Through Connections** |
| 74 | + |
| 75 | +| From | To | Port/Interface | |
| 76 | +| ---- | -- | -------------- | |
| 77 | +| PC0 | S1 | fa0/1 | |
| 78 | +| PC1 | S1 | fa0/2 | |
| 79 | +| S1 | R0 | fa0/24 → fa2/0 | |
| 80 | +| PC2 | S2 | fa0/1 | |
| 81 | +| PC3 | S2 | fa0/2 | |
| 82 | +| S2 | R1 | fa0/24 → fa2/0 | |
| 83 | +| PC4 | S3 | fa0/1 | |
| 84 | +| PC5 | S3 | fa0/2 | |
| 85 | +| S3 | R2 | fa0/24 → fa2/0 | |
| 86 | + |
| 87 | +#### **Serial DTE Connections** |
| 88 | + |
| 89 | +| From | To | Port/Interface | |
| 90 | +| ---- | -- | -------------- | |
| 91 | +| R0 | R1 | se0/0 ↔ se1/0 | |
| 92 | +| R1 | R2 | se0/0 ↔ se1/0 | |
| 93 | +| R0 | R2 | se1/0 ↔ se0/0 | |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +## Part 3 – IP Addressing Scheme |
| 100 | + |
| 101 | +Now we will assign IP addresses to all devices, ensuring they can communicate across the network. |
| 102 | + |
| 103 | +### Subnet Allocation |
| 104 | + |
| 105 | +For this tutorial, we will use the following subnets: |
| 106 | + |
| 107 | +| Subnet | Devices | Subnet Mask | |
| 108 | +| -------------- | ------------ | ------------- | |
| 109 | +| 192.168.1.0/24 | PC0, PC1, R0 | 255.255.255.0 | |
| 110 | +| 192.168.2.0/24 | PC2, PC3, R1 | 255.255.255.0 | |
| 111 | +| 192.168.3.0/24 | PC4, PC5, R2 | 255.255.255.0 | |
| 112 | +| 10.0.0.0/30 | R0 ↔ R1 | 255.0.0.0 | |
| 113 | +| 11.0.0.0/30 | R1 ↔ R2 | 255.0.0.0 | |
| 114 | +| 12.0.0.0/30 | R0 ↔ R2 | 255.0.0.0 | |
| 115 | + |
| 116 | +### Step 3.1 – Assign IPs to PCs |
| 117 | + |
| 118 | +Go to **Desktop > IP Configuration** on each PC: |
| 119 | + |
| 120 | +| PC | IP Address | Subnet Mask | Default Gateway | |
| 121 | +| --- | ------------ | ------------- | --------------- | |
| 122 | +| PC0 | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 | |
| 123 | +| PC1 | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 | |
| 124 | +| PC2 | 192.168.2.12 | 255.255.255.0 | 192.168.2.1 | |
| 125 | +| PC3 | 192.168.2.13 | 255.255.255.0 | 192.168.2.1 | |
| 126 | +| PC4 | 192.168.3.14 | 255.255.255.0 | 192.168.3.1 | |
| 127 | +| PC5 | 192.168.3.15 | 255.255.255.0 | 192.168.3.1 | |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | +--- |
| 134 | + |
| 135 | +## Part 4 – Router Configuration |
| 136 | + |
| 137 | +Each router in this network handles two types of connections: |
| 138 | + |
| 139 | +* LAN-side via FastEthernet2/0, connected to a local switch |
| 140 | +* WAN-side via Serial interfaces, connected to neighbouring routers |
| 141 | +* All routers will be configured with EIGRP routing |
| 142 | + |
| 143 | +````{admonition} Note |
| 144 | +:class: note |
| 145 | +The EIGRP routing configuration is performed using the following steps in the CLI: |
| 146 | +
|
| 147 | +1. Enter EIGRP configuration mode: |
| 148 | + ``` |
| 149 | + router eigrp 1 |
| 150 | + ``` |
| 151 | + Here, `1` is the autonomous system number (must match on all routers). |
| 152 | +
|
| 153 | +2. Specify which networks to advertise: |
| 154 | + ``` |
| 155 | + network 192.168.1.0 |
| 156 | + network 10.0.0.0 |
| 157 | + ``` |
| 158 | + Here you list the networks directly connected to the router. EIGRP will automatically discover other networks through its neighbours. |
| 159 | +```` |
| 160 | + |
| 161 | +### Step 4.1 – R0 Configuration |
| 162 | + |
| 163 | +```{admonition} Tip |
| 164 | +:class: tip |
| 165 | +The shorthand for `configure terminal` is `conf t`, which can save time when entering commands. |
| 166 | +``` |
| 167 | + |
| 168 | +```bash |
| 169 | +enable |
| 170 | +configure terminal |
| 171 | +hostname R0 |
| 172 | + |
| 173 | +interface fa2/0 |
| 174 | +ip address 192.168.1.1 255.255.255.0 |
| 175 | +no shutdown |
| 176 | +exit |
| 177 | + |
| 178 | +interface se0/0 |
| 179 | +ip address 10.0.0.1 255.0.0.0 |
| 180 | +clock rate 64000 |
| 181 | +no shutdown |
| 182 | +exit |
| 183 | + |
| 184 | +interface se1/0 |
| 185 | +ip address 12.0.0.1 255.0.0.0 |
| 186 | +clock rate 64000 |
| 187 | +no shutdown |
| 188 | +exit |
| 189 | + |
| 190 | +router eigrp 1 |
| 191 | +network 192.168.1.0 |
| 192 | +network 10.0.0.0 |
| 193 | +network 12.0.0.0 |
| 194 | +no auto-summary |
| 195 | +exit |
| 196 | +exit |
| 197 | + |
| 198 | +write memory |
| 199 | +exit |
| 200 | +``` |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | +### Step 4.2 – R1 Configuration |
| 205 | + |
| 206 | +```bash |
| 207 | +enable |
| 208 | +configure terminal |
| 209 | +hostname R1 |
| 210 | + |
| 211 | +interface fa2/0 |
| 212 | +ip address 192.168.2.1 255.255.255.0 |
| 213 | +no shutdown |
| 214 | +exit |
| 215 | + |
| 216 | +interface se1/0 |
| 217 | +ip address 10.0.0.2 255.0.0.0 |
| 218 | +no shutdown |
| 219 | +exit |
| 220 | + |
| 221 | +interface se0/0 |
| 222 | +ip address 11.0.0.1 255.0.0.0 |
| 223 | +clock rate 64000 |
| 224 | +no shutdown |
| 225 | +exit |
| 226 | + |
| 227 | +router eigrp 1 |
| 228 | +network 192.168.2.0 |
| 229 | +network 10.0.0.0 |
| 230 | +network 11.0.0.0 |
| 231 | +no auto-summary |
| 232 | +exit |
| 233 | +exit |
| 234 | + |
| 235 | +write memory |
| 236 | +exit |
| 237 | +``` |
| 238 | + |
| 239 | +### Step 4.3 – R2 Configuration |
| 240 | + |
| 241 | +```bash |
| 242 | +enable |
| 243 | +configure terminal |
| 244 | +hostname R2 |
| 245 | + |
| 246 | +interface fa2/0 |
| 247 | +ip address 192.168.3.1 255.255.255.0 |
| 248 | +no shutdown |
| 249 | +exit |
| 250 | + |
| 251 | +interface se1/0 |
| 252 | +ip address 11.0.0.2 255.0.0.0 |
| 253 | +no shutdown |
| 254 | +exit |
| 255 | + |
| 256 | +interface se0/0 |
| 257 | +ip address 12.0.0.2 255.0.0.0 |
| 258 | +no shutdown |
| 259 | +exit |
| 260 | + |
| 261 | +router eigrp 1 |
| 262 | +network 192.168.3.0 |
| 263 | +network 11.0.0.0 |
| 264 | +network 12.0.0.0 |
| 265 | +no auto-summary |
| 266 | +exit |
| 267 | +exit |
| 268 | + |
| 269 | +write memory |
| 270 | +exit |
| 271 | +``` |
| 272 | + |
| 273 | +--- |
| 274 | + |
| 275 | +## Part 5 – Verification and Testing |
| 276 | + |
| 277 | +So now your network should be fully configured with EIGRP routing. The next step is to verify that all devices can communicate across the network. |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | +### Step 5.1 – Check Routing Tables |
| 282 | + |
| 283 | +Run on each router: |
| 284 | + |
| 285 | +```bash |
| 286 | +show ip route |
| 287 | +``` |
| 288 | + |
| 289 | +You should see EIGRP routes (`D`) to all remote networks. |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | +You can specifically specify this by running: |
| 294 | + |
| 295 | +```bash |
| 296 | +show ip route eigrp |
| 297 | +``` |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | +This command will filter the routing table to show only EIGRP routes, making it easier to verify that all networks are reachable. |
| 302 | + |
| 303 | +### Step 5.2 – Test Connectivity |
| 304 | + |
| 305 | +From **PC0**, run: |
| 306 | + |
| 307 | +```bash |
| 308 | +ping 192.168.1.11 |
| 309 | +ping 192.168.2.12 |
| 310 | +ping 192.168.3.14 |
| 311 | +``` |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | +From **PC3**, ping **PC5**: |
| 316 | + |
| 317 | +```bash |
| 318 | +ping 192.168.3.15 |
| 319 | +``` |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | +Repeat pings between any devices across networks. |
| 324 | + |
| 325 | +--- |
| 326 | + |
| 327 | +## Summary |
| 328 | + |
| 329 | +In this tutorial, you: |
| 330 | + |
| 331 | +* Built a three-router, three-switch network with six PCs |
| 332 | +* Assigned IPs and default gateways to all devices |
| 333 | +* Configured EIGRP routing on each router |
| 334 | +* Verified full network reachability using dynamic routing |
0 commit comments