05-06-2011 12:49 PM - edited 03-06-2019 04:56 PM
I had someone ask me this question and i didn't know the answer to it and i wanted to know if someone can give me the correct answer.
The questions are below and thanks for all your help in advance.
1.What command is used to apply PBR to a single interface
2.What command is used to apply PBR to the entire router instead of a single interface
Solved! Go to Solution.
05-07-2011 03:04 AM
Hi Guys,
You need to apply it for inbound traffic coming in the particular interface.
For example:
!
ip access-list extended Redirect-Traffic
permit ip a.b.c.d x.x.x.x any
!
route-map Redirect-Traffic permit 10
match ip address Redirect-Traffic
set ip next-hop e.f.g.h
!
interface f0/0
ip policy route-map Redirect-Traffic
!
There is no a global command for traffic comming from all interfaces.
HTH,
Toshi
05-07-2011 03:04 AM
Hi Guys,
You need to apply it for inbound traffic coming in the particular interface.
For example:
!
ip access-list extended Redirect-Traffic
permit ip a.b.c.d x.x.x.x any
!
route-map Redirect-Traffic permit 10
match ip address Redirect-Traffic
set ip next-hop e.f.g.h
!
interface f0/0
ip policy route-map Redirect-Traffic
!
There is no a global command for traffic comming from all interfaces.
HTH,
Toshi
05-09-2011 02:05 AM
Hi
Toshi has give an excellent answer on policy-based routing for traffic flowing through the router.
For traffic generated by the router You have to use "ip local policy route-map" command.
/Mikael
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide