LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Able to connect to default Gateway, Unable to connect to internet (http://www.linuxquestions.org/questions/linux-newbie-8/able-to-connect-to-default-gateway-unable-to-connect-to-internet-704131/)

Dumb.Coder 02-12-2009 07:15 AM

Able to connect to default Gateway, Unable to connect to internet
 
Hi,

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 : 59.144.169.16 and DNS2 : 59.144.169.17

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
collisions:0 txqueuelen:1000
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
collisions:0 txqueuelen:0
RX bytes:200 (200.0 b) TX bytes:200 (200.0 b)
------

-------/etc/resolv.conf------------
### /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:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# 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!
search workgroup
nameserver 59.144.169.16
nameserver 59.144.169.17
---------

-----/etc/sysconfig/network/ifcfg-eth0-------------
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='10.202.251.120/24'
MTU=''
NAME='79c970 [PCnet32 LANCE]'
NETWORK='10.202.251.45'
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'
PREFIXLEN='24'
-------------------

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.

TIA,
Dumb.Coder

mapryan 02-12-2009 08:30 AM

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 59.144.169.17
Maybe you could try using a different DNS server

Cheers

Mike

Dumb.Coder 02-12-2009 10:16 AM

Hi Mike,

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 59.144.169.17
;; 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.

TIA,
Dumb.Coder

Quote:

Originally Posted by mapryan (Post 3440973)
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 59.144.169.17
Maybe you could try using a different DNS server

Cheers

Mike


mapryan 02-12-2009 10:27 AM

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)
curl http://74.125.77.103

Dumb.Coder 02-13-2009 04:34 AM

Hi Mike,

I tried curl as you asked and here is the output...
-----output of curl-----
curl http://74.125.77.103
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://74.125.77.103 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.

TIA,
Dumb.Coder

Quote:

Originally Posted by mapryan (Post 3441085)
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)
curl http://74.125.77.103


mapryan 02-13-2009 11:30 AM

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
59.144.169.16

You should get
Connected to 59.144.169.16.
Escape character is '^]'.

Is there's a problem, you'll get
telnet: connect to address 59.144.169.16: Connection refused
or maybe it'll just timeout

Rgds

Mike

Dumb.Coder 02-13-2009 04:32 PM

Thanks Mike,

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,
Dumb.Coder


Quote:

Originally Posted by mapryan (Post 3442435)
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
59.144.169.16

You should get
Connected to 59.144.169.16.
Escape character is '^]'.

Is there's a problem, you'll get
telnet: connect to address 59.144.169.16: Connection refused
or maybe it'll just timeout

Rgds

Mike


Dumb.Coder 02-14-2009 09:45 AM

Hi Mike,

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.

TIA,
Dumb.Coder

Quote:

Originally Posted by mapryan (Post 3442435)
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
59.144.169.16

You should get
Connected to 59.144.169.16.
Escape character is '^]'.

Is there's a problem, you'll get
telnet: connect to address 59.144.169.16: Connection refused
or maybe it'll just timeout

Rgds

Mike


Dumb.Coder 02-16-2009 03:22 AM

Hi Mike,

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,
Dumb.Coder

Quote:

Originally Posted by Dumb.Coder (Post 3443268)
Hi Mike,

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.

TIA,
Dumb.Coder


mapryan 02-16-2009 10:01 AM

No problem. Glad you got there in the end 8-)

thaj9182 03-17-2009 05:07 AM

unable to connect internet through firefox
 
Hi Buddy.

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.

Thanks
Thaj

Dumb.Coder 04-14-2009 05:22 AM

Dear Thaj,

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.

HTH,
Dumb.Coder

Quote:

Originally Posted by thaj9182 (Post 3478022)
Hi Buddy.

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.

Thanks
Thaj



All times are GMT -5. The time now is 06:36 PM.