cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
220
Views
0
Helpful
1
Replies

PBR match problem

tomredmond
Level 1
Level 1

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 1

Kevin Dorrell
Level 10
Level 10

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

Review Cisco Networking products for a $25 gift card