cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
720
Views
4
Helpful
2
Replies

PBR Question

scooter817
Level 2
Level 2

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

1 Accepted Solution

Accepted Solutions

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

!

Ref: http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfpbr_ps1835_TSD_Products_Configuration_Guide_Chapter.html

     There is no a global command for traffic comming from all interfaces.

HTH,

Toshi

View solution in original post

2 Replies 2

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

!

Ref: http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfpbr_ps1835_TSD_Products_Configuration_Guide_Chapter.html

     There is no a global command for traffic comming from all interfaces.

HTH,

Toshi

mlund
Level 7
Level 7

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.

http://www.cisco.com/en/US/customer/docs/ios/12_3t/ip_route/command/reference/ip2_i1gt.html#wp1107972

/Mikael