The PBR Recursive Next Hop feature enhances route maps to enable configuration of a recursive next-hop IP address that is used by policy-based routing (PBR). The recursive next-hop IP address is installed in the routing table and can be a subnet that is not directly connected. If the recursive next-hop IP address is not available, packets are routed using a default route.
Because Cisco Express Forwarding (CEF) or process switching provides the infrastructure, the benefit of this feature is the CEF loadsharing.
Feature History for the PBR Recursive Next Hop Feature
This feature was introduced.
This feature was integrated into Cisco IOS Release 12.3(14)T.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
The infrastructure provided by CEF or process switching performs the recursion to the next-hop IP address. The configuration sequence, which affects routing, is as follows:
If both a next-hop and a recursive next-hop IP address are present in the same route-map entry, the next-hop is used. If the next-hop is not available, the recursive next-hop is used. If the recursive next-hop is not available and no other IP address is present, the packet is routed using the default routing table; it is not dropped. If the packet is supposed to be dropped, use the setipnext-hopcommand with the recursive keyword followed by a setinterfacenull0 configuration.
Perform this task to set the IP address for the recursive next-hop router.
Before You Begin
If loadsharing is required, CEF loadsharing should be configured for per-packet or per-destination loadsharing. Loadbalancing should be done over all equal-cost routes to the subnet that have been configured by the setipnext-hoprecursivecommand.
This functionality should be available in centralized and distributed systems.
Only one recursive next-hop IP address is supported per route-map entry.
Router(config-route-map)# set ip next-hop recursive 10.20.3.3
Sets a recursive next-hop IP address.
This configuration does not ensure that packets get routed using the recursive IP address if an intermediate IP address is a shorter route to the destination.
Router(config-route-map)# match ip address 101
Sets an access list to be matched.
Exits route-map configuration mode and returns to privileged EXEC mode.
Verifying the Recursive Next-Hop Configuration
To verify the recursive next-hop configuration, perform the following steps.
1.showrunning-config | beginabccomp
showrunning-config | beginabccomp
Use this command to verify the IP addresses for a next-hop and recursive next-hop IP address, for example:
Router# show running-config | begin abccomproute-map abccomp permit 10 match ip address 101 ! Defines the match criteria for an access list. set ip next-hop recursive 10.3.3.3 ! If the match criteria are met, the recursive IP address is set. set ip next-hop 10.1.1.1 10.2.2.2 10.4.4.4
Use this command to display the route maps, for example:
Router# show route-map abccomproute-map abccomp, permit, sequence 10 Match clauses: ip address (access-lists): 101 Set clauses: ip next-hop recursive 10.3.3.3 ip next-hop 10.1.1.1 10.2.2.2 10.4.4.4 Policy routing matches: 0 packets, 0 bytes
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.
To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.