Troubleshoot PBR
This task helps you debug PBR configuration when packets get dropped by verifying routes, monitoring metrics, and validating interface selection.
When PBR is not working as intended, you need to systematically verify the configuration components including route maps, path monitoring, and interface selection to identify the root cause of packet drops.
Before you begin
Follow these steps to troubleshoot PBR configuration when packets get dropped:
Procedure
Step 1 | Check that all essential routes for recursive resolution are present by using the show route or show ipv6 route commands in the appropriate tables. Unless the route map for the interfaces participating in PBR is updated with correct routes, PBR will not work as intended. | ||
Step 2 | Display the remote address that path-monitoring uses to monitor metrics by using the show running-config interface command. Example:
This command shows the monitored address and cost metric values for path monitoring by sending ICMP packets or HTTP pings. | ||
Step 3 | Examine the show path-monitoring and show run route-map outputs for packet loss. Example:
Example:
The metric types (lost, rtt, jitter, cost) should select the interface with the minimum metric value for routing. The metric type "mos" should select the interface with the maximum metric value for routing. | ||
Step 4 | Use packet-tracer command to validate the interface selection based on the metric type defined in the PBR. Example:
| ||
Step 5 | Use the packet-tracer command similar to the debug policy-route command. When PBR successfully selects the route, the packet tracer output looks like this:
When PBR is not able to find the adequate route, it falls back to normal route lookup, and the packet tracer output looks like this:
When a monitored remote address goes down, and path monitoring marks Remote peer reachable as No for that address, the PBR displays the a log that excludes the interface from adaptive-interface list.
|