We help IT Professionals succeed at work.

pppd used to work, now doesn't

racy asked
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!!!.
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)


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 ;)

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.

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.  


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 ;)

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...


Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.