Click to See Complete Forum and Search --> : setting up ppp on debian
manux
01-09-2001, 12:21 AM
i used pppconfig to enter all the info about my isp. i'm able to connect with pon a few sequence later i get a message (tail -f) as shown:
Serial connection established
Using interface ppp0
Connect: ppp0<-->/dev/ttyS2
Hangup (SIGHUP)
Modem hangup
connection terminated.
is there something i should do to keep the connection alive or there's something missing or didn't setup. pls help
henri
01-09-2001, 04:44 AM
Are you sure your modem is connected to (Zindoz) port COM3 ?
serial connector A is ttyS0 (COM1)
serial connector B is ttyS1 (COM2)
If this is OK you should re-ask your question joining :
- the actual command used to launch pppd
- the files :
/etc/ppp/options
/etc/ppp/chap-secrets
/etc/ppp/pap-secrets
for the last 2 don't forget to change your actual password into "mypassword" and your actual user name into "myusername"
~/.ppprc (if any)
N.B. ~ stands for home directory of the user launching pppd
You could also put a line containing "debug" at the beginning of /etc/ppp/options and join to your question all the stuff pertaining to ppp, LCP, IPCP that should appear in /var/log/messages (the system's syslog logfile)
ColdPack
01-09-2001, 10:18 AM
I'm assuming you let pppconfig probe for your modem. Did it find one? And is that the right selection? If it did and that's the one you said 'yes' to then make sure all of the other settings are correct, too. Like the DNS addresses and your username and password. You can re-run pppconfig and select 'Change setting' (or whatever) and then go through and double and triple check your settings.
Also, are you sure your ISP uses PAP or CHAP? Those, too, are selections in pppconfig that you should look over to be sure you chose the right stuff.
And are you running pppd (with the pon command) as a regular user? Did you make sure you added yourself as a user that can use ppp? That is in the advanced options in pppconfig. I always run pppconfig as root then add users via that part of the configuration.
Anywho, I hope this helps in any way.
------------------
What if everything is an illusion and nothing exists? In that case, I
definitely overpaid for my carpet.
-- Woody Allen, "Without Feathers"
Radar
01-09-2001, 12:28 PM
When you [tail -f /var/log/syslog] look for messages to the effect remote server terminated with auth error or something. That may mean you're using pap or chap - and your isp may need the other. make sure that in /etc/ppp a file called resolv has the domain (search myISP.net)
nameserver xxx.xxx.xxx
nameserver xxx.xxx.xxx
and the resolv.conf file matches. if not, the resolve.conf will be overwritten with the wrong info from resolv.
Make sure you opted for ppp in the module selection during the original install as well.
-----------edit----------------
It looks as if your modem is being initialized and is dialing. Something is dropping your connection. I suspect the remote server or pppd is not coming up.
------------------
Nothing Spoils the taste of peanut butter like unrequited love--Charlie Brown
[This message has been edited by Radar (edited 09 January 2001).]