LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-03-2002, 01:11 PM   #1
Gladiator
LQ Newbie
 
Registered: Jun 2001
Posts: 23

Rep: Reputation: 15
Thumbs down Modem connects but can't go anywher


When I connect to my ISP through Linux (Dial UP) I get passed my nameservers and my IP address through DHCP. However, I can't go anywhere or resolve any domain names.

Here is my information. If anyone can shed some light on my situation, it would be much appreciated.

============================================
ifconfig syas this:

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:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

ppp0 Link encap:Point-to-Point Protocol
inet addr:XXX.34.100.125 P-t-P:XXX.185.130.163 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1514 Metric:1
RX packets:41 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

==============================================
When I ping to the nameservers. 50% of my packets are lost!! Very Strange... Here is what is looks like:

Pinging nameservers.

PING XXX.185.130.34 (XXX.185.130.34) from XXX.34.100.125 : 56(84) bytes of data.
64 bytes from XXX.185.130.34: icmp_seq=0 ttl=126 time=114.997 msec
64 bytes from XXX.185.130.34: icmp_seq=2 ttl=126 time=109.961 msec
64 bytes from XXX.185.130.34: icmp_seq=4 ttl=126 time=109.958 msec
64 bytes from XXX.185.130.34: icmp_seq=6 ttl=126 time=109.959 msec
64 bytes from XXX.185.130.34: icmp_seq=8 ttl=126 time=109.958 msec

--- XXX.185.130.34 ping statistics ---
10 packets transmitted, 5 packets received, 50% packet loss
round-trip min/avg/max/mdev = 109.958/110.966/114.997/2.047 ms
==============================================
My /etc/sysconfig/network file looks like this:

NETWORKING=yes
HOSTNAME=localhost.localdomain

GATEWAY="XXX.YYY.ZZZ"
GATEWAYDEV=ppp0

GATEWAY="0.0.0.0"
GATEWAYDEV=ppp0
==============================================

When I ping my IP that is given to me through DHCP (Which is also my Gateway when connecting through windows) I get only 50 percent of the packets back.

===========================================

Route command:

Before Connecting:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

After connecting via modem:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
XXX.185.130.163 * 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default XXX.185.130.163 0.0.0.0 UG 0 0 0 ppp0


Thanks for your time.

Jason
 
Old 04-03-2002, 06:54 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try a longer ttl on the ping


make sure that /etc/resolv.conf contains the nameservers after you connect

for dialup the nameservers provided by the dhcp server get put in /etc/ppp/resolv.conf

for this to work you need to have a link /etc/ppp/resolv.conf pointing to /etc/resolv.conf

ls -l /etc/ppp/resolv.conf
lrwxrwxrwx 1 root root 16 Mar 8 12:51 /etc/ppp/resolv.conf ->
/etc/resolv.conf

you can also play around with different MTU settings after you get it working.
 
Old 04-03-2002, 11:32 PM   #3
Gladiator
LQ Newbie
 
Registered: Jun 2001
Posts: 23

Original Poster
Rep: Reputation: 15
AHH!

My nameservers are being passed into /etc/resolv.conf upon connecting with ppp0.

When I connect through windows, the gateway is the same as my DHCP IP address and everything works. How can a dynamic IP address be the gateway everytime you dial in? Shouldn't the gateway be a static address? (but yet it works in win)

I have gone through every networking file I know of and what is in my Linux (Unleashed) Manual. Everything seems to be set up correctly.

I did not find this link you were referring to above and am unsure of why it should exist if the information is being written into the resolv.conf file upon connection.

It is almost like there is a firewal?? Only 50 percent packet success? traceroute returns "1*" then "2*" etc...

my routing table seems to be set up correctly.

This is also my 3rd complete lfresh install of linux....It used to work right off the bat with the same equipment on a previous install.

The only difference was that lilo was installed on the previous install. Now it is not (I'm using a boot disk). I see no reason why this should matter with ppp? I am not using the eth0 connection and I have it deactivated (no wires attached).

I am losing my mind...

Thanks for responding.

Jason


 
  


Reply



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
Modem connects - browser does not pppaaarrrkkk Linux - Networking 7 09-10-2007 06:42 PM
why does my modem get disconnected after it connects? ginda Linux - Newbie 2 03-31-2004 09:06 AM
Modem connects but no internet dibblethewrecke Linux - Networking 8 11-28-2003 12:13 PM
Modem connects but doesn't? bmike1 Linux - Software 5 08-23-2003 08:27 AM
Modem connects then ZILCH tsundram Linux - Software 4 03-09-2002 07:17 PM

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

All times are GMT -5. The time now is 09:58 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
Open Source Consulting | Domain Registration