cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
272
Views
5
Helpful
1
Replies

route map question

bsudol79p
Level 1
Level 1

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.

1 Reply 1

shivlu jain
Level 5
Level 5

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

regards

shivlu

Review Cisco Networking products for a $25 gift card