cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6340
Views
20
Helpful
3
Replies

PBR with NBAR

Can anyone tell me if this will work? The idea is to classify certain HTTP traffic then route it over a secondary WAN link limiting some of the bandwidth hog websites from our primary link.

class-map match-any http-secondary-traffic
  match protocol http host *youtube.com*
  match protocol http host *video.google*
  match protocol http host "*myspace*"
  match protocol http host "*facebook*"
  match protocol http host "*flickr*"
  match protocol http host "*video.msn*"
  match protocol http host "*fbcdn.net*"
  match protocol http host "*grooveshark*"
 
policy-map mark-secondary-traffic
  class http-secondary-traffic
  set ip dscp 1
 
ip access-list extended http-secondary-traffic
  permit ip any any dscp 1

route-map route-http-secondary 10
  match ip address http-secondary-traffic
  set interface FastEthernet1
 
interface Vlan1
  ip policy route-map route-http-secondary
  service-policy input mark-secondary-traffic

1 Accepted Solution

Accepted Solutions

Raphael Wouters
Cisco Employee
Cisco Employee

Hello,

This should work as you expect, although I didn't test it.

You need to be sure of the order of operations: marking needs to be done before PBR, but this should be the case in all IOS release.

You can check this in the recent CEF code (post 12.4(15)T image, not included) with "show cef interface ".

Here is an example with your config:

Router#sh cef int eth 1/0  

Ethernet1/0 is up (if_number 7)

[...]

  Input features: CCE Input Classification, QoS Marking, Policy Routing

  IP policy routing is enabled

[...]

You can see that QoS marking is before policy routing as said.

View solution in original post

3 Replies 3

Raphael Wouters
Cisco Employee
Cisco Employee

Hello,

This should work as you expect, although I didn't test it.

You need to be sure of the order of operations: marking needs to be done before PBR, but this should be the case in all IOS release.

You can check this in the recent CEF code (post 12.4(15)T image, not included) with "show cef interface ".

Here is an example with your config:

Router#sh cef int eth 1/0  

Ethernet1/0 is up (if_number 7)

[...]

  Input features: CCE Input Classification, QoS Marking, Policy Routing

  IP policy routing is enabled

[...]

You can see that QoS marking is before policy routing as said.

Here we are - 6 years later. I tested it and it works without any issue. Thanks!

Thanks for your testing.

4 years after your testing, I need to apply a similar solution in my company and it helped me a lot

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card