cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
665
Views
0
Helpful
3
Replies

NAT and PBR

markmarek
Level 1
Level 1

I need some help with a Cisco config that would NAT a computer to one IP address if they leave one interface and NAT to a different one if that need to go out another interface

I want to nat a server based on what outbound interface the traffic leaves on with two IP addresses.

If traffic leaves on f0/0 then nat to 10.1.1.1 f0/1 then nat to 10.1.1.2.

3 Replies 3

manish arora
Level 6
Level 6

Do you have Pbr configured already ? what device are you working on ( asa , router , l3 ) ?

I don't have anything configured yet?

How would I do it for a router and how would I do it for an ASA?

I am going to guide you here to a cisco link for pbr configuration on asa :-

http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6586/ps6635/ps6659/prod_white_paper0900aecd8060b477.html

For multiple static nat for a server :-

since you will have two different interfaces to go out of you can following statement on the asa :-

static (inside,outside1) 10.1.1.1 a.b.c.d netmask 255.255.255.255

static (inside,outside2) 10.2.2.2 a.b.c.d netmask 255.255.255.255

I am not sure about the router configuration but the concept should be same, just change of commands.

hope it helps

Thanks

Manish

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: