LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2005, 12:35 AM   #1
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Rep: Reputation: 15
Question Web surfing impossible


Hello,

I have a very strange problem with my low speed connection. With my usual Internet provider, after connection, I don't have any problem : getting emails, surfing on the web, and so on. But if I try to connect with another provider, connexion is right, but I can't do anything, even I can't go to any web address.

I am running under Linux Mandrake 9.1. I tried to remove Shorewall and Iptables, but without better result. I use KPPP and I declared everything identical for all providers, except call number, ident & password. Connexion to each provider is OK, but I can't surf, except with my usual provider. Certainly there is something particular to my usual provider, which is declared somewhere, and which makes surfing, etc. OK, but what and where ?

Thanks in advance to everybody who has an idea !

griv
 
Old 06-03-2005, 12:50 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Does each account in Kppp use Dynamic IP's and do they require different DNS servers. You second connection may be trying to use the DNS from the first account...

Try to Ping Google on the second account using IP and DNS see if you can resolve either one
ping 216.239.57.103
and
ping www.google.com

KC
 
Old 06-03-2005, 12:58 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. There are two likely culprits:
a) Your gateway is misconfigured (you can't get to the outside world)
... or ...
b) Your DNS is messed up (you can't resolve any names from the outside world)

2. Try this:
a) Identify your gateway:
netstat -r =>
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default homeportal.gate 0.0.0.0 UG 0 0 0 eth0
<= IN THIS EXAMPLE, MY DEFAULT GATEWAY IS "homeportal.gate"

b) Try to "ping" your gateway:
ping homeportal.gate =>
PING homeportal.gate.gateway.2wire.net (192.168.1.100) 56(84) bytes of data.
64 bytes from homeportal.gateway.2wire.net (192.168.1.100): icmp_seq=1 ttl=255 time=1.57 ms
... <= SO FAR, SO GOOD: WE HAVE A GATEWAY DEFINED, AND
WE KNOW WE CAN REACH IT...

c) Try to resolve "www.google.com" (or any address):
nslookup www.google.com =>
nslookup www.google.com
Server: 192.168.1.100
Address: 192.168.1.100#53

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.7.99
Name: www.l.google.com
Address: 66.102.7.104
...
<= THIS WORKED: WE RESOLVED "WWW.GOOGLE.COM" TO "66.102.7.99"

d) I suspect that everything will work for you up to step "c)": the nslookup.

Even if you don't find "www.google.com", nslookup will report your DNS server (in this example, 192.168.1.100). Try to ping it:

ping 192.168.1.100 =>
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=255 time=1.97 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=255 time=1.76 ms
... <= I SUSPECT THIS WILL FAIL ON YOU

e) Your DNS server is controlled by the following file:

ls -l /etc/resolve.conf =>
-rw-r--r-- 1 root root 1279 2005-06-02 18:34 /etc/resolv.conf

This file will get updated every time you successfully connect to your ISP (or, in my case, when I booted my PC and got a DHCP address).

Make sure this file is owned by "root" and is writeable.

'Hope that helps .. PSM
 
Old 06-03-2005, 01:16 AM   #4
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by kencaz
Does each account in Kppp use Dynamic IP's and do they require different DNS servers. You second connection may be trying to use the DNS from the first account...

Try to Ping Google on the second account using IP and DNS see if you can resolve either one
ping 216.239.57.103
and
ping www.google.com

KC
Thank you very much. I tried with manual IP : same result. I tried ping 216.239.57.103, and that's OK.

Now what can I do to make web names recognized ?
 
Old 06-03-2005, 01:19 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
See above

Try to ping your name server (which you identified by looking at /etc/resolv.conf and/or trying nslookup).

You're close: I've got my fingers crossed!
 
Old 06-03-2005, 01:45 AM   #6
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you very much to all ! I think I solved the problem, even if I don't understand everything.... I got the first DNS address in resolv.conf, I put it in DNS field of KPPP, and I checked the "remove other DNS " field (or something like that). And like this, that works, I'm running with that connexion presently.

Thank you again to everybody ! That's great !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web surfing Seith Linux - Networking 4 01-28-2006 02:18 AM
No web surfing from workstations CPU_Doc Linux - Networking 1 09-09-2005 09:25 AM
Problems surfing the web.... Help ! froycard Linux - Software 14 02-17-2004 09:27 AM
Problems surfing the web.... Help ! froycard Linux - Newbie 4 05-16-2001 10:56 AM
Problems surfing the web.... Help ! froycard Linux - Networking 1 05-16-2001 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration