cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
315
Views
4
Helpful
5
Replies

Natting

navneet_78
Level 1
Level 1

I have a Client server with a 142.x.x.x IP which is natted onto the Router Fastethernet interface to 172.x.x.x IP.

If I do a ping to the 172.x.x.x IP to check the connectivity between the Router and the destination server, will that show me the correct picture or should i need to ping the actual 142.x.x.x IP.

5 Replies 5

pkhatri
Level 11
Level 11

If you are pinging from the 'outside' network, you need to ping the global address ....

Hope that helps - pls rate posts that help.

Regards,

Paresh

thanx for the response.

But since that being a Virtaul IP on the router, it wud respond anyway..right??

ONly those packets which are hitting the router's interface from the outside are to be NATTED onto the server's IP. and since the ICMP packet is originating from the router itself..it wudn;t know that it has to NAT that.

Hi Navneet,

Would you be able to post a config of your setup..I'm not sure I totally understand what you are trying to achieve ...

Thanks,

Paresh

Iam pasting you part of the config. Please have a look.

interface FastEthernet0/0

description e0/0: Local LAN Segment

ip address 142.192.152.47 255.255.255.0

no ip redirects

ip accounting output-packets

ip nat inside

ip route 172.19.248.119 255.255.255.255 FastEthernet0/0

ip nat inside source static 142.192.152.246 172.19.248.119

142.192.152.246 is the server IP Natted onto 172.19.248.119 on the Router.

Cxxxxxxxxx>ping 172.19.248.119

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.19.248.119, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

CNFrtMUShorsh03>

Will the ping test done above confirm the connectivty of the Router to the server or do i need to ping the actual server IP 142.192.152.246 .

Thanks for the config...

You need to ping the actual server IP in this case, since you are pinging from the router.

Additionally, to check that NAT is working, try and ping from a location in front of the router by pinging the 172.19.248.119 address.

Hope that helps - pls rate posts that help.

Regards,

Paresh

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:

Review Cisco Networking products for a $25 gift card