cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
907
Views
0
Helpful
3
Replies

NAT to a whole subnet.

huytuan
Level 1
Level 1

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????

3 Replies 3

koyotibus
Level 1
Level 1

You can do PAT (in fact, what you describe) but if you have servers, it will be difficult for external users to connect to your servers because external users just know one IP address and router doesn't know how to translate this connection to the good server.

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??

See this url, I think you will find what you want to do with host 2. Forget CMTS explanation.

http://www.cisco.com/warp/customer/556/nat-on-

stick.html#ex1

In fact, you just need to do a static entry for each of your servers as you can see it in the example.

If it's not ok, look at this url, I think you will find answers :-)

http://www.cisco.com/cgi-bin/Support/browse/psp_view.pl?p=Technologies:NAT