5
Most read
8
Most read
9
Most read
Policy-Based Routing (PBR)
Content
- Before We Start
- PBR Overview
- How PBR Works
- Route-Map Operation
- PBR Configuration Procedure
- PBR Configuration - Lab
Before We Start
- Destination Based Routing
- Routing from Net A/B to
Net C/D via (R1 -> R5 -> R4)
PBR Overview
- Say goodbye to Destination Based Routing
- Flexible routing packet decision based on traffic
flows
- Overrides routing protocol next-hob decision
PBR Overview
- Routing from Net A to
Net C via (R1 -> R5 -> R4)
- Routing from Net B to
Net D via (R1 -> R2 -> R3 -> R4)
How PBR Works
- All packets received on an interface are
considered for policy
routing
- Each packet is passed through a route-map
- Each entry in a route-map has “match” and “set”
clauses
- Match clauses are conditions to be met
- Route-map is used for condition work
How PBR Works
If match src NetA
set next-hob -> R5
If match src NetB
set next-hob -> R2
Route-Map Operation
route-map DEMO permit 10
match X Y Z
match A
set B
set C
route-map DEMO permit 20
match Q
set R
route-map DEMO permit 30
If {(X OR Y OR Z)
AND A match}
Then {Set B AND C}
(and exit route-map)
Else
If Q matches
Then set R (and exit route-map)
Else
Set nothing (and exit route-map)
OR
OR
Route-Map Operation
- Match criteria on the same line mean a logical
OR condition
- Multiple match and set criteria on separate lines
indicates an AND condition
- A route-map statement without any match
statements will be considered matched.
- Like an access list, an implicit deny any appears
at the end of a route map.
PBR Configuration Procedure
- Define and name the route map with the route-map
command.
- Define the conditions to match (the match
statements).
- Define access-list for packet identifying
- Define the action to be taken when there is a
match (the set statements).
- Define which interface the route map will be
attached to using the ip policy route-map interface
configuration command.
PBR Configuration - Lab
PBR Configuration – Lab
Configuration on R1
- Create access-list
ip access-list extended Net7-Net4
permit ip 7.7.7.0 0.0.0.255 4.4.4.0 0.0.0.255
!
PBR Configuration – Lab
Configuration on R1
- Configure route-map
route-map DEMO permit 10
match ip address Net7-Net4
set ip next-hop 192.168.12.2
!
route-map DEMO permit 20
!
PBR Configuration – Lab
Configuration on R1
- Apply route-map into interface
interface FastEthernet6/0
ip policy route-map DEMO
!
PBR Configuration – Lab
Traceroute output from Network 7.7.7.7
- Before Apply into interface
traceroute 4.4.4.4 source 7.7.7.7
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 192.168.16.1 20 msec 12 msec 12 msec (R1)
2 192.168.15.5 12 msec 36 msec 28 msec (R5)
PBR Configuration – Lab
Traceroute output from Network 7.7.7.7
- After Apply into interface
traceroute 4.4.4.4 source 7.7.7.7
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 192.168.16.1 12 msec 20 msec 20 msec (R1)
2 192.168.12.2 30 msec * 34 msec (R2)
3 192.168.23.3 32 msec * 36 msec (R3)
4 192.168.34.4 68 msec 56 msec 52 msec (R4)
5 192.168.45.5 56 msec 68 msec 60 msec
Thanks

More Related Content

PDF
Ether channel fundamentals
PPTX
BGP (Border Gateway Protocol)
PPT
RIP Routing Information Protocol Extreme Networks
PDF
Les commandes CISCO (routeur)
PDF
Protocole OSPF
PDF
ccna cheat_sheet
PDF
IOS Cisco - Cheat sheets
PDF
CCNA Lab Guide
Ether channel fundamentals
BGP (Border Gateway Protocol)
RIP Routing Information Protocol Extreme Networks
Les commandes CISCO (routeur)
Protocole OSPF
ccna cheat_sheet
IOS Cisco - Cheat sheets
CCNA Lab Guide

What's hot (20)

PPTX
IS-IS Protocol Adjacency
PDF
Ccna Commands In 10 Minutes
PPTX
VLAN Trunking Protocol (VTP)
PPT
Routing and OSPF
PPTX
Open Shortest Path First
PDF
Waris l2vpn-tutorial
PDF
Cisco IPv6 Tutorial
PDF
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
DOCX
How to configure vlan, stp, dtp step by step guide
PPT
MPLS RSVP-TE Auto-Bandwidth - Practical Lessons Learned
PDF
Routage statique
PDF
PPTX
Policy Based Routing
PDF
VRRP (virtual router redundancy protocol)
PPT
Tn 310 vlan-trunking
PPTX
IS-IS Packet Types
PPTX
Hot standby router protocol (hsrp) using
PDF
CCNA CheatSheet
PDF
Présentation etherchannel
PDF
Introduction to OpenFlow
IS-IS Protocol Adjacency
Ccna Commands In 10 Minutes
VLAN Trunking Protocol (VTP)
Routing and OSPF
Open Shortest Path First
Waris l2vpn-tutorial
Cisco IPv6 Tutorial
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
How to configure vlan, stp, dtp step by step guide
MPLS RSVP-TE Auto-Bandwidth - Practical Lessons Learned
Routage statique
Policy Based Routing
VRRP (virtual router redundancy protocol)
Tn 310 vlan-trunking
IS-IS Packet Types
Hot standby router protocol (hsrp) using
CCNA CheatSheet
Présentation etherchannel
Introduction to OpenFlow
Ad

