11-02-2015 09:45 PM - edited 03-08-2019 02:32 AM
I have EIGRP Configured
router eigrp 2247
network 10.0.0.0 0.0.0.255
also static route ip route 10.10.0.0 255.255.0.0 10.0.0.1
so if i do sh ip route 10.10.210.0 it is showing that it using EIGRP but it should use static route because static route has 1 AD but it is not doing that, please advice.
Solved! Go to Solution.
11-03-2015 09:24 AM
ip route 10.10.210.0 255.255.225.0 10.0.0.1
You need to write this route to take preference. Subnet mask of you static route is 16 while subnet mask of your EIGRP route is 24. They are two different routes.
Masoud
11-02-2015 10:29 PM
You have a static route for a /16 prefix; what subnet mask is advertised in EIGRP for the 10.10.210.0 prefix?
Remember that the AD only is considered when the the prefix lengths are the same.
HTH
Rolf
11-03-2015 05:00 AM
If you check I believe that you will find that EIGRP has redistributed the static route. When there is a static route whose next hop is an address in the subnet of a connected interface and there is a network statement in EIGRP for that interface EIGRP will assume that it should redistribute the static route.
HTH
Rick
11-03-2015 09:08 AM
Let me Explain What I am trying to do
I have Firewall with 10.0.0.253 ----- Switch 10.0.0.239 ---- 10.0.0.1 Other Site
Right now if i do
sh ip route 10.10.210.0
Routing entry for 10.10.210.0/24
Known via "eigrp 2247", distance 90, metric 402944, type internal
Redistributing via eigrp 2247
Last update from 10.0.0.1 on Vlan1, 3d20h ago
Routing Descriptor Blocks:
* 10.0.0.1, from 10.0.0.1, 3d20h ago, via Vlan1
Route metric is 402944, traffic share count is 1
Total delay is 120 microseconds, minimum bandwidth is 6402 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 22/255, Hops 2
This is my routing table and EIGRP Config.
Why it is showing eigrp when i have this route ip route 10.10.0.0 255.255.0.0 10.0.0.1 why static is not taking precedence over eigrp?
D 10.10.210.0/24 [90/402944] via 10.0.0.1, 3d20h, Vlan1
Let me know if you need any thing else from any config.
11-03-2015 09:24 AM
ip route 10.10.210.0 255.255.225.0 10.0.0.1
You need to write this route to take preference. Subnet mask of you static route is 16 while subnet mask of your EIGRP route is 24. They are two different routes.
Masoud
11-03-2015 09:33 AM
I believe that Masoud has correctly identified the issue as the difference in the prefix length/mask. Let me add a bit to his explanation. In IOS the decision on which route to use in the routing table is always based on longest match wins. So if you have a /16 static route and a /24 EIGRP route the longer EIGRP route will be preferred.
As Rolf correctly commented in his previous post the AD is only considered when the prefix lengths are equal. In this case the longer /24 is preferred over the shorter /16.
HTH
Rick
11-03-2015 09:42 AM
Thanks Richad for your comment.
I assumed that Poser is willing to replace EIGRP with static route in the routing table. If there are two routes in the routing table, the most specific one( longer mask) is prefered. In this sense, you are completely right. The Rolf answer was also correct so I rated it before I received your post.
Masoud
11-03-2015 06:11 AM
Hello,
EIGRP route administrative distance is 90 while static route administrative distance is 1, so static route route is preferable over EIGRP route and sits into the routing table. You should check both routes subnet mask. 10.10.210.0/24 is different from 10.10.0.0/16.
In your case, If you check you routing table, you will see both static route and EIGRP route for 10.10.
Hope it helps,
Masoud
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide