cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
178
Views
0
Helpful
1
Replies

NAT query

pokwan
Level 1
Level 1

Hi,

If I have the following scenario, will the configuration below work?

TIA

PF

The IP on vlan 2 access a server on vlan 3, the source IP from Vlan 2 must be translated to a pool (pool1) of IP addresses. Similary if the IP on vlan 2 access a server on vlan 4, the source IP from vlan 2 must be translated to vlan4 interface IP address. Is the below configuration correct?

access-list 160 permit ip 192.168.10.0 0.0.0.255 host 172.16.10.10

access-list 165 permit ip 192.168.10.0 0.0.0.255 host 10.20.20.20

route-map loc3 permit 10

match ip address 160

route-map loc4 permit 10

match ip address 165

ip nat pool pool1 10.10.200.20 10.10.200.254 netmask 255.255.255.0

ip nat inside source static 192.168.10.10 10.10.200.10

ip nat inside source route-map loc3 pool pool1

ip nat inside source route-map loc4 interface Vlan4 overload

int vlan 2

ip address 192.168.10.1 255.255.255.0

ip nat inside

int vlan 3

ip address 172.16.10.1 255.255.255.0

ip nat outside

int vlan 4

ip address 10.10.10.10 255.255.255.0

ip nat outside

1 Reply 1

nkhawaja
Cisco Employee
Cisco Employee

this config seems to be correct.

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: