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

Static NAT requirment

shahid_duet
Level 1
Level 1

Dear boss

I have a IP 192.168.0.1 and  i NAT it to 172.25.40.1

like  ip nat inside source static 192.168.0.1 172.25.40.1 as outsider can get 172.25.40.1.

Now i want to NAT 192.168.0.1 to 172.30.40.1  as both 172.30.40.1 and 172.25.40.1 get 192.168.0.1.

How can i do it  ?

Thanking You

shahid

1 Accepted Solution

Accepted Solutions

Vivek Ganapathi
Level 4
Level 4

Yes you can. But depends on what version of IOS you are running. NAT with route-maps was introduced in 12.4(T) i believe.

access-list 101 permit ip host 192.168.0.1 host x.x.x.x

access-list 102 permit ip host 192.168.0.1 host y.y.y.y

route-map NAT_25 permit 10

match ip address 101

route-map NAT_30 permit 10

match ip address 102

ip nat inside source static 192.168.0.1 172.25.40.1 route-map NAT_25

ip nat inside source static 192.168.0.1 172.30.40.1 route-map NAT_30

Test this out & let me know. Replace the x.x.x.x with the destination X & replace y.y.y.y with destination y

Hope you got it.

Vivek.

View solution in original post

2 Replies 2

Vivek Ganapathi
Level 4
Level 4

Yes you can. But depends on what version of IOS you are running. NAT with route-maps was introduced in 12.4(T) i believe.

access-list 101 permit ip host 192.168.0.1 host x.x.x.x

access-list 102 permit ip host 192.168.0.1 host y.y.y.y

route-map NAT_25 permit 10

match ip address 101

route-map NAT_30 permit 10

match ip address 102

ip nat inside source static 192.168.0.1 172.25.40.1 route-map NAT_25

ip nat inside source static 192.168.0.1 172.30.40.1 route-map NAT_30

Test this out & let me know. Replace the x.x.x.x with the destination X & replace y.y.y.y with destination y

Hope you got it.

Vivek.

Thanks a lot Mr. Vivek

It is taking the command. I will wait for ur response when i face difficulties in real implementation.

Thanks.

Review Cisco Networking products for a $25 gift card