📘CCNP Enterprise – ENARSI (300-410)
1. What is Policy-Based Routing (PBR)?
Normally, routers make routing decisions based on the routing table, which contains the best path for each destination network. This is called destination-based routing.
Policy-Based Routing is different:
- It allows you to override the normal routing decision.
- You can make routing decisions based on policies, not just destination IPs.
- Policies can include source IP, protocol, port number, or other criteria.
In short: PBR lets network administrators define “rules” so certain traffic takes a specific path, even if the routing table says otherwise.
2. Why use PBR in a network?
Here are common IT scenarios for using PBR:
- Direct specific traffic to a different path
- Example: All traffic from a certain server goes through a firewall before leaving the network.
- Load balancing across multiple WAN links
- You can send HTTP traffic over one ISP link and email traffic over another.
- Apply security or QoS policies
- Certain applications (like VoIP) can be routed through higher-bandwidth, low-latency links.
3. How PBR Works (Cisco Approach)
PBR is implemented using a route-map. A route-map is like a set of “if-then rules”:
- If traffic matches these conditions → then take this action
The basic PBR process:
- Match criteria (using access lists, prefix lists, or route-maps)
- Set next-hop (the router/interface to send the traffic to)
- Apply the route-map to an interface (typically inbound on the interface where traffic enters the router)
4. Key Components of PBR
- Access Control Lists (ACLs) – Define the traffic to match:
- Can match source IP, destination IP, protocol, or port.
- Route-Maps – Contain the policy logic:
- Match statement: defines which traffic to select
- Set statement: defines what to do with matching traffic (e.g., next hop, interface)
- Example:
route-map PBR permit 10 match ip address 101 set ip next-hop 10.1.1.2
- Next-Hop IP – The IP address of the next router where traffic should go.
- Important: This must be reachable via a directly connected network, otherwise PBR fails.
- Interface to apply PBR –
- PBR is applied inbound on the interface where traffic enters the router.
- Command:
interface GigabitEthernet0/1 ip policy route-map PBR
5. PBR Configuration Steps (Exam-Focused)
Here’s the step-by-step method Cisco expects you to know:
Step 1: Define the traffic using ACLs
- Example: Match traffic from the network 192.168.10.0/24
access-list 101 permit ip 192.168.10.0 0.0.0.255 any
Step 2: Create a route-map
- Link the ACL to a next-hop IP
route-map PBR permit 10
match ip address 101
set ip next-hop 10.1.1.2
Step 3: Apply the route-map to an interface
interface GigabitEthernet0/0
ip policy route-map PBR
6. Verifying PBR
Cisco exam may ask you to verify PBR behavior. Key commands:
- Check if PBR is applied to an interface
show running-config | section interface
- Check PBR counters (matching traffic, hits, etc.)
show route-map
show ip policy
- Debug PBR traffic
debug ip policy
Tip: Use ping or traceroute to test if traffic takes the correct path.
7. PBR Best Practices / Exam Tips
- PBR only works for IPv4 unicast traffic (unless using advanced features for IPv6).
- Always have a fallback route – unmatched traffic follows the routing table.
- Ensure next-hop is reachable – otherwise PBR will drop traffic.
- Use PBR carefully – too many policies may impact router performance.
8. Common Exam Scenarios
- Redirect HTTP traffic from a certain subnet to a specific firewall or proxy.
- Send traffic from a branch office over a backup WAN link instead of the primary.
- Force VoIP traffic to a low-latency WAN link for better call quality.
In exams, they might show a topology and ask:
- “Configure PBR so traffic from subnet X goes via next-hop Y.”
- “Verify that traffic takes the correct path.”
✅ Summary Table for Quick Exam Revision
| Feature | PBR Concept | Exam Tip |
|---|---|---|
| Purpose | Override routing table decisions | Must know when/how to apply |
| Components | ACL + Route-map + Next-hop + Interface | Match → Set → Apply |
| Applied On | Inbound interface | Often confusing for students |
| Verification | show route-map, show ip policy | Also debug with debug ip policy |
| Best Practice | Ensure next-hop reachable + fallback route | Prevent traffic blackhole |