Viewers also liked (20)

PDF
Routing Implementation - Cisco vs. Mikrotik
PDF
SIP (Session Initiation Protocol)
PDF
Virtual Extensible LAN (VXLAN)
PDF
Physically Based Rendering by Gege
PDF
How to Prevent DHCP Spoofing
PPTX
Understanding REST APIs in 5 Simple Steps
PDF
Introduction to Python
PDF
Terminal Access Controller
PDF
Bandwidth Management on Linux
PDF
Bidirectional Forwarding Detection (BFD)
PDF
Network Mapper (NMAP)
PDF
9th SDN Expert Group Seminar - Session3
PDF
IT Service Level Agreement
PDF
1st SDN Interest Group Seminar - Session2 (121017)
PDF
Core Concept of TCP/IP
PDF
Cambodia International Backbone Network
PPTX
VPN on Mikrotik
PDF
Mikrotik Hotspot With Queue Tree BW Management
PDF
Network Security-Honeypot
Routing Implementation - Cisco vs. Mikrotik
SIP (Session Initiation Protocol)
Virtual Extensible LAN (VXLAN)
Physically Based Rendering by Gege
How to Prevent DHCP Spoofing
Understanding REST APIs in 5 Simple Steps
Introduction to Python
Terminal Access Controller
Bandwidth Management on Linux
Bidirectional Forwarding Detection (BFD)
Network Mapper (NMAP)
9th SDN Expert Group Seminar - Session3
IT Service Level Agreement
1st SDN Interest Group Seminar - Session2 (121017)
Core Concept of TCP/IP
Cambodia International Backbone Network
VPN on Mikrotik
Mikrotik Hotspot With Queue Tree BW Management
Network Security-Honeypot
Ad

Similar to Policy Based Routing (PBR) (20)

DOC
How to configure pbr (policy based routing)
PDF
Pbroute
PDF
How to train your L3DSR with PBR - MEMO -
DOCX
Router Commands Overview
PPT
Routing Protocols and Concepts – Chapter 2
PPTX
CCNA_CISCO_Module_14_Routing_Concepts.pptx
PPT
Implementing a scalable ospf based solution
PDF
BGP Security Best Practices that Matter, presented at PHNOG 2025
PPT
BGP Policy Control Guidelines to fol.ppt
PPTX
CCNA_RSE_Chp3 - Dynamic Routing of Network
DOCX
Ccnacommand 140205001152-phpapp01
PDF
CCNA R&S-20-Configuring IPv4 Addresses and Routes
PPTX
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
PPTX
Ospf hassan jamal.ppt
PDF
Route static Configuration
PDF
3 ip routing vrf lite - v2
PDF
6.policy based routing
PPTX
SRWE_Module_14.pptx
PPTX
SRWE_Module_14.pptx
How to configure pbr (policy based routing)
Pbroute
How to train your L3DSR with PBR - MEMO -
Router Commands Overview
Routing Protocols and Concepts – Chapter 2
CCNA_CISCO_Module_14_Routing_Concepts.pptx
Implementing a scalable ospf based solution
BGP Security Best Practices that Matter, presented at PHNOG 2025
BGP Policy Control Guidelines to fol.ppt
CCNA_RSE_Chp3 - Dynamic Routing of Network
Ccnacommand 140205001152-phpapp01
CCNA R&S-20-Configuring IPv4 Addresses and Routes
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
Ospf hassan jamal.ppt
Route static Configuration
3 ip routing vrf lite - v2
6.policy based routing
SRWE_Module_14.pptx
SRWE_Module_14.pptx

More from KHNOG (17)

PDF
Network Attack Counter
PDF
Wireless Network Pentestration
PDF
Bonding Interface in MikroTik
PDF
Network Exploitation
PDF
Why / How to become the Linux certified
PDF
Introduction to BRAS
PDF
ElasticISP
PDF
Hotspot on Mikrotik Router
PDF
Rapid Ring Protection Protocol (RRPP)
PDF
Transmission Technologies
PDF
Interior Routing Protocols
PDF
Mikrotik Hotspot User Manager
PDF
Testing Fiber-Optic Systems
PDF
RPM Junos-service
PDF
Incoming Outgoing Spam Filter
PDF
MPLS
PDF
Software Define Network (SDN) and Openflow
Network Attack Counter
Wireless Network Pentestration
Bonding Interface in MikroTik
Network Exploitation
Why / How to become the Linux certified
Introduction to BRAS
ElasticISP
Hotspot on Mikrotik Router
Rapid Ring Protection Protocol (RRPP)
Transmission Technologies
Interior Routing Protocols
Mikrotik Hotspot User Manager
Testing Fiber-Optic Systems
RPM Junos-service
Incoming Outgoing Spam Filter
MPLS
Software Define Network (SDN) and Openflow

