Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

NAT to a whole subnet

Sep 18, 2003, 7:26pm PST

With this command: ip nat inside source static network 192.168.100.0 255.255.255.0 203.145.145.145

Is it possible for me to NAT a whole subnet of 192.168.100.0 to the external static ip address of 203.145.145.145.

Eg, if I have a Web servers ip: 192.168.100. 3 & 192.168.100.4

SQL servers ip: 192.168.100.5 & 192.168.100.6

Lotus note servers ip: 192.168.100.7 & 192.168.100.8

Is it possible to use the same ip address 203.145.145.145 for all the servers????

2 REPLIES

Re: NAT to a whole subnet

You cannot use static mapping for this, because static is for one to one mapping. You will have to use dynamic NAT.

ip nat pool test 203.145.145.145 203.145.145.145 netmask 255.255.255.255

ip nat inside source list 1 pool test

access-list 1 permit 192.168.100.0 0.0.0.255

I would suggest using public ip to local ip static mappings, if you want these servers to be accessed from the internet, and not use dynamic nat.

New Member

Re: NAT to a whole subnet

Thanks, I tried this and it doesn't seem to work.

ip nat pool notes

ip nat pool notes 203.145.145.145 203.145.145.145 netmask 255.255.255.242

ip nat inside source list 20 pool notes

access-list 20 permit 192.168.100.8 0.0.0.1

access-list 20 permit 192.168.100.13 0.0.0.1

Why doesn't this work? How can it be fixed??

116
Views
0
Helpful
2
Replies
CreatePlease login to create content