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.
NetFlow policy routing leverages the following technologies:
-
Cisco Express Forwarding, which looks at a Forwarding Information Base (FIB) instead of a routing table when switching packets,
to address maintenance problems of a demand caching scheme.
-
Distributed Cisco Express Forwarding, which addresses the scalability and maintenance problems of a demand caching scheme.
-
NetFlow, which provides accounting, capacity planning, and traffic monitoring capabilities.
The following are the benefits of NPR:
-
NPR takes advantage of new switching services. Cisco Express Forwarding, distributed Cisco Express Forwarding, and NetFlow
can now use policy routing.
-
Policy routing can be deployed on a wide scale and on high-speed interfaces.
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