cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
433
Views
5
Helpful
3
Replies

Now that I have my 1841 Router fully online through double NATing, why are ping results different between command prompt and IOS?

The51stAgent
Level 1
Level 1

Hey guys. I got some help setting up my home lab and getting my 1841 fully online. Now, when I ping www.google.com, I get a perfect response when I do it from command prompt on my host plugged in to my router. But when I ping the exact same thing from within IOS, I get "Translating "www.google.com"...domain server (255.255.255.255) % Unrecognized host or address, or protocol not running." When I ping 8.8.8.8, I get perfect responses from Command Prompt and from IOS.

Why is this? I'm kind of confused. I have double NATing set up, but I'm not sure if it has to do with that or something DNS config-related. Is this normal? Thanks in advance!  Here is my running-config:

router#show running-config
Building configuration...
 
Current configuration : 1267 bytes
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
ip dhcp excluded-address 172.16.0.1
!
ip dhcp pool LAN
 network 172.16.0.0 255.255.0.0
 default-router 172.16.0.1
 dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO1841 sn FTX150804LK
!
redundancy
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 172.16.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
interface Serial0/0/0
 no ip address
 shutdown
!
interface Serial0/1/0
 no ip address
 shutdown
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
access-list 1 permit 172.16.0.0 0.0.255.255
!
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
 login
 transport input all
!
scheduler allocate 20000 1000
end
 
1 Accepted Solution

Accepted Solutions

Hello,

 

add the line:

 

ip name-server 8.8.8.8

 

to the configuration of your router. This is needed for DNS queries originating on the router...

View solution in original post

3 Replies 3

Hello,

 

add the line:

 

ip name-server 8.8.8.8

 

to the configuration of your router. This is needed for DNS queries originating on the router...

Thanks!

balaji.bandi
Hall of Fame
Hall of Fame

in order to ping google.com you need to setup dns name

 

ip domain lookup
ip name-server 8.8.8.8

 

make sure user get DHCP with DNS Entries

 

can you post user ipconfig /all

nslookup google.com output.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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