Showing results for 
Search instead for 
Did you mean: 

Pinging a HTTP server in a private network from PC in the same network

Level 1
Level 1


We have the following situation.

We want to ping Server0 from PC0 using the address Router2 has a static NAT for Server0 giving it public ip DNS Server - Server1 holds a class A record, which for returns If we ping from PC1, everything works fine, but if we ping from PC0, we get in the DNS response the address, so now the try to ping, which won't work. Is there a way to configure Router2 so that either we translate address in DNS response or we are able to ping Server0 from PC0 using address

Project file is in the zip package.

4 Replies 4


 I dont follow you on this NAT

ip nat inside source static


 Why are you natting a local IP address to an IP address that does not exist any where?


All you need to do is change  your DNS entry and translate to



The problem is that when we add somewhere another network with address we can get another host with ip address That's why we have to use NAT.

As to why an I using address, it is because we can ping the server from the outside using that address. We reach Router2, where the destination address gets translated and the packet reaches our web server.

This may be over the top, but the main reason is that we cannot use address in DNS entry due to the possibility of having another network having another host with the address

I got it now.

  What you are trying to do is possible with real device (some of them) and they call it NAT Hair Pinning.  But, the way they implement it is not possible to simulate on the PacketTracer. 

 On the PacketTracer you could use another interface on the router but it would require to put the server in a different network from the PC0




 I end up managing  to create a topology with NAT and two overlaping network where you are going to have 2 servers with IP address However, Server0 is only recheable through the NAT ip address from the both sides of the topology and the other server is recheable using the original IP You can also create a NAT for the second server and then do not use from anywhere.

 I will share the file here so  you can test

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: