PBR match problem

Unanswered Question
Sep 20th, 2007

I am trying to policy route some traffic, namely if the traffic is for this address x.x.x.x and its metric in the routing table is bigger that "Y" use this next hop. The route-map match works on the address alone but the match metric statement matches all packets and the two statements are working as logical OR. What's wrong?

IOS 12.3(8)T8 on 2851 same result on 3660 ver 12.2(8)access-list 103 permit ip any x.x.x.x

route-map test permit 10

match ip address 103

match metric 5000 +- 2000

set ip next-hop a.b.c.d


ip local policy route-map test


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Kevin Dorrell Thu, 09/20/2007 - 02:05

By the look of it, I think what you are trying to do is to select those packets that are destined for x.x.x.x, but whose routes in the routing table have metric 3000-7000, and send them to a.b.c.d.

I don't think you can do that. PBR takes place before any reference is made to the IP forwarding table. I think the match metric clause is only useful for filtering routes. After all, the packet itself does not have a metric.

Kevin Dorrell



This Discussion