Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

PBR match problem

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

exit

ip local policy route-map test

exit

1 REPLY

Re: PBR match problem

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

Luxembourg

103
Views
0
Helpful
1
Replies
CreatePlease to create content