How to Configure EIGRP on Cisco Router in GNS3

EIGRP is a routing protocol specific to Cisco devices. This protocol immediately sends routing updates to a change in the network.

How to Configure EIGRP on Cisco Router in GNS3

How to Setup EIGRP Routing on Router in GNS3

The EIGRP routing protocol is not available on non-Cisco devices. This protocol is used only on Cisco branded network devices.

The EIGRP routing protocol broadcasts Multicast (224.0.0.10). Before configuring this protocol, it activates with the command “Router EIGRP (AS Number)” in config mode.

In our previous article, we have provided information about the EIGRP protocol. In this article, we will examine the EIGRP Routing configuration steps in GNS3.

How to Enable and Configure EIGRP Routing Protocol

Before proceeding with the configuration steps, perform the VMware integration with GNS3. Then follow the steps below to activate EIGRP.

   Step 1

Run the GNS3 network simulator software and then create a new project.

Creating a New Project in GNS3

   Step 2

First, create a network topology for EIGRP as in the image below. Then power on the Routers, and open the CLI prompts.

A Network Topology with Two Routers in GNS3

   Step 3

Configure the Cisco Router R1 interfaces with the following commands.

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.5.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
*Mar 1 00:00:43.715: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:00:44.715: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config)#
R1(config)#interface serial 0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#end
R1#

 
Configuring Serial and FastEthernet Interfaces

   Step 4

Configure the Router R2 interfaces in the same way.

R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface fastethernet 0/1
R2(config-if)#ip address 192.168.10.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
*Mar 1 00:02:07.995: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar 1 00:02:08.995: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R2(config)#
R2(config)#interface serial 0/1
R2(config-if)#ip address 10.1.1.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#end
R2#

 
Configuring Serial and FastEthernet Interfaces

   Step 5

After you run the virtual machines, you must configure the VMnet settings. Select VMnet1 for the network card of the Windows 8.1 virtual machine and run the virtual machine.

Running the Windows 8.1 Virtual Machine

   Step 6

Configure VMnet2 as the Windows 10 virtual machine network card.

Running the Windows 10 Virtual Machine

   Step 7

After configuring the Windows 8.1 machine TCP/IP settings, test the connection by pinging the Router FastEthernet 0/0 and Serial 0/0 interfaces.

Also, before configuring EIGRP, check the connection by pinging the Router R2 interfaces and check that the Ping operation failed.

Testing the Connection Between Virtual Machines with Ping

   Step 8

Do the same on the Windows 10 VM.

Testing the Connection Between Virtual Machines with Ping

   Step 9

To communicate two different networks with the EIGRP routing protocol, open the R1 CLI prompt and perform the following commands.

It is important to note that the Wild Card Mask used when defining networks in the EIGRP protocol.

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)#router eigrp 1
R1(config-router)#network 10.1.1.0 ?
A.B.C.D E-I-G-R-P wild card bits

R1(config-router)#network 10.1.1.0 0.0.0.3
R1(config-router)#network 192.168.5.0 0.0.0.255
R1(config-router)#end
R1#

 
R1(config)#router

   Step 10

At the R2 CLI command prompt, also execute the following commands.

R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#
R2(config)#router eigrp 1
R2(config-router)#network 10.1.1.0 0.0.0.3
R2(config-router)#network 192.
*Mar 1 00:26:14.107: %DUAL-5-NBRCHANGE: IP-E-I-G-R-P(0) 1: Neighbor 10.1.1.1 (Serial0/1) is up: new adjacency
R2(config-router)#network 192.168.10.0 0.0.0.255
R2(config-router)#end
R2#

 
R2(config)#router

   Step 11

Run the show ip route command on R1 and you can see that the EIGRP Routing protocol is enabled.

show ip route

   Step 12

The output of show ip route command on R2 is as follows.

show ip route

   Step 13

After EIGRP settings, ping each other to test the network connection between the virtual machines again, and test the connection between the two networks.

Pinging through CMD

   Step 14

Pinging from Windows 10 machine will succeed as follows.

Pinging through CMD

   Step 15

Pinging from Windows 10 machine will be successful as follows. You can see show commands of the EIGRP protocol from the following image.

Show Commands

   Step 16

Likewise, the outputs of the show command on R2 are as follows.

R2 Show Commands

   Step 17

To verify EIGRP, you can use the debug eigrp packets command.

debug command

   Step 18

Execute the same command on R2 and check that the Hello packets sent between the routers.

debug command

   Step 19

Another way to verify the EIGRP configuration is to use the Wireshark program. Click on the right button / Start Capture on the serial cable connecting the routers.

