cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
726
Views
2
Helpful
3
Replies

How to correctly configure EIGRP and Static routing?

ADG12
Level 1
Level 1

I have the following network topology:

Screenshot_1.jpg

I need to configure routers R1 and R2 with EIGRP, and routers R2, R3 and R4 with static routing. All the end-devices must be able to ping each other.

What I've done:

  1. The end-devices of R2, R3, and R4 can all ping to each other.
  2. The end-devices of R1 and R2 can ping to each other.

What I can't figure out:

  1. How to get the end-devices of R1 to ping to the end-devices of R3 and R4.

Here's what I have so far:

R1 EIGRP:

router eigrp 44
network 192.168.100.0
network 192.168.10.0
network 192.168.20.0
network 192.168.30.0
network 10.10.40.0

R2 EIGRP:

router eigrp 44
network 172.16.50.0
network 192.168.100.0
network 192.168.10.0
network 192.168.20.0
network 192.168.30.0
network 10.10.40.0

R2 static routing:

ip route 192.168.100.0 255.255.255.0 10.10.40.1
ip route 192.168.10.0 255.255.255.0 10.10.40.1
ip route 192.168.20.0 255.255.255.0 10.10.40.1
ip route 192.168.30.0 255.255.255.0 10.10.40.1
ip route 172.16.60.0 255.255.255.192 10.10.40.6
ip route 172.16.70.0 255.255.255.192 10.10.40.6
ip route 10.10.40.0 255.255.255.252 10.10.40.6
ip route 0.0.0.0 0.0.0.0 10.10.40.1
ip route 0.0.0.0 0.0.0.0 10.10.40.6

R3 static routing:

ip route 192.168.100.0 255.255.255.0 10.10.40.5
ip route 192.168.10.0 255.255.255.0 10.10.40.5
ip route 192.168.20.0 255.255.255.0 10.10.40.5
ip route 192.168.30.0 255.255.255.0 10.10.40.5
ip route 172.16.50.0 255.255.255.192 10.10.40.5
ip route 172.16.70.0 255.255.255.192 10.10.40.10
ip route 0.0.0.0 0.0.0.0 10.10.40.5
ip route 0.0.0.0 0.0.0.0 10.10.40.10

R4 static routing:

ip route 192.168.100.0 255.255.255.0 10.10.40.9
ip route 192.168.10.0 255.255.255.0 10.10.40.9
ip route 192.168.20.0 255.255.255.0 10.10.40.9
ip route 192.168.30.0 255.255.255.0 10.10.40.9
ip route 172.16.50.0 255.255.255.192 10.10.40.9
ip route 172.16.60.0 255.255.255.192 10.10.40.9
ip route 0.0.0.0 0.0.0.0 10.10.40.9
1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

You need to get R2 to redistribute the static routes that it has installed towards R1.

Try the following:

 

!
router eigrp 44
  redistribute static metric 10000 0 255 1 1500
!

 

 

Also adjust some of your static routes:

! R3
no ip route 0.0.0.0 0.0.0.0 10.10.40.10
!

! R2
no ip route 0.0.0.0 0.0.0.0 10.10.40.6
!

cheers,

Seb.

View solution in original post

3 Replies 3

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

You need to get R2 to redistribute the static routes that it has installed towards R1.

Try the following:

 

!
router eigrp 44
  redistribute static metric 10000 0 255 1 1500
!

 

 

Also adjust some of your static routes:

! R3
no ip route 0.0.0.0 0.0.0.0 10.10.40.10
!

! R2
no ip route 0.0.0.0 0.0.0.0 10.10.40.6
!

cheers,

Seb.

bandararmc
Level 1
Level 1

Hi, 

In addition to the above redistribution, please check S1 and S2 switches' config. those are not cable of routing functions right? 

So  192.168.10.0/24 subnet wont advertise to other network if S1 and S2 are not supporting L3. if those switches are L2 switches, please configure   192.168.100.0/24 IPs for those PC too. 

Regards~~

Chaminda 

Joseph W. Doherty
Hall of Fame
Hall of Fame

There are multiple way to solve your requirements.  What @Seb Rupik suggested is fine, but perhaps we can further "simplify" how these requirements are done.

From the R1 and R2 EIGRP perspective, you have their networks within EIGRP, but, neither knows about networks not in EIGRP, such as those connected to R3 and R4.

R3 and R4, like any router not running a dynamic routing protocol, don't know of any networks, not directly connected to them.

So, let's look at filling in the "missing" routes.

Starting with R1, as it's an edge router, it only additionally needs a default route to R2 (which could be provided, via EIGRP, from R2).

R2 only needs a default route to R3.

R4 only needs a default route to R3.

R3, though, besides needing a default route to R2, needs 172.16.70.0/26 to R3.

The above is all you need, although, since R2 and R3 have defaults to each other, they will loop unknown destination networks back and forth, until the packet's hop count hits zero.  I.e. less than ideal.

To preclude the possible route loop issue, replace R2's default to R3 with 3 routes to R3 for 10.10.40.8/30, 172.16.60.0/26 and 172.16.70.0/26.  (BTW, the last two networks, I believe, could be aggregated into one route with an unnatural mask; as it would likely confuse the heck out of almost all network engineers, I would not do that.)

If you also don't want to use a default route on R1, it too would only need the forgoing 3 routes, even using R3 as the next (recursive) hop, or R2 as next hop.  Those 3 routes if you don't want to statically define them on R1, could be redistributed into EIGRP on R2 (which would automatically make R2 the next hop).

All the other static routes, you intended on R3 and R4 are covered by the default route (which, BTW, you would generally never have directed into totally opposite directions).

If you have questions on the above, please ask.

[edit - addendum]

Personally, I would recommend R2 not use a default route to R3, and R1 obtaining either R3's or R4's (3) routes, or the default route, via EIGRP from R2.  BTW, there are two ways to provided a default route via EIGRP.  I'm far from an EIGRP expert, but using the summary method might suppress R2's "far side" networks, which one could argue is a "good thing".

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card