ACL match
Cheat sheet · https://pcornel.dk/topic.php?topic=1144
Answer
In policy-based routing, the ACL decides which packets the policy applies to: a packet permitted by the ACL is policy-routed; a packet denied — or not matched — by the ACL is routed normally. Nothing is dropped by the ACL itself.
Remember
Here permit means "apply the policy" and deny means "route normally", not drop. Write the flow as source, destination, protocol, port and read the ACL from the top for it. Extended ACLs are needed for anything beyond source address.
First checks
show ip policy— interfaces with a policy and the route-map used.show route-map <name>— sequences, matches, set clauses and policy-routed packet counts.show access-lists <acl>— hits on the classifying ACL.show ip cef <next hop>— whether the set next hop is reachable.debug ip policy— per-packet decisions; restrict and use briefly.
Commands
match ip address <acl>- Match packets in a route map using an ACL (used for PBR).
ip policy route-mapip local policy route-map
Verify in this order
route-map applied on the ingress interface → ACL matches the flow → route-map sequence permits → next hop set and reachable → packet forwarded via the policy path; non-matching traffic routed normally
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
ACL semantics inside PBR
| ACL result for packet | match ip address result | PBR meaning |
|---|---|---|
| Permit ACE | Match | Sequence can continue to its PBR action |
| Deny ACE | No match | This ACL match clause is not satisfied |
| No explicit ACE | Implicit deny → no match | Packet is not classified by this ACL for that sequence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1144