> For the complete documentation index, see [llms.txt](https://trepa-technologies.gitbook.io/networking-technologies-by-johnny-bandin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trepa-technologies.gitbook.io/networking-technologies-by-johnny-bandin/eigrp/eigrp-authentication-passive-interface-summarization.md).

# EIGRP Authentication, Passive-Interface, Summarization

## Description

#### In this guide, we will configure authentication keys for our EIGRP neighbors to be used on a yearly basis. We will also configure the "passive-interface" command for any interfaces that do not need to participate in sending EIGRP Hello packets. We will also configure summarization for contiguous networks.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FYECOMpLBNPE7YSI3OZaC%2FEIGRP%20advanced%20lab.png?alt=media&amp;token=00a5cf54-4dad-424d-bcc8-29d2b546728a" alt=""><figcaption><p>EIGRP Network Diagram</p></figcaption></figure>

## Configuration

#### 1. First, we will configure authentication.

#### 2. Second, we will configure our passive-interfaces

#### 3. Lastly, we will configure summarization from R1 to R2/R3

#### First, let's configure our clock and our authentication keys. (typically, in a live network, we would use NTP for clock synchronization)

`R1#clock set HH:MM:SS DAY MON YEAR` # This command will statically set the clock for the router.

`R1(config)#key chain [NAME]` # This command will create the key chain and bring you into the **"Key Chain"** sub-configuration mode

`R1(config-keychain)#key 1` This command creates an actual key to be used to authenticate. this is creating the PSK but is not the actual **"Key"** or **"password"** that will be used.

`R1(config-keychain-key)#key-string [password]` # This command will set the actual password to be used for authentication.

`R1(config-keychain-key)#send-lifetime 00:00:00 1 Mar 2022 00:00:00 28 Feb 2023` # This command will set the length of time the key can be sent.

`R1(config-keychain-key)#accept-lifetime 00:00:00 1 Mar 2022 00:00:00 28 Feb 2023` # This command will set the length of time a key can be accepted

## The full configuration is below.

#### R1 Configuration

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FR3TA2GtPoOmn2hcHjaCl%2Fset%20clock%20and%20auth%20key%20eigrp.png?alt=media&amp;token=1ddb9010-f46c-4ef1-8151-53f8657d517f" alt=""><figcaption><p>set clock and keychain configuration</p></figcaption></figure>

#### R2 Configuration

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2F4IKTTLCwBrR44aANsO5l%2Fset%20clock%20and%20auth%20key%20eigrp%20R2.png?alt=media&amp;token=b61f1a8c-d889-4f07-a6a9-17370d3923dc" alt=""><figcaption><p>set clock and keychain configuration</p></figcaption></figure>

#### R3 Configuration

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FN5PRxug8EVMYk6ZHbsjJ%2Fset%20clock%20and%20auth%20key%20eigrp%20R3.png?alt=media&amp;token=95c74ec5-3938-4319-bf4f-db35c4e41a9c" alt=""><figcaption><p>set clock and keychain configuration</p></figcaption></figure>

## EIGRP Authentication Configuration

#### Now let's go into our EIGRP sub-configuration and apply our Key-chain

`R1(config-router-af)#af-interface default` # This command will allow you to configure all interfaces that are participating in EIGRP

`R1(config-router-af-interface)#authentication mode md5` # This command will set the hash method for the Pre-shared key that will be sent in the EIGRP hello packet

`R1(config-router-af-interface)#authentication key-chain {name}` # This command will set the key-chain to be used on the EIGRP-enabled interface

## Full configuration below

#### This configuration will be applied to all routers

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FHZqSfd60Qk46XwtO1q7k%2Feigrp%20authentication%20configuration.png?alt=media&amp;token=837e2c73-9010-4f24-a3ff-32f7db71cc4e" alt=""><figcaption><p>Applying authentication under EIGRP named mode for all EIGRP interfaces</p></figcaption></figure>

## Verification

`R1#show key chain` # This command will show all the valid key-chain and their lifetimes.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2F0yHDdxVOnI4zH81HJ3WE%2Fshow_key_chain.png?alt=media&amp;token=b589c9b9-3215-4a22-9562-3d1b3c27adf9" alt=""><figcaption><p>show key chain command output</p></figcaption></figure>

#### Hello packet with the authentication parameter

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FpCco0vyxQvryF8cFGfBQ%2Fauthentication%20for%20eigrp%20wireshark.png?alt=media&amp;token=09f7c40a-21c3-4b0d-beb7-2fa478799f66" alt=""><figcaption><p>EIGRP Hello Packet with Authentication Parameter</p></figcaption></figure>

## Passive Interface Configuration

#### The passive-interface configuration will turn off EIGRP messages being sent out to the configured interfaces. We will put every interface into "passive-interface," and then we will go into our individual interfaces that are needed for EIGRP neighbors and turn off the "passive-interface" command.

`R1(config-router-af)#af-interface default` # This command will allow you to configure all interfaces that are participating in EIGRP

`R1(config-router-af-interface)#passive-interface` # This command will turn off EIGRP messages for any interface

`R1(config-router-af-interface)#no passive-interface` # This command will turn off the passive-interface command and enable EIGRP messages to be sent out to the interface

## Full configuration below

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FulUkoKZS3zuCU9CUmcoF%2Feigrp%20passive%20interface%20config.png?alt=media&amp;token=d5a6d1d8-69ac-4aab-8be1-4b29d4017390" alt=""><figcaption><p>EIGRP Passive Interface Configuration</p></figcaption></figure>

## Verification

`R1#show run | section router eigrp` # This command will show us the running configuration for just our EIGRP configuration.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FmP7XbsML5jgRSFWRLP9d%2Fshow%20run%20section%20router%20eigrp%20passive.png?alt=media&amp;token=09ff09ca-1b4c-4a51-9022-29b04a9d25bb" alt=""><figcaption><p>show run | section router eigrp command output</p></figcaption></figure>

`R1#show ip eigrp interfaces` # This command will show us all the interfaces that are participating in EIGRP

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FeUSMja64A8LaVoFYgdQX%2Fshow%20ip%20eigrp%20interfaces%20passive.png?alt=media&amp;token=aa6301a9-88c2-4cad-91b6-6a894a4bc4b0" alt=""><figcaption><p>show ip eigrp interfaces command output</p></figcaption></figure>

#### Wireshark capture of the interface facing the LAN. Notice there are no EIGRP Hello Messages.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FHAn7frFRoAeNQrZDyvw9%2Fwireshark%20for%20passive%20interface.png?alt=media&amp;token=7b6bd3eb-0739-4163-a3d3-d60d5fb072bf" alt=""><figcaption><p>Wireshark capture for interface that is in passive mode for EIGRP.</p></figcaption></figure>

## Summarization

#### For this step, we will first look at the EIGRP learned routes on R2.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FevGLhZhvan1fvptuEmdk%2Fshow%20ip%20route%20eigrp%20for%20summarization.png?alt=media&amp;token=9d22c169-e42a-4337-adea-7c11108c7f0b" alt=""><figcaption><p>EIGRP Learned Routes before summarization</p></figcaption></figure>

#### We should see 3 172.16.X.X that can be summarized. Since they are contiguous, the routes can be summarized with a /22. We will need to do this configuration for both interfaces from R1-->R2 and R1-->R3.

## Configuration

#### First, we will enter into our EIGRP named mode configuration.

`R1(config-router-af)#af-interface eth0/0` # This command will enter the sub-configuration for a specific EIGRP-enabled interface

`R1(config-router-af-interface)#summary-address 172.16.0.0/22` # This command will allow you to send a summarized route update for all the prefixes that fall within the range.

## Full Configuration Below

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FVzumnw95or0L1f3r0Gz0%2FEIGRP%20summary%20address.png?alt=media&amp;token=9ddc79c4-0e19-4b71-a39a-5b549d1a9454" alt=""><figcaption><p>EIGRP summary-address command</p></figcaption></figure>

## Verification

#### Now let's run our show ip route command again and see what it looks like.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FKVDuuabIj1z7K92mB0Dc%2Fshow%20ip%20route%20eigrp%20after%20summarization.png?alt=media&amp;token=6d69115f-52c5-4daa-b513-b95f8af117d0" alt=""><figcaption><p>EIGRP learned routes after summarization</p></figcaption></figure>

#### Now we can only see the /22 route that is being advertised to us. Let's take a look at the EIGRP update message via Wireshark.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FNj70k3apdqdLMYQWooze%2Fwireshark%20after%20eigrp%20summarization.png?alt=media&amp;token=71347a02-8654-48b6-8f9d-60b0a27e88e7" alt=""><figcaption><p>Wireshark capture of EIGRP update message with summarized route.</p></figcaption></figure>

## Conclusion

#### After going through these steps, we have successfully accomplished implementing some security on our EIGRP-enabled links.