Network Analysis with Wireshark

   Step 20

Click OK from the Packet Capture window to start the network analysis.

Selecting the Interface to Analyze

   Step 21

As soon as you press the OK button, the Wireshark program will open. You can see the EIGRP packages on Wireshark.

Check that EIGRP Hello packages sent via 224.0.0.10 Multicast address.

224.0.0.10 Multicast

EIGRP Show Commands

R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - E-I-G-R-P, EX - E-I-G-R-P external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

D 192.168.10.0/24 [90/2195456] via 10.1.1.2, 00:00:47, Serial0/0
C 192.168.5.0/24 is directly connected, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/30 is directly connected, Serial0/0
D 10.0.0.0/8 is a summary, 00:01:48, Null0
R1#

 


R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - E-I-G-R-P, EX - E-I-G-R-P external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.10.0/24 is directly connected, FastEthernet0/1
D 192.168.5.0/24 [90/2195456] via 10.1.1.1, 00:01:28, Serial0/1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/30 is directly connected, Serial0/1
D 10.0.0.0/8 is a summary, 00:01:20, Null0
R2#

 


R1#debug eigrp packets
E-I-G-R-P Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
R1#
*Mar 1 00:40:53.527: E-I-G-R-P: Received HELLO on Serial0/0 nbr 10.1.1.2
*Mar 1 00:40:53.531: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
R1#
*Mar 1 00:40:55.623: E-I-G-R-P: Sending HELLO on Serial0/0
*Mar 1 00:40:55.623: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Mar 1 00:40:55.987: E-I-G-R-P: Sending HELLO on FastEthernet0/0
*Mar 1 00:40:55.987: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
R1#
*Mar 1 00:40:58.299: E-I-G-R-P: Received HELLO on Serial0/0 nbr 10.1.1.2
*Mar 1 00:40:58.303: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
R1#
*Mar 1 00:41:00.439: E-I-G-R-P: Sending HELLO on Serial0/0
*Mar 1 00:41:00.439: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Mar 1 00:41:00.651: E-I-G-R-P: Sending HELLO on FastEthernet0/0
*Mar 1 00:41:00.651: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
R1#
*Mar 1 00:41:02.979: E-I-G-R-P: Received HELLO on Serial0/0 nbr 10.1.1.2
*Mar 1 00:41:02.983: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
R1#

 


R2#debug eigrp packets
E-I-G-R-P Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
R2#
*Mar 1 00:41:30.323: E-I-G-R-P: Received HELLO on Serial0/1 nbr 10.1.1.1
*Mar 1 00:41:30.323: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
R2#
*Mar 1 00:41:31.767: E-I-G-R-P: Sending HELLO on Serial0/1
*Mar 1 00:41:31.767: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
R2#
*Mar 1 00:41:33.027: E-I-G-R-P: Sending HELLO on FastEthernet0/1
*Mar 1 00:41:33.027: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
R2#
*Mar 1 00:41:35.619: E-I-G-R-P: Received HELLO on Serial0/1 nbr 10.1.1.1
*Mar 1 00:41:35.623: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
*Mar 1 00:41:36.551: E-I-G-R-P: Sending HELLO on Serial0/1
*Mar 1 00:41:36.551: AS 1, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
R2#

 


R1#show running-config
Building configuration...

Current configuration : 1119 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
ip tcp synwait-time 5
!
!
interface FastEthernet0/0
ip address 192.168.5.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.1.1.1 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
router eigrp 1
network 10.1.1.0 0.0.0.3
network 192.168.5.0
auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R1#

 


R2#show running-config
Building configuration...

Current configuration : 1121 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
ip tcp synwait-time 5
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet0/1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1
ip address 10.1.1.2 255.255.255.252
clock rate 2000000
!
router eigrp 1
network 10.1.1.0 0.0.0.3
network 192.168.10.0
auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R2#

 

How to Configure Enhanced Interior Gateway Routing Protocol with GNS3 ⇒ Video

You can watch the video below to enable and verify EIGRP and also subscribe to our YouTube channel to support us!

   Final Word


In this article, we have communicated two different networks using the EIGRP routing protocol. When configuring EIGRP, you must correctly configure the Wild Card Mask address when using a network command. Thanks for following us!

   Related Articles


How to Configure OSPF in GNS3
How to Configure RIP Routing in GNS3
How to Configure RIPv2 Routing in GNS3
How to Configure VLAN in GNS3
How to Configure Port Security in GNS3

Add a Comment

Your email address will not be published. Required fields are marked *

shares
error: