EIGRP Static Neighbor

Hi Syed,
You mentioned these are static routes, and unless you say otherwise, I will assume they are on R1. Since they are static routes, we can assume they were not learned by EIGRP. Therefore, the easiest solution to your problem is advertise only those static routes in EIGRP like this (substitute the autonomous-system “1” below with whatever you are actually using for EIGRP):

R1(config)#router eigrp 1
R1(config-router)#network 192.168.3.0 0.0.0.255
R1(config-router)#network 192.168.5.0 0.0.0.255

The solution above assumes that you don’t want R2 or R3 to learn about any of the other static routes either.

Let’s suppose, however, you want R1, R2, and R3 to know about all the routes, but R4 should only know about the two routes. You would accomplish this by having R1 redistribute its static routes in EIGRP, then apply a Distribute-List on R3 to filter the routes so only the two you want will show up to R4. Here’s the config for this:

R1(config)#router eigrp 1
R1(config-router)#redistribute static metric 10000 10 255 1 1500

The command above takes all static routes on R1, injects them into the EIGRP autonomous-system using the specified metrics. Now, R2, R3, and R4 (assuming they are all running EIGRP) will see these. The last step is to filter out the routes, so R4 will only see what you want. This last step happens on R3.

R3(config)#ip access-list standard ACL_FILTER-FOR-R4
R3(config-std-nacl)#permit 192.168.3.0 0.0.0.255
R3(config-std-nacl)#permit 192.168.5.0 0.0.0.255
R3(config-std-nacl)#exit
R3(config)#router eigrp 1
R3(config-router)#distribute-list ACL_FILTER-FOR-R4 out FastEthernet 0/1

Obviously, in the command above, substitute “FastEthernet 0/1” for whatever interface connects R3 to R4.

1 Like