Eigrp Configuration Step by Step Guide
Eigrp Configuration Step by Step Guide
EIGRP uses the concept of AS and Wildcard mask which makes its configuration part a little
bit more complex. We will explain these fundamental topics in easy language with examples.
This tutorial is last part of our article EIGRP Routing Protocol Explained with examples".
You can read other parts of this article here.
For demonstration we will use packet tracer network simulator software. You can use real
Cisco devices or any other network simulator software for following this guide.
Create a topology as illustrate in following figure or download pre-created topology from our
server.
Device
Interface
IP Configuration
Connected with
PC0
Router0
Router0
Router4
Router4
Router3
Router3
Router5
Router5
Server
Router5
Router2
Router2
Router1
Router1
Router0
Fa0/0
Fa0/0
Fa0/1
Fa0/1
Fa0/0
Fa0/0
Fa0/1
Fa0/1
Fa0/0
Fa0/0
Se0/0/0
Se0/0/0
Se0/0/1
Se0/0/1
Se0/0/0
Se0/0/0
10.0.0.2/8
10.0.0.1/8
192.168.1.1/30
192.168.1.2/30
192.168.1.5/30
192.168.1.6/30
192.168.1.9/30
192.168.1.10/30
20.0.0.1/8
20.0.0.2/8
192.168.1.254/30
192.168.1.253/30
192.168.1.250/30
192.168.1.249/30
192.168.1.246/30
192.168.1.245/30
Router0s Fa0/0
PC0s Fa0/0
Router4s Fa0/1
Router0s Fa0/1
Router3s F0/0
Router4s Fa0/0
Router5s Fa0/1
Router3s Fa0/1
Serve0s Fa0/0
Router5s Fa0/0
Router2s Se0/0/0
Router5s Se0/0/0
Router1s Se0/0/1
Router2s Se0/0/1
Router0s Se0/0/0
Router1s Se0/0/0
Router>enable
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
From global configuration mode we can enter in interface mode. From there we can configure
the interface. Following commands will assign IP address on FastEthernet0/0 and
FastEthernet0/1.
Router(config-if)#bandwidth 64
Bandwidth works as an influencer. It is used to influence the metric calculation of EIGRP or
any other routing protocol which uses bandwidth parameter in route selection process.
Router1
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 192.168.1.246 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address 192.168.1.249 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
We will use same commands to assign IP addresses on interfaces of remaining routers.
Router2
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0/1
Router(config-if)#ip address 192.168.1.250 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 192.168.1.253 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Router5
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 192.168.1.10 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router3
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.6 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastEthernet 0/1
Router(config-if)# ip address 192.168.1.9 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router4
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
We have two options while defining the range of addresses with network command
1. Without wildcard mask
2. With wildcard
Without wildcard
Choosing this option allows us to configure the classful network. This option is very
straightforward. All we need to do is, type the network ID with network command. For
example network 172.168.0.0 command will enable EIGRP on all interfaces which belong to
network 172.168.0.0.
What if I type network number instead of network ID?
Well in this situation EIGRP will automatically convert it back to network ID in which this
network number is resides. For example 172.168.1.1 will be converted back in 172.168.0.0.
This creates another query. Why it will be converted in 172.168.0.0 instead of 172.168.1.0?
Answer of this question is hidden in classful configuration. In classful configuration EIGRP
will match network addresses with in default boundary. Consider following figure
If we want excludes serial interfaces from EIGRP, we need to configure network command
with more specific information.
With wildcard
In this option we provide wildcard mask along with network ID. Wildcard mask allows us to
match exact networks. With wildcard we are no longer limited with default boundaries. We
can match Subnetted networks as well as default networks.
For example we were tasked to exclude serial interfaces in above configuration. We can use a
wildcard mask of 0.0.0.255 to match the subnet mask of /24.
If you are a CCNA candidate or preparing for any Cisco certification, I suggest you to use
wildcard mask instead of Subnet mask with network command. In real life implementation
you can use either subnet mask or wildcard mask. If you use wildcard, it will be used as it is.
If you use subnet mask, it will be converted in wildcard mask before using.
EIGRP configuration
Now we know the essential commands for configuration. Lets implement them in our
network.
Router0
Router(config)#router eigrp 20
Router(config-router)#network 10.0.0.0 0.0.0.255
Router(config-router)#network 192.168.1.244 0.0.0.3
Router(config-router)#network 192.168.1.0 0.0.0.3
Router(config-router)#
Router1
Router(config)#router eigrp 20
Router(config-router)#network 192.168.1.244 0.0.0.3
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.245 (Serial0/0/0) is up: new
adjacency
Router(config-router)#network 192.168.1.248 0.0.0.3
Router(config-router)#
Router2
Router(config)#router eigrp 20
Router(config-router)#network 192.168.1.248 0.0.0.3
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.249 (Serial0/0/1) is up: new
adjacency
Router(config-router)#network 192.168.1.252 0.0.0.3
Router(config-router)#
As I mentioned earlier, we can use both wildcard mask and subnet mask with network
command. We have used wildcard mask for above routers. In remaining routers we will use
subnet mask.
Router5
Router(config)#router eigrp 20
Router(config-router)#network 20.0.0.0 255.0.0.0
Router(config-router)#network 192.168.1.252 255.255.255.252
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.253 (Serial0/0/0) is up: new
adjacency
Router(config-router)#network 192.168.1.8 255.255.255.252
Router(config-router)#
Router3
Router(config)#router eigrp 20
Router(config-router)#network 192.168.1.8 255.255.255.252
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.10 (FastEthernet0/1) is up: new
adjacency
Router(config-router)#network 192.168.1.4 255.255.255.252
Router(config-router)#
Router4
Router(config)#router eigrp 20
Router(config-router)#network 192.168.1.4 255.255.255.252
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.6 (FastEthernet0/0) is up: new
adjacency
Router(config-router)#network 192.168.1.0 255.255.255.252
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 20: Neighbor 192.168.1.1 (FastEthernet0/1) is up: new
adjacency
Router(config-router)#
Thats it. Our network is ready to take the advantage of EIGRP routing. To verify the setup
we will use ping command. ping command is used to test the connectivity between two
devices. We have two routes between source and destination. tracert command is used to
know the route which is used to get the destination.
Access the command prompt of PC1 and use ping command to test the connectivity from
Server0. After that use tracert command to print the taken path.
Good going we have successfully implemented EIGRP routing protocol in our network. For
cross check we have uploaded a configured topology on our server. You can use that if not
getting same output.
EIGRP protocol automatically manages all routes for us. If one route goes down, it will
automatically switch to another available route. To explain this process more clearly we have
added one additional route in our network.
Currently there are two routes between PC0 and Server.
Route 1
PC0 Router0 Router4 Router3 Router5 Server0
Route 2
PC0 Router0 Router1 Router2 Router5 Server0
By default EIGRP uses the route that has low metric value. Our path separates from Router0,
so lets see which route it takes to deliver the packet of 20.0.0.0 network. show ip route
eigrp command will list all available routes.
Okay our primary route went down. What will be happen now?
EIGRP will look in topology table for next available routes. If single alternative is available, it
will be selected. If multiple routes are available, it will select the route with the lowest metric
value.
We can use show ip route eigrp command again to see the selected route.
Thats all for this article. Before closing just do a quick recap of important commands.
Description
Router(config)#router
eigrp 20
Router(configrouter)#network 10.10.0.0
Router(configrouter)#network 10.10.0.0
0.0.255.255
Router(configrouter)#network 10.10.0.0
255.255.0.0
method].
Router(config-router)#no
network 10.10.0.0
Router(config-router)#no
network 10.10.0.0
0.0.255.255
Router(config-router)#no
network 10.10.0.0
255.255.0.0
Router(config-router)
#metric weights tos
k1 k2 k3 k4 k5
Router(configrouter)#auto-summary
Router(config-router)#no
auto-summary
Router(config)#no router
eigrp 20
Router(configif)#bandwidth 64
Router#show ip eigrp
neighbors
Router#show ip eigrp
neighbors detail
Router#show ip eigrp
interfaces
Router#show ip eigrp
interfaces serial 0/0
Router#show ip eigrp
interfaces 20
Router#show ip eigrp
topology
Router#show ip eigrp
traffic
ComputerNetworkingnotes.com