Reset Search
 

 

Article

How to Use PBR to Redirect Internet Bound Traffic

« Go Back

Information

 
TitleHow to Use PBR to Redirect Internet Bound Traffic
Objective
Configure Policy Based Routing to direct specific internet-bound traffic to use a specific next hop while allowing other traffic to use routing table.
Environment
  • S-series
  • K-Series
  • N-Series 
  • 7100-Series
  • PBR
  • Multiple gateways
Procedure
1. Write extended ACL to deny internal traffic then permit the specific Internet bound traffic.
 
ip access-list extended PBRlist
  deny ip any 192.0.2.0 0.0.0.255
  permit ip any any
  exit


2.  Configure route-map Policy referencing the ACL and specifying the next hop:

route-map policy traffic permit 15
  match ip address PBRlist
  set next-hop 203.0.113.10
  exit


3. Add ip policy route-map to the ingress VLANs to which this must apply.

interface vlan.0.10
  ip address 192.0.2.14 255.255.255.0 primary
  ip policy route-map traffic in
  no shutdown
  exit
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255