cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
341
Views
0
Helpful
5
Replies

NAT only Network part of Address ?

jjpeyrache
Level 1
Level 1

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

5 Replies 5

olorunloba
Level 5
Level 5

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

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.

thanks all for your quick help

i'll try commands listed

JYP

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

I think the other response is what you need then, he got the understanding of what you want.