Go Premium for a chance to win a PS4. Enter to Win


pppd used to work, now doesn't

Posted on 1998-07-11
Medium Priority
Last Modified: 2010-03-18
I broke something.  PPP to my ISP used to work fine.  I had a dialup script that started pppd, chatted with the modem and sent/recieved stuff for the login menu perfectly.  Then one day, I decide to go an change my home computer host names around and now pppd won't work.  I use RH 5.0 and used its network configurator to change my host name.  I also removed the domain name since, I figured that it was just a small home network, I didn't need a home name - so now my computers are just known by a single name, rather than name.home, name2.home, etc.  How do I know that its not PPPd itself?  Because pppd still works for my connection to work(which I am currently using and is incredibly sloooow)

My script does all the transactions properly such as sending the name/passwd/menu options, pppd starts but doesn't seem to 'take hold' and just quits...usually leaving my modem connected.  ifconfig never shows a ppp0 interface.  My ISP delivers dynamic addresses.

I am wondering what I can do to debug this problem since its getting the best of me.  Not only does my script not work anymore, but neither does RH's autoPPP utility or KDE's ppp program.  I have a suspicion that something is awry with the routing, but I have not the knowledge to know where to begin looking.

I have a couple hundred points, so if anyone wants to work with me on this, I'd seriously appreciate it as well as learn something in the process.  Let me know which config files to send and which program output to send.

Thanks a bunch!!!.
Question by:racy

Accepted Solution

alexbik earned 800 total points
ID: 1584776

First of all, it is a _very_ bad idea not to define a domainname. I can't see what the
disadvantage is of using one, since your machine itself will allways listen to 'hostname' without the domainname if you defined it in /etc/hosts or if you include your local domain in /etc/resolv.conf. The problem with PPP might be that you either use the wrong login name (could it be that your old hostname was equal to the loginname you used to login to your ISP?) or that you use the wron password (this could be caused by changing your hostname as well). Take a look at /etc/ppp/pap-secrets and if your hostname differs from the login you have to use, make sure you use the user <u> command line option to override this (see man pppd for details).


Author Comment

ID: 1584777
Okay, this brings on a few more questions.  

First, I didn't think I needed to muck with /etc/ppp/pap-secrets since I am not using pap...the login method of my ISP is a menu that I go thru: Enter name, enter passwd, selct '1' for ppp. This is/was scripted using chat.  Why would I still need an entry in the /etc/ppp/pap-secrets file?

Also, the reason I chose to rid the domain name from my home LAN is that I simply didn't know what was legal...can I call it anything I want, such as 'home.com' or 'home.org', with the hosts being 'comp1.home.org', etc?  Obviously, I need to re-read up on DNS, but here's the problem that I don't understand:

I use one computer to dialup ppp via modem...this same computer also has an ethernet adapter.  If I want to ping say comp2.home.org, what is preventing it from looking over the internet via the ppp connection to find a comp2.home.org?

Thanks again for your knowledge and patience ;)


Expert Comment

ID: 1584778
you must setup routes.
If your local domain is something.com, add an entry in /etc/networks with
x.x.x.0  something.com
then add a route to your local domain
route add -net something.com eth0
(but this is made implicitly with the network on which your NIC is configured)
if your box doesn't know the network you call, it'll use the default route, which must be on your calling device.

your NIC is
you must have a route on
(route add -net eth0)
if you use a router or another box to access to, add a route to this network on eth0:
route add -net gw the_address_of_the_gateway\

put your default route on your ppp device

But you can also look at the FAQs.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.


Expert Comment

ID: 1584779
as for routing,  i the script i use to connect also automatically sets the ppp connection as the default route.  but since you will have home.org,  or rather, comp2.home.org, specifically set up, it will find your computer, on your lan, first, because in
/etc/host.conf you can tell the computer what to check first, the DNS (prob your isp's DNS ) or your /etc/hosts file (which will contain a address for comp2).

does that make sense?  

for instance, i use marc.com on my lan.  so i cant connect to the www.marc.com on the internet using its name, i have to use its ip (www.marc.com has address to connect from my lan.  


Author Comment

ID: 1584780
Thanks to all of you.  Not only did I fix my problem, but my understanding of the situation is better.

I am not sure how this point scheme works, since it has never worked very well on this site.  I guess the points are distributed?

Thanks again ;)


Expert Comment

ID: 1584781
hehe.  fyi, no, all the points go to alex, cuz it was his answer u agreed to.  i guess EA doesnt have a system of splitting credit...



Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question