03-07-2018 03:55 PM - edited 03-05-2019 10:03 AM
I would like to create static route at one of my location's core switch and point it to the firewall (route is for one of the public IPs. I am running EIGRP on the core and then I distribute routes into BGP to my WAN.
I don't want to redistribute all static route from the core switch but this particular route only.
Sample:
There are two static routes:
222.222.222.222 255.255.255.255 1.1.1.1
222.222.222.111 255.255.255.255 1.1.1.1
How to configure core switch to distribute from EIGRP to BGP 222.222.222.222 255.355.255.255 1.1.1.1 only?
I believe I need to create route-map, than access list in which I would specify the IP which I want to distribute.
Something like this:
access-list 22 permit 222.222.222.222
route-map TEST permit 20
match ip address 22
router eigrp 111
redistribute static route-map TEST
Is this a way to do this or there are better ways to do it.
Solved! Go to Solution.
03-08-2018 04:53 AM - edited 03-08-2018 04:58 AM
Hello
To redistribute an eigrp route from eigrp into bgp
router bgp xx
redistribute eigrp xxx route-map TEST
As for a static route on that particlar router
router bgp xx
redistribute static route-map TEST
res
Paul
03-08-2018 05:27 AM - edited 03-08-2018 05:31 AM
Thank you, that is correct if you want to redistribute 1 route you can add a tag and it will redistribute just one.
So you will have a better control of what you desire to redistribute.
ip route 222.222.222.222 255.255.255.255 1.1.1.1 tag 100
ip route 222.222.222.111 255.255.255.255 1.1.1.1
route-map REDISTRIBUTE permit 5
match tag 100
router eigrp 111
redistribute static route-map REDISTRIBUTE metric 100000 10 255 1 1500
it will redistribute the route 222.222.222.222/32 only
You can use ACL, Prefixes, Tags, etc. Tag is basically a fancy way to redistribute the static route.
:-)
03-08-2018 05:34 AM - edited 03-08-2018 05:43 AM
Hello @paul driver,
Yes, I am thinking that you are right, No need it but I made correct to @Julio E. Moisa. configuration.
Regards,
Deepak Kumar
03-08-2018 04:53 AM - edited 03-08-2018 04:58 AM
Hello
To redistribute an eigrp route from eigrp into bgp
router bgp xx
redistribute eigrp xxx route-map TEST
As for a static route on that particlar router
router bgp xx
redistribute static route-map TEST
res
Paul
03-08-2018 05:12 AM - edited 03-08-2018 05:16 AM
Hi
Other way additional to Paul's comments is adding a tag to the static routes, for example:
ip route 222.222.222.222 255.255.255.255 1.1.1.1 tag 100
ip route 222.222.222.111 255.255.255.255 1.1.1.1 tag 100
route-map REDISTRIBUTE permit 5
match tag 100
router eigrp 111
redistribute static route-map REDISTRIBUTE metric 100000 10 255 1 1500
It will redistribute the static routes with tag 100
:-)
03-08-2018 05:18 AM
I am bit confused. I want to redistribute only one of these two routes. If I mark both of them with tag 100 and then redistribute routes tagged with tag 100 both of them will be redistributed. Right?
03-08-2018 05:23 AM
HI,
@ I hope @Julio E. Moisa missed your point that you need to redistribution only one route. If you want to redistribution only one route then you must tag with 100 to only one route.
Regards,
Deepak Kumar
03-08-2018 05:27 AM - edited 03-08-2018 05:31 AM
Thank you, that is correct if you want to redistribute 1 route you can add a tag and it will redistribute just one.
So you will have a better control of what you desire to redistribute.
ip route 222.222.222.222 255.255.255.255 1.1.1.1 tag 100
ip route 222.222.222.111 255.255.255.255 1.1.1.1
route-map REDISTRIBUTE permit 5
match tag 100
router eigrp 111
redistribute static route-map REDISTRIBUTE metric 100000 10 255 1 1500
it will redistribute the route 222.222.222.222/32 only
You can use ACL, Prefixes, Tags, etc. Tag is basically a fancy way to redistribute the static route.
:-)
03-08-2018 05:27 AM
Hello
@Deepak Kumar wrote:
HI,
@ I hope @Julio E. Moisa missed your point that you need to redistribution only one route. If you want to redistribution only one route then you must tag with 100 to only one route.
Regards,
Deepak Kumar
Hello Deepak
Why do you NEED to tag, My undertanding it isnt a requirement to do so more than optional to mark what your are redistributing.
res
Paul
03-08-2018 05:30 AM - edited 03-08-2018 05:31 AM
Hello
You dont have to TAG your redistriubte route, you can do but its not a requirment, as for advertising the eigrp route just specify what route you wish to redistribute in your route-map stanza
res
Paul
03-08-2018 05:34 AM - edited 03-08-2018 05:43 AM
Hello @paul driver,
Yes, I am thinking that you are right, No need it but I made correct to @Julio E. Moisa. configuration.
Regards,
Deepak Kumar
03-08-2018 07:58 AM
The discussion about controlling redistribution from EIGRP to BGP using a route map is correct, and correct that using tags is an optional alternative. If I am understanding the original post correctly there are multiple static routes that are redistributed into EIGRP. And from EIGRP only certain routes will be redistributed into BGP. I believe the original poster will find that this does not work. The static routes will be in the EIGRP topology table and will be advertised to EIGRP peers. But when redistributing from EIGRP into BGP it will redistribute only "EIGRP" entries. And on the originating device these routes are in the routing table as static and not EIGRP and therefore will not be redistributed.
If the original poster wants specific static routes to be processed by BGP there needs to be either BGP network statements for the specific static routes or redistribution of static into BGP (with controls on the redistribution to allow only the specific static).
HTH
Rick
04-04-2018 10:37 PM
Thank you a lot for help
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