11-20-2007 04:04 AM - edited 03-03-2019 07:36 PM
Hi Folks,
router eigrp 19001
passive-interface FastEthernet0/1
network X.X.X.128 0.0.0.3
network X.X.X.X 0.0.0.7
no auto-summary
!
router bgp 19001
redistribute eigrp 19001 route-map serial-active
! configuration truncted
no auto-summary
!
route-map serial-active permit 10
match ip next-hop serial-active
!
ip access-list standard serial-active
permit X.X.X.129
Above Configuration is redistributing only those EIGRP 19001 routes, which has next-hop IP address 66.248.251.129, into BGP.
The same name 'serial-active' is used for both Route-map name & ACL name. please don't confuse with it.
I verified that EIGRP routes are being redistributed into BGP as required. Everything is working fine.
But I am confused with the below output, it showing 0 packet is matched for policy routing.
Router#show route-map serial-active
route-map serial-active, permit, sequence 10
Match clauses:
ip next-hop (access-lists): serial-active
Set clauses:
Policy routing matches: 0 packets, 0 bytes
Though sh ip access-lists command is showing 36269 matches for the ACL.
Router#sh ip access-lists serial-active
Standard IP access list serial-active
permit X.X.X.129 (36269 matches)
Can someone help me to understand this behavior, why route-map is showing 0 match & while ACL has 36269 matches?
Thanks in advance.
Regards,
Amolak
Solved! Go to Solution.
11-20-2007 04:18 AM
Amolak
There is a simple explanation for this: you are using the route map to control redistribution and are not using it for policy based routing. Therefore the count for policy routing does not increment.
HTH
Rick
11-20-2007 04:18 AM
Amolak
There is a simple explanation for this: you are using the route map to control redistribution and are not using it for policy based routing. Therefore the count for policy routing does not increment.
HTH
Rick
11-20-2007 04:28 AM
HI Rick,
Good Day ! !
Could you please explain in detail. I am confused with your reply.
How route-map and policy based routing work and differs.
Best Regards,
Guru Prasad R
11-20-2007 04:39 AM
Guru
You enable Policy Based Routing with the ip policy command on an interface. That is not the case in this question. In this question the route map is used to control redistribution. Control of redistribution is not Policy Based Routing.
It is sort of simimlar to the way that access lists are used. Just because an access list is configured does not mean that the access list is used to filter data packets. You use an access list to filter data packets by using the ip access-group command on an interface. But you can also use an access list to identify interesting traffic for DDR, or you can use an access list to control remote access to vty by the access-class command. Or you can use an access list to filter routing updates by using the distribute-list command. So you must look at how it is being used. In this case the route-map is used in redistribution and redistribution is not Policy Based Routing. Policy Based Routing will change the way that a packet is routed and that is not happening in this question.
HTH
Rick
11-20-2007 04:42 AM
Amolak
I am glad that my response was helpful. Thank you for using the rating system to indicate that your question was resolved (and thank you for the rating). It makes the forum more useful when people can read a question and can know that they will read a response that resolved the question.
I encourage you to continue your participation in the forum.
HTH
Riok
11-20-2007 09:03 PM
HI Rick,
Good Day ! !
Thanks for the Explanation.
Let me clarify with some CISCO documents for more on this Policy based Routing.
Have Rated your Answer.
Best Regards,
Guru Prasad R
11-20-2007 11:32 PM
Hi Guru,
You can refer following link to understand the Policy Based Routing concepts in details.
http://www.ciscopress.com/content/images/1587050722/samplechapter/1587050722content.pdf
Hope this helps you.
Regards,
Amolak
11-20-2007 04:40 AM
Hi Rick,
Aah.... got it... Thank you very much.
-Amolak
11-22-2007 11:26 PM
hai,
Thaks rick that a valuable ...one
Lijesh.N.C
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