Recently uploaded (20)

PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
DOCX
search engine optimization ppt fir known well about this
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
STKI Israel Market Study 2025 version august
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Five Habits of High-Impact Board Members
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
giants, standing on the shoulders of - by Daniel Stenberg
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
search engine optimization ppt fir known well about this
Module 1 Introduction to Web Programming .pptx
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Flame analysis and combustion estimation using large language and vision assi...
OpenACC and Open Hackathons Monthly Highlights July 2025
Custom Battery Pack Design Considerations for Performance and Safety
TEXTILE technology diploma scope and career opportunities
NewMind AI Weekly Chronicles – August ’25 Week III
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
4 layer Arch & Reference Arch of IoT.pdf
sbt 2.0: go big (Scala Days 2025 edition)
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
STKI Israel Market Study 2025 version august
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Five Habits of High-Impact Board Members
The influence of sentiment analysis in enhancing early warning system model f...
Early detection and classification of bone marrow changes in lumbar vertebrae...

Policy Based Routing (PBR)

  • 2. Content - Before We Start - PBR Overview - How PBR Works - Route-Map Operation - PBR Configuration Procedure - PBR Configuration - Lab
  • 3. Before We Start - Destination Based Routing - Routing from Net A/B to Net C/D via (R1 -> R5 -> R4)
  • 4. PBR Overview - Say goodbye to Destination Based Routing - Flexible routing packet decision based on traffic flows - Overrides routing protocol next-hob decision
  • 5. PBR Overview - Routing from Net A to Net C via (R1 -> R5 -> R4) - Routing from Net B to Net D via (R1 -> R2 -> R3 -> R4)
  • 6. How PBR Works - All packets received on an interface are considered for policy routing - Each packet is passed through a route-map - Each entry in a route-map has “match” and “set” clauses - Match clauses are conditions to be met - Route-map is used for condition work
  • 7. How PBR Works If match src NetA set next-hob -> R5 If match src NetB set next-hob -> R2
  • 8. Route-Map Operation route-map DEMO permit 10 match X Y Z match A set B set C route-map DEMO permit 20 match Q set R route-map DEMO permit 30 If {(X OR Y OR Z) AND A match} Then {Set B AND C} (and exit route-map) Else If Q matches Then set R (and exit route-map) Else Set nothing (and exit route-map) OR OR
  • 9. Route-Map Operation - Match criteria on the same line mean a logical OR condition - Multiple match and set criteria on separate lines indicates an AND condition - A route-map statement without any match statements will be considered matched. - Like an access list, an implicit deny any appears at the end of a route map.
  • 10. PBR Configuration Procedure - Define and name the route map with the route-map command. - Define the conditions to match (the match statements). - Define access-list for packet identifying - Define the action to be taken when there is a match (the set statements). - Define which interface the route map will be attached to using the ip policy route-map interface configuration command.
  • 12. PBR Configuration – Lab Configuration on R1 - Create access-list ip access-list extended Net7-Net4 permit ip 7.7.7.0 0.0.0.255 4.4.4.0 0.0.0.255 !
  • 13. PBR Configuration – Lab Configuration on R1 - Configure route-map route-map DEMO permit 10 match ip address Net7-Net4 set ip next-hop 192.168.12.2 ! route-map DEMO permit 20 !
  • 14. PBR Configuration – Lab Configuration on R1 - Apply route-map into interface interface FastEthernet6/0 ip policy route-map DEMO !
  • 15. PBR Configuration – Lab Traceroute output from Network 7.7.7.7 - Before Apply into interface traceroute 4.4.4.4 source 7.7.7.7 Type escape sequence to abort. Tracing the route to 4.4.4.4 1 192.168.16.1 20 msec 12 msec 12 msec (R1) 2 192.168.15.5 12 msec 36 msec 28 msec (R5)
  • 16. PBR Configuration – Lab Traceroute output from Network 7.7.7.7 - After Apply into interface traceroute 4.4.4.4 source 7.7.7.7 Type escape sequence to abort. Tracing the route to 4.4.4.4 1 192.168.16.1 12 msec 20 msec 20 msec (R1) 2 192.168.12.2 30 msec * 34 msec (R2) 3 192.168.23.3 32 msec * 36 msec (R3) 4 192.168.34.4 68 msec 56 msec 52 msec (R4) 5 192.168.45.5 56 msec 68 msec 60 msec