LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Kernel IP routing table question (https://www.linuxquestions.org/questions/linux-networking-3/kernel-ip-routing-table-question-328814/)

AlexBell 05-31-2005 05:26 AM

Kernel IP routing table question
 
I still can't connect to the internet with Xandros deluxe 3 using a NetComm internal modem for which Xandros has a driver - or at least it seems to connect and then says connection failed.

I'm working slowly and carefully through an oldish paper by WG Unruh entitled 'How to hook up PPP in Linux', and have got to the section entitled no default route. He advises to run /sbin/route -n and says that 0.0.0.0 should not be there and 127.0.0.1 should be. I don't see either; all I see is

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

with no numbers or anything else. What does this mean? Should I try to make it read 127.0.0.1, and if so how?

I'm almost completely a newbie, which is why I'm going slowly and carefully and asking questions.

By the way, can anyone point me please to a more recent howto for newbies to establish an internet connection? I've found one from the Melbourne PC Users Group which deals with setting up kppp - but I can't find kppp in Xandros.

Darin 05-31-2005 09:40 AM

What lead you to reading about, "no default route" in the tutorial? I'm a little curious because you said you were getting a connection failed message and I assume that the modem hangs up at that point, in which case you aren't quite at the point where you troubleshoot routing tables yet. Anyhow, you should have a route for at least 127.0.0.0 when you run /sbin/route -n, so please post your output from ifconfig -a. Yes it should have the 127.0.0.0 but you don't fix that by manually adding any route entries. When the TCP/IP networking in Linux is loaded correctly, it will automatically add the correct entry.

Also, did you run any sort of configuration utility or did you manually edit the options file for ppp? If so, please post the contents of that file (xxx out your username if you wish.)

As for something to try, in your ppp options file you should have an entry that says user or name with your username for the connection. Try to change it from name to user, or if it says user then change it to name, and see if that helps. Lastly, I had some problems with the whole pap/chap thing before and what I ended up doing was putting the correct entries in the chap-secrets file and then deleting the pap-secrets file and linking a new one to chap-secrets (ln -s chap-secrets pap-secrets) and this may help you too.
Code:

root@linuxbox:~# cd /etc/ppp
root@linuxbox:/etc/ppp# cat chap-secrets
"user@isp.com"    *  "mypassword"
root@linuxbox:/etc/ppp# rm pap-secrets
root@linuxbox:/etc/ppp# ln -s chap-secrets pap-secrets


AlexBell 06-01-2005 06:09 AM

Thanks, Darin. I appreciate the effort you have put into your response, but as newbie it'll take me a day or so to track down the information you have asked for. I'll be back to you as soon as I can.


All times are GMT -5. The time now is 09:01 AM.