![]() |
IP Routing: Protocol-Independent Configuration Guide, Cisco IOS Release 15M&T
|
|||||||||||||||||||||
NetFlow Policy Routing
![]() |
||||||||||||||||||||||
|
Contents NetFlow Policy RoutingLast Updated: May 29, 2012
NetFlow policy routing (NPR) integrates policy routing, which enables traffic engineering and traffic classification, with NetFlow services, which provide billing, capacity planning, and information monitoring on real-time traffic flows. IP policy routing works with Cisco Express Forwarding (formerly known as CEF), distributed Cisco Express Forwarding (formerly known as dCEF), and NetFlow. Finding Feature InformationYour software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and 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 module. 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. Restrictions for NetFlow Policy Routing
Information About NetFlow Policy RoutingNetFlow Policy RoutingNetFlow policy routing (NPR) integrates policy routing, which enables traffic engineering and traffic classification, with NetFlow services, which provide billing, capacity planning, and information monitoring on real-time traffic flows. IP policy routing works with Cisco Express Forwarding (formerly known as CEF), distributed Cisco Express Forwarding (formerly known as dCEF), and NetFlow. NetFlow policy routing leverages the following technologies:
The following are the benefits of NPR:
NPR is the default policy routing mode. No additional configuration tasks are required to enable policy routing with Cisco Express Forwarding, distributed Cisco Express Forwarding, or NetFlow. As soon as one of these features is turned on, packets are automatically subjected to policy routing in the appropriate switching path. The following example shows how to configure policy routing with Cisco Express Forwarding. The route is configured to verify that the next hop 10.0.0.8 of the route map named test is a Cisco Discovery Protocol neighbor before the device tries to policy-route to it. Device(config)# ip cef Device(config)# interface GigabitEthernet 0/0/1 Device(config-if)# ip route-cache flow Device(config-if)# ip policy route-map test Device(config-if)# exit Device(config)# route-map test permit 10 Device(config-route-map)# match ip address 1 Device(config-route-map)# set ip precedence priority Device(config-route-map)# set ip next-hop 10.0.0.8 Device(config-route-map)# set ip next-hop verify-availability Device(config-route-map)# exit Device(config)# route-map test permit 20 Device(config-route-map)# match ip address 101 Device(config-route-map)# set interface Ethernet 0/0/3 Device(config-route-map)# set ip tos max-throughput Device(config-route-map)# exit Next-Hop ReachabilityYou can use the set ip next-hop verify-availability command to configure policy routing to verify the reachability of the next hop of a route map before the device performs policy routing to that next hop. This command has the following restrictions:
If a device is policy routing packets to the next hop and the next hop happens to be down, the device tries unsuccessfully to use the Address Resolution Protocol (ARP). This behavior can continue indefinitely. You can prevent this behavior by configuring the set ip next-hop verify availability command on the device. This command first verifies (using a route map) whether the next hop is a Cisco Discovery Protocol neighbor of the device before routing packets to that next hop. However, if you configure this command on a device whose next hop is not a Cisco Discovery Protocol neighbor, the device looks at the subsequent next hop, if there is one. If there is no available next hop, packets are not policy-routed. This configuration is optional because some media or encapsulations do not support Cisco Discovery Protocol. If the set ip next-hop verify availability command is not configured, packets are either policy-routed or remain forever unrouted. If you want to verify the availability of only some next hops, you can configure different route-map entries (under the same route-map name) with different criteria (using access-list matching or packet-size matching), and use the set ip next-hop verify availability configuration command selectively. Additional ReferencesRelated Documents
Technical Assistance
Feature Information for NetFlow Policy RoutingThe following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. 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.
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. © 1998-2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||
|
|