CCNP ENCOR reference
Policy-Based Routing & NAT/PAT Quick Reference
Overriding destination-based routing, and translating addresses at the edge — tested in ENCOR objectives 3.11 and 3.13.
PBR: routing by more than destination
Normal routing decides purely by destination IP. PBR lets a route-map match on source, protocol, packet size, or other criteria and set a specific next-hop or exit interface — overriding what the routing table alone would choose, for a deliberate policy reason (cost, latency, compliance path).
A route-map used for PBR needs both a match clause (what traffic this applies to) and a set clause (what to do with it) — a match with no set has no effect, and a set with no match applies to everything a permit route-map implicitly matches.
PBR is applied inbound on an interface ('ip policy route-map <name>') — a fully correct route-map with no policy applied anywhere has zero effect on real traffic.
NAT vs. PAT (NAT overload)
NAT (static or dynamic) is a 1:1 mapping between an inside and an outside address — no port translation needed, but it doesn't conserve public address space.
PAT ('NAT overload') maps many inside addresses to one outside address, distinguished by port number — this is what lets an entire private network share one public IP, and is the overwhelmingly common real-world case at an internet edge.
Verification habits
'show route-map <name>' shows match/set clauses and hit counts per clause — a zero hit count on an expected match is the fastest way to catch a PBR policy that's configured but not actually triggering.
'show ip nat translations' shows active NAT/PAT mappings in real time — confirms translation is actually happening, not just configured.
NAT variants
| Type | Mapping | Typical use |
|---|---|---|
| Static NAT | 1 inside : 1 outside, fixed | A server that needs a consistent public address |
| Dynamic NAT | Pool of inside : pool of outside | Multiple hosts sharing a pool of public addresses |
| PAT (overload) | Many inside : 1 outside, by port | An entire private network sharing one public IP |