route map question

Unanswered Question
May 1st, 2008

Hi, my question is can I have multiple actions in policy based routing statement. For example, I would like for the PBR first to NAT a subnet then send it to next hop. Here is my config.

route-map WS permit 10

match ip address 10

set ip next-hop x.x.x.x

access-list 10 permit ip 172.21.19.0 0.0.0.255 -- this would take the subnet traffic and send it to x.x.x.x

then if I have NAT statement

ip nat inside source route-map WS interface s 0 overload

Would this work? Or do I have to create 2 seperate PBRs that do each would do one task. I just would like to keep the config short and not complicated that is the reason I am asking. Also does the secquence of the statements make a difference? I think that routing is performed first before NATing if I am not mistaken. Thanks for your help.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
shivlu jain Thu, 05/01/2008 - 23:17

as per sequence of statements first nat will be performed then routing takes place.

regards

shivlu

Actions

This Discussion