Able to connect to default Gateway, Unable to connect to internet
We are having a setup of windows workgroup and trying to install our first linux box on VMWare in the network :D. I have installed OpenSuse 11.1 and have setup the connection also. My problem is that I am able to connect to ping to other machines in the network and also other machines are able to ping me back but I am unable to ping DNS servers.
Here are some of the network settings I am using..
1. Internet is shared using windows internet connection sharing.
2. Direct internet connection is on a windows machine having 2 lan cards, one is set to the static IP address and other one is having ip as 10.202.251.45.
3. VMWare networking is set to Bridged networking.
4. On my OpenSUSE box IP address is : 10.202.251.120, have set default gateway as 10.202.251.45, and DNS server ips as set in other windows machines DNS1 : 22.214.171.124 and DNS2 : 126.96.36.199
5. Here are the other details which I feel are neccessary for resolving the problem (as understood by reading other similar posts)
---OUTPUT FROM ifConfig----------
eth0 Link encap:Ethernet HWaddr 00:0C:29:8E:17:2D
inet addr:10.202.251.120 Bcast:10.202.251.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1337 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:408840 (399.2 Kb) TX bytes:3743 (3.6 Kb)
Interrupt:19 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:200 (200.0 b) TX bytes:200 (200.0 b)
### /etc/resolv.conf file autogenerated by netconfig!
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# or disable DNS configuration updates via netconfig by setting:
# See also the netconfig(8) manual page and other documentation.
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
### Please remove (at least) this line when you modify the file!
NAME='79c970 [PCnet32 LANCE]'
6. I am running GNome GUI and have disabled the firewall also (till this problem is resolved).
7. Have changed the /etc/sysconfig/network/ifcfg-etho parameter NETWORK after reading another post on forum, but no luck :(.
Please help me out here.
You say you've tried pinging local systems - can other systems ssh into the Suse box? Also, is it using the same DNS server as other systems (and can they ping the DNS boxes)?
Might be worth posting the output from the 'ip r' command.
What happens of you try to resolve a DNS name using the host command? You can also tell host to use specific DNS servers as well, ie:
host www.amazon.com 188.8.131.52
Maybe you could try using a different DNS server
Thanks for your reply. Here are the details for the 'ip r' command
10.202.251.0/24 dev eth0 proto kernel scope link src 10.202.251.120
169.254.0.0/16 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 10.202.251.45 dev eth0
Also when i tried the host command, I got the following...
> host www.google.com 184.108.40.206
;; connection timed out; no servers could be reached
I tried ssh and sftp also and these are working fine from my local windows machines to OpenSUSE box. Other system in windows network are having the same DNS and Default Gateway configurations. The DNS servers are working fine for windows boxes.
How about trying an IP address rather than a domain name on the Suse system? That way you can know whether the issue is network or DNS related.
Try this (it's google.com)
I tried curl as you asked and here is the output...
-----output of curl-----
curl: (7) couldn't connect to host
But when i tried pinging again to the IP address, it was successful. Also when I tried http://220.127.116.11 in Firefox, I was able to get the google page.
So, it means you are right, it seems a problem with DNS settings only. Please help me further to overcome this problem.
What you can do is to try and telnet to the DNS server port to verify
1: That you can connect to it
2: That something is listening
So, if you go onto the Linux box and try
You should get
Connected to 18.104.22.168.
Escape character is '^]'.
Is there's a problem, you'll get
telnet: connect to address 22.214.171.124: Connection refused
or maybe it'll just timeout
Will try this on Monday, going for weekend off :D. Also I freed up around 20 GB of disk space and installed OpenSUSE directly on HD instead of VMWare :D. Here also I was getting same DNS related problems :(. Also having some display and mouse-pad related problems (Compaq Presario V3611AU), but that's for another post :D.
I will try telnet to DNS tomorrow or on Monday and will let you know the outcome of the exercise. Thanks again for helping me.
Regards & TIA,
I tried telnet to the gateway and it worked and also it is pinging now (GOD knows how :confused:). But DNS look-up still fails :(. When I try to ping www.google.com, it doesn't work. But when I try ping using IP Address, it works.
Please guide me further for what else we can try to overcome the issue.
I finally got Internet up and working on my direct HD install of OpenSUSE. Although DNS lookup still fails on VMWare :(. Must be some problem with VMWare network configuration.
Anyway, now I have something to work on (I will have to switch back and forth for windows and Linux). I am planning to do some .net development on Mono :) (trying to switch from windows to Linux). Also, I was able to install nVidia drivers and graphics related problems are now things of past :D.
Thank you Mike for your help in trying to diagnose the problem.
Thanks & Regards,
No problem. Glad you got there in the end 8-)
unable to connect internet through firefox
Today i have installed suse linux 11.1 .i am able to ping public ip,but iam not able to browse any web pages in mozilla firefox.
Kindly do the needfull.
One possible issue related to this can be the DNS settings. Have you tried pinging www.google.com?? If you are able to ping by IP and not able to ping by DNS name, then verify the Name Server settings in the network settings of your machine.
|All times are GMT -5. The time now is 07:08 AM.|