06-27-2003 04:58 AM - edited 03-02-2019 08:28 AM
hi
i didnt find in documentation this feature (like a Nat static but for 8 subnets)
customer want to NAT only the part of Network address leaving same host address in NAT Translation
like 101.10.10.11 NAT to 10.1.1.11 (leaving 11)
but for 8 class C subnet (so Static is no possible)
can somebody already deal with this type of configuration ?
thanks for any help
JYP
06-27-2003 05:32 AM
Create access-lists to specify the addresses of the servers you want to NAT. Create a corresponding route map, then create the NAT using the route-map option
e.g.
ip nat pool NAT1 10.1.1.11 10.1.1.11 netmask 255.255.255.0
ip nat inside source route-map NAT_1 pool NAT1 overload
access-list 105 permit ip host 192.1.34.2 any
access-list 105 permit ip host 193.1.1.21 any
access-list 105 permit ip host 192.168.3.2 any
route-map NAT_1 permit 10
match ip address 105
06-27-2003 05:43 AM
I think you are looking for this command:
ip nat inside source static network 10.1.0.0 20.1.0.0 /21
This will translate 10.1.0.0, 10.1.1.0 .... to 20.1.0.0 20.1.0.0 etc. keeping the last byte as is.
Hope this helps.
06-27-2003 06:51 AM
thanks all for your quick help
i'll try commands listed
JYP
06-27-2003 05:45 AM
thanks for this response but customer have more than 1500 servers wanted
to be NAT so ,it's really impossible to create this kind of ACL
any others ideas will be welcomed
JYP
06-27-2003 06:42 AM
I think the other response is what you need then, he got the understanding of what you want.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide