9

I am redistributing a static route into EIGRP on a 6500. I had read here if you enter a network statement matching a static route that it would be redistributed as an internal route by EIGRP. However, after entering the configuration, neighbors indicate the route as external.

Does the redistribute static preempt and cause the route to be marked as external?

router eigrp 10 
network 10.0.0.0
network 10.1.13.0 0.0.1.255
redistribute static

ip route 10.1.13.0 255.255.254.0 10.1.29.5
1
  • 1
    fyi OP: indenting lines with four (or more) spaces will trigger interpretation as a preformatted area. May 16, 2013 at 16:01

5 Answers 5

12

You can inject static routes into EIGRP two ways:

  • The 'network' command
  • 'redistribute static'

You only need one or the other; here you've used both. It seems that the redistribution command takes precedence over the network command so the route is appearing as static routes. Remove 'redistribute static' and the route should appear as internal.

2
  • So, to clarify for myself as I've never actually run EIGRP. If I use the network command EIGRP will advertise any matching static routes as if it were a matching interface. If I use redistribute static then EIGRP will redistribute all configured static routes as external routes. (Noting that I'm sure you can match tags or whatever if you don't actually want to redistribute all of them.) May 16, 2013 at 20:12
  • That's correct. May 16, 2013 at 20:13
1

Are you looking at two different routes? Maybe a /24 and a /23? In general a protocol can only redistribute what is already in the routing table. If you make a static route that matches the prefix of a connected interface the connected interface will be in the routing table and not the static. That would force the static to not placed into EIGRP (since it isn't in the routing table).

Now if you use "redistribute connected" that could change things, but I would still assume the connected interface would take precedence.

0

Just came across your question. Network command actually takes precedence over Redistribution. The reason why the static route appears to be an External EIGRP route is that in EIGRP, Network command can only advertise Static route that is pointing to EXIT Interface! Static route that is point to Next_Hop_Address would never be advertised via Network command. Redistribution, however, doesn't have such restriction.

-2

My experience of redistribution of statics with eigrp tells me that using the network statement will not inject the network, only the redistribute static works, however unless for also specify a metric be it default or on the redistribute statement it will not work. So use redistribution for statics with a metric and it will work

1
  • This is not accurate. The metric is not required in this case. Feb 10, 2014 at 22:23
-6

Add "redistribute eigrp" to your router bgp XXXXX. That should do it for you.

1
  • 4
    First, the OP doesn't mention BGP anywhere in their question. They are asking about redistributing static routes within EIGRP. Second, redistributing EIGRP into BGP can be a VERY BAD idea unless you really know what you are doing.
    – YLearn
    Apr 1, 2014 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.