LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-20-2008, 12:32 AM   #1
wccapps
LQ Newbie
 
Registered: Oct 2008
Location: Christchurch, New Zealand
Distribution: BLAG 90k
Posts: 3

Rep: Reputation: 0
DSL connection problem


I was wondering if you gents could help me with an issue:
Currently, my only way to connect to the internet is through networkmanager, which I'd rather not use. Trying rp-pppoe/pppoe-start, the program will say that it has connected, but I am unable to resolve any websites, and ping returns nothing. It's not a DNS problem, as I've set everything to use DHCP (provided from my ISP), and /etc/resolv.conf is updated with the correct DNS IPs. I do not use a router or modem - my dorm setup is to simply plug an ethernet cable into a wall socket. Furthermore, my ISP needs authentication with a username and password. After viewing the output of ps, I've noticed that networkmanager calls /usr/sbin/pppd with a ton of arguments:

/usr/sbin/pppd nodetach lock plugin rp-pppoe.so nic-eth0 user XXXXX@XXXX.net.nz noauth nodeflate usepeerdns mru 1492 mtu 1492 lcp-echo-failure 3 lcp-echo-interval 20 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so

but simply pasting this into the command line does not let me connect, either. So, really, I'm stuck. Can anybody help? BTW: I'm running BLAG 90001 on an amd64 box, if that's helpful.
 
Old 10-20-2008, 08:01 PM   #2
plpl303
Member
 
Registered: Oct 2008
Posts: 31

Rep: Reputation: 15
Does your routing table contain a default route? According to the ppp documentation, the 'defaultroute' option is needed to set up a default route. Without it, the system won't know where to send packets.
 
Old 10-22-2008, 04:07 AM   #3
wccapps
LQ Newbie
 
Registered: Oct 2008
Location: Christchurch, New Zealand
Distribution: BLAG 90k
Posts: 3

Original Poster
Rep: Reputation: 0
I'm not sure if it does or not. How can I check?
 
Old 10-22-2008, 09:37 PM   #4
plpl303
Member
 
Registered: Oct 2008
Posts: 31

Rep: Reputation: 15
Quote:
Originally Posted by wccapps View Post
I'm not sure if it does or not. How can I check?
Just type

/sbin/route

at the command line. If you see a line like:

default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


then you have a default route. If not, you don't. :-)

Of course, this only works if you check it after ppp connects... Otherwise, your table will have whatever the system set it up with.

Oh, if your system already has a default route, I think PPP may refuse to create another one. (I'm not sure because it's been a while since I've done PPP setup). In that case, you'd have to delete the existing default route before starting ppp.

On my machine, executing (as root):

/sbin/route del default

deletes the default route (and also preventing most further network communication until you get a new default route set).


Adding a default route is similar:


/sbin/route add default gw 192.168.0.1

where 192.168.0.1 is whatever the IP address of your gateway is (that's the meaning of the 'gw' above).
 
Old 10-29-2008, 05:36 AM   #5
wccapps
LQ Newbie
 
Registered: Oct 2008
Location: Christchurch, New Zealand
Distribution: BLAG 90k
Posts: 3

Original Poster
Rep: Reputation: 0
The output of route is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
116.108.124.202 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0


So I guess I don't have a default route...
Any ideas?

Last edited by wccapps; 10-29-2008 at 05:38 AM.
 
Old 10-29-2008, 11:10 AM   #6
r0x0rj00b0x0r
LQ Newbie
 
Registered: Sep 2008
Distribution: Gentoo, Slackware at Home & RHEL and AIX at work.
Posts: 17

Rep: Reputation: 0
/sbin/route add default gw Your_gateway_IP

netstat -r | grep def


btw, judging by your IP 116.108.124.202, I'd say that if you don't know you gateway address. So you'll need to call apnic.net to get it.

Last edited by r0x0rj00b0x0r; 10-29-2008 at 11:13 AM.
 
Old 10-29-2008, 08:03 PM   #7
plpl303
Member
 
Registered: Oct 2008
Posts: 31

Rep: Reputation: 15
Quote:
Originally Posted by wccapps View Post
The output of route is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
116.108.124.202 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0
Hmm. There *is* a line "default" -- the last one in the list. But notice it doesn't have a gateway associated with it. Somehow your box has a (useless) default route -- one that says "send all the packets to this gateway" but it doesn't tell where the gateway is!

Normally, (I would think) the PPP connection process would transmit the default route information to your end, but I suspect that the pppd program sees the default entry and refuses to add a new one.

Before connecting, try doing this:

/sbin/route del default

If you do

/sbin/route -n

you should find the 'default' line is gone. Then a connection with pppd [with the defaultroute option specified] will (hopefully) set things right.


Oh, I just noticed something:

116.108.124.202 * 255.255.255.255 UH 0 0 0 ppp0

I suspect that 116.108.124.202 *is* your gateway. If so, then you can add a route to it:

/sbin/route add default gw 116.108.124.202

Perhaps that will work :-)

Last edited by plpl303; 10-29-2008 at 08:04 PM.
 
  


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
SUSE 10 DSL connection problem drrex Linux - Networking 3 01-30-2006 07:13 PM
DSL/Network connection problem... redrobin77 Linux - Networking 15 02-16-2005 03:25 AM
DSL connection problem geo_gt Linux - Networking 3 12-06-2004 12:18 PM
dsl connection problem on FC2 tomhemba Fedora 2 06-09-2004 12:37 AM
Wierd DSL connection problem Joekool Linux - Newbie 0 01-09-2003 12:24 PM

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

All times are GMT -5. The time now is 03:09 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