cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
560
Views
0
Helpful
2
Replies

Policy NAT or Static NAT with route map

config_raval
Level 1
Level 1

I have following scenario. I have inside server that is known via two public IP addresses. Let's say the one public IP - new is 1.1.1.1 and the old one is 2.2.2.2. The first IP should replace the second after a period of time.

I would like to translate requests for accessing this server based on their source IP address. So client with particular source address(3.3.3.3) and trying to access 2.2.2.2 should translate to 1.1.1.1 whereas remaining requests coming from other clients should left untouched.

In my topology, clients are connected through FR links to my 7600 router. And 7600 is connected to 6500 through its f0/0. Servers are behind the 6500. So in short

Clients > FR link < S1/0.23 7600 f0/0 > 6500 < server.

So big questions is how do I achieve solution for this scenario using NAT? Is policy NAT work in this scenario or static NAT with route map?

Can I use S1/0.23 as my outside interface and f0/0 as inside?

2 Replies 2

config_raval
Level 1
Level 1

Any takers of this issue. To simplyfy my scenario: I want

1> I want traffic coming from particular client having source address 3.3.3.3 and trying to access 1.1.1.1, destination should be rewrite to other inside destination 2.2.2.2

2> Traffic coming from any other source and trying to access 1.1.1.1 should left untouched

3> Traffic coming from any other source and trying to access 2.2.2.2 should left untouched.

Any link on this is also appreciated.

Hi sagar,

Can you test these commands?

!

ip nat pool 2222 2.2.2.2 2.2.2.2 netmask 255.255.255.255

ip nat outside source route-map OnlySource3333Nat pool 2222

!

!

ip access-list extended ip3333to1111

permit ip host 3.3.3.3 host 1.1.1.1

!

route-map OnlySource3333Nat permit 10

match ip address ip3333to1111

!

int S1/0.23

ip nat inside

!

int f0/0

ip nat outside

!

Please let us know how things work out!

Thot

Review Cisco Networking for a $25 gift card