10-07-2020 12:29 PM
Hello,
I'm trying to create a PBR to redistribute static routes into EIGRP on a NX7K. Cisco's document below states that the route-map policy needs to be implemented at the Interface level.
My question is, do I need to apply this policy on every interface that I have configured for EIGRP or can I just implement this route-map under the EIGRP instance?
Thanks in advance.
Best, ~sk
Solved! Go to Solution.
10-08-2020 07:51 AM
Hello,
you don't need to define a next hop. You match on the static route destination (192.168.1.0/24 in your case):
ip prefix-list PL_ALLOW seq 10 permit 192.168.1.0/24
!
route-map RM_STATIC_EIGRP permit 10
match ip address prefix-list PL_ALLOW
!
router eigrp 1
redistribute static route-map RM_STATIC_EIGRP
10-07-2020 01:09 PM
Hello
Not so sure what it is your trying to archive, "policy route to a redistributed static?"
Can you elaborate please?
10-07-2020 01:24 PM - edited 10-08-2020 06:38 AM
I've 4 static route statements that I am trying to redistribute into an eigrp instance on a NX7K. On the NX-OS, redistributing routes requires the creation on route-maps. So, here's the config I came up with;
ip prefix-list 100
permit 192.168.9.228/30
!
ip prefix-list 200
permit 192.168.102.228/30
!
ip prefix-list 300
permit 192.168.1.0/24
!
ip prefix-list 400
permit 10.10.0.0/16
----
route-map STATIC_TO_EIGRP permit 10
match ip address prefix-list 200
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 15
match ip address prefix-list 300
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 20
match ip address prefix-list 400
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 25
match ip address prefix-list 100
set ip next-hop 10.1.9.254
!
router eigrp calenterprise
autonomous-system 1116
passive-interface default
address-family ipv4 unicast
redistribute static route-map STATIC_TO_EIGRP
Will this approach work?
Best, ~zK
10-07-2020 01:13 PM
Hello,
don't confuse PBR, and redistribution using route maps. PBR needs to be applied to interfaces, route redistribution using route maps under the (EIGRP in your case) routing protocol instance.
10-07-2020 01:29 PM - edited 10-08-2020 06:37 AM
That's how I understood it. Thanks for the clarification!!
Here's my config. I hope I didn't miss anything.
ip prefix-list 100
permit 192.168.9.228/30
!
ip prefix-list 200
permit 192.168.102.228/30
!
ip prefix-list 300
permit 192.168.1.0/24
!
ip prefix-list 400
permit 10.10.0.0/16
----
route-map STATIC_TO_EIGRP permit 10
match ip address prefix-list 200
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 15
match ip address prefix-list 300
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 20
match ip address prefix-list 400
set ip next-hop 10.1.9.254
!
route-map STATIC_TO_EIGRP permit 25
match ip address prefix-list 100
set ip next-hop 10.1.9.254
!
router eigrp calenterprise
autonomous-system 1116
passive-interface default
address-family ipv4 unicast
redistribute static route-map STATIC_TO_EIGRP
10-08-2020 03:47 AM
Hello,
that does not look right. What are you trying to accomplish ? Redistribute static routes into EIGRP ?
Drop all the 'set' conditions, as these are for policy routing.
ip prefix-list 100
permit 192.168.9.228/30
!
ip prefix-list 200
permit 192.168.102.228/30
!
ip prefix-list 300
permit 192.168.1.0/24
!
ip prefix-list 400
permit 10.10.0.0/16
----
route-map STATIC_TO_EIGRP permit 10
match ip address prefix-list 200
!
route-map STATIC_TO_EIGRP permit 15
match ip address prefix-list 300
!
route-map STATIC_TO_EIGRP permit 20
match ip address prefix-list 400
!
route-map STATIC_TO_EIGRP permit 25
match ip address prefix-list 100
!
router eigrp calstrs
autonomous-system 1116
passive-interface default
address-family ipv4 unicast
redistribute static route-map STATIC_TO_EIGRP
10-08-2020 05:17 AM
I agree with @Georg Pauwen that the original poster is confusing the use of route maps to control redistribution of routes with the use of route maps in Policy Based Routing. Using route maps in PBR is intended to provide alternate routing for certain traffic by specifying a different next hop from what would be found in the IP routing table. Clearly what the original poster wants to do is to control redistribution of static routes into EIGRP. So at a minimum the original poster needs to remove the set statements from the route map.
I would also suggest that while the suggested approach of a route map with 4 stanzas will work it is more complex than is needed. Instead of 4 prefix lists each specifying a single address it would work with a single prefix list which has 4 entries, and therefore only a single stanza in the route map.
10-08-2020 06:17 AM
Thanks for the input. I was wondering if you could give me an example on how you would configure a static route distribution into eigrp using a route-map. Here's an example of the static route:
ip route 192.168.1.0 255.255.255.0 10.1.9.254
Thanks in advance.
Best, ~zK
10-08-2020 06:08 AM
Hello,
I am trying to redistribute static routes into eigrp on NX7K switch.
Here's one of the static route statement that I need to redistribute:
ip route 192.168.1.0 255.255.255.0 10.1.9.254
If I don't use the "set" statement under the route-map, how/where in your approach would you set the next-hop for the static route?
Thanks in advance.
Best~sK
10-08-2020 06:50 AM
Hello,
here is what the config would look like:
access-list 10 permit 192.168.1.0 0.0.0.255
!
route-map RM_STATIC_EIGRP permit 10
match ip address 10
!
router eigrp 1
redistribute static route-map RM_STATIC_EIGRP
10-08-2020 07:10 AM
Thanks for the reply.
I'm afraid that the access-list statement you defined in your config won't work on the NX-OS because on the NX-OS a destination parameter is required and that's the reason why I chose to use the prefix-lists.
Also, I seem to have a difficult time understanding where in your config a next-hop is defined for the source subnet 192.168.1.0 255.255.255.0. The static route is as follows :
192.168.1.0 255.255.255.0 10.1.9.254.
The next-hop needs to be defined, doesn't it?
I was hoping that you would clarify that for me so I could understand it better.
Thanks in advance.
~zK
10-08-2020 07:51 AM
Hello,
you don't need to define a next hop. You match on the static route destination (192.168.1.0/24 in your case):
ip prefix-list PL_ALLOW seq 10 permit 192.168.1.0/24
!
route-map RM_STATIC_EIGRP permit 10
match ip address prefix-list PL_ALLOW
!
router eigrp 1
redistribute static route-map RM_STATIC_EIGRP
10-08-2020 08:41 AM
I see. So, in essence the "redistribute static route-map RM_STATIC_EIGRP" statement will call the static route being "ip route 192.168.1.0 255.255.255.0 10.1.9.254" and filter the source address based on the prefix-list which is PL_ALLOW and the next-hop is already defined in the static route.
I hope I got it right.
10-08-2020 11:56 AM
Hello,
you filter the destination address (192.168.1.0/24 is the destination).
10-12-2020 03:53 PM
Correct. The dest network/subnet is 192.168.1.0/24.
Thanks for your help on this.
Best, ~zK
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