Re: [SLUG] modems,ppp, linux (will I ever get online!)
On Fri, 2003-08-29 at 12:34, Brad Kowalczyk wrote: I tried using linuxconf to settup my ppp (as per a ppp howto) but it still does not work and now my system hangs on bootup while trying to bring up the ppp0 interface. I'm affraid I'm wasting everyones time with this, I really dont seem to know what it is I am doing wrong. Thanks for the help and suggestions anyhow. Can you be a bit more specific about what's going on? You start kppp, hit dial or whatever it is, then the modem goes burble burble burble, then what? So kppp is a wrapper around expect (a simple scripting language for automating tasks) and pppd. kppp will make the call, use expect (or some expect work-alike) to enter your login info then pass the connection over to pppd which is the program that gives you the interface that linux communicates through (by way of some kernel modules I believe). Now, if your modem is staying connected, and there's no pppd entry when you check it, I'd say it's pretty likely that there was no pppd entry to begin with. Let's try doing this the old fashioned way and see how far you get. Do all this as root with any ethernet cables etc disconnected : Fire up minicom, ensure that it's configured to talk to your modem. Run the standard modem tests (ati3 etc). Dial into your ISP (atdttheir number) (modem will go burble burble burble) log in with your username and password. At this point you should see a tilde and a bunch of random characters on your screen. That's what ppp looks like. Exit minicom *without* dropping the connection (it's exit without reset or quit or something). run pppd /dev/modem debug. Replace /dev/modem with your modem device. You may need to specify a speed and such. Look through man pppd to see what options you can use. Also, the debug will dump some info into a logfile somewhere -- worth checking out. Give it a few seconds to handshake, then you should be able to see ppp0 in ifconfig. Try pinging the other point in your connection. Once you get that far, we can start looking at automating that and tweaking the options a little. This way you get to see every step as it's happening and you should be able to identify where the problem is occurring. HTH James. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] modems,ppp, linux (will I ever get online!)
James Gregory wrote: On Fri, 2003-08-29 at 12:34, Brad Kowalczyk wrote: I tried using linuxconf to settup my ppp (as per a ppp howto) but it still does not work and now my system hangs on bootup while trying to bring up the ppp0 interface. I'm affraid I'm wasting everyones time with this, I really dont seem to know what it is I am doing wrong. Thanks for the help and suggestions anyhow. Can you be a bit more specific about what's going on? You start kppp, hit "dial" or whatever it is, then the modem goes burble burble burble, then what? Well it dials and all seems to be well until kppp says "loging onto network" or similar, then after I get a pppd timeout on signal 15 error. So kppp is a wrapper around expect (a simple scripting language for automating tasks) and pppd. kppp will make the call, use expect (or some expect work-alike) to enter your login info then pass the connection over to pppd which is the program that gives you the interface that linux communicates through (by way of some kernel modules I believe). Now, if your modem is staying connected, and there's no pppd entry when you check it, I'd say it's pretty likely that there was no pppd entry to begin with. Let's try doing this the old fashioned way and see how far you get. Do all this as root with any ethernet cables etc disconnected : Fire up minicom, ensure that it's configured to talk to your modem. Run the standard modem tests (ati3 etc). All is OK Dial into your ISP (atdttheir number) (modem will go burble burble burble) yep log in with your username and password. At this point you should see a tilde and a bunch of random characters on your screen. That's what ppp looks like. At this point I get a message displaying my IP address and MTU details etc, no tilde and no random characters. (If I just keep waiting it eventually drops the connection with NO CARRIER.) Exit minicom *without* dropping the connection (it's "exit without reset" or "quit" or something). did this run "pppd /dev/modem debug". Replace /dev/modem with your modem device. You may need to specify a speed and such. Look through "man pppd" to see what options you can use. Also, the "debug" will dump some info into a logfile somewhere -- worth checking out. Give it a few seconds to handshake, then you should be able to see ppp0 in ifconfig. Did this but no ppp0 entry ever comes up with ifconfig, only loopback. I could not find where the debug info was dumped either. Any further ideas? Thanks for the step-by-step instructions btw. Brad -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] modems,ppp, linux (will I ever get online!)
James Gregory wrote: On Thu, 2003-08-28 at 00:02, Brad Kowalczyk wrote: James Gregory wrote: I would do what the other poster suggested -- use minicom to test that your computer is in fact talking to the modem. Then you can be sure of the port etc, and you can punch those details into kppp or mcc or whatever and work from there, knowing that at least you've got the physical connection in place. Yep, my pc is talking to the modem, it dials and I login through the terminal but nothing 'sees' the connection ie I cant ssh, telnet or use a browser. Ok, so the connection is staying up and kppp is reporting that it's still there? what interfaces does ifconfig list (just ifconfig, not -a, don't specify an interface). I have somehow now lost my ppp0 entry, ifconfig now only lists the loopback interface What does your routing table look like? just the loopback You basically need two things -- a link and a route to get packets to the internet. The link in a ppp connection will be to a single IP address. It's listed in the info that ifconfig gives you. See if you can ping that IP address. If you can, then it's almost certainly a routing issue, or perhaps name resolution. I tried using linuxconf to settup my ppp (as per a ppp howto) but it still does not work and now my system hangs on bootup while trying to bring up the ppp0 interface. I'm affraid I'm wasting everyones time with this, I really dont seem to know what it is I am doing wrong. Thanks for the help and suggestions anyhow. Brad -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] modems,ppp, linux (will I ever get online!)
hai Yeah I used Bigpond for a while and I found the so called 56k connection not that flash. The best fix I found was one or both of the following. 1. Ask Bigpond for their 28/38k dial up numbers. 2. Set kppp on 38.6k, this wont effect the over all speed just make the handshake a little bit more stable. Brad Kowalczyk wrote: Its been about 2 months since my last attempt so I thought I might try to get a net connection happening on my Linux box again. This time with a *real* modem that I know works and on Mandrake 9.1 ... dah! -- Regards Richard Neal --- GPLG GPLGPLGP GPLGPLGPLGP GPLGP GPLMICROSOFT GPLGP GPLGPLGPLGP GPLGPLGPL GPLGPL --- [EMAIL PROTECTED] -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] modems,ppp, linux (will I ever get online!)
Something you might want to try is use minicom and type commands that you have in your chatscript. The next step would be, bring it back up with pppd and try to ping across the link, then if it falls over try the ati11 - no on all modems, but give you a diagnosis of the last call, including the reason why it terminated A On Tue, Aug 26, 2003 at 12:10:41AM +1000, Brad Kowalczyk wrote: Its been about 2 months since my last attempt so I thought I might try to get a net connection happening on my Linux box again. This time with a *real* modem that I know works and on Mandrake 9.1 ... dah! Everything goes fine under kppp until logging into network and then I get a pppd timeout error: Aug 25 19:12:57 localhost pppd[3708]: pppd 2.4.1 started by root, uid 0 Aug 25 19:13:26 localhost pppd[3708]: Terminating on signal 15. Aug 25 19:13:27 localhost pppd[3708]: Exit. Same as I was getting before, what goes? So according to man pppd signal 15 has something to do with 'peer not responding to echo requests' or similar. Is this a problem with my ISP (bigpond) or something at my end? I can dial in manually under kppp terminal an log in with my details but then after 20secs or so I get disconnected. I am getting really fustrated, I just want to ditch M$ alltogether but I need a net connection. Can someone *please* help? Brad -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug pgp0.pgp Description: PGP signature -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] modems,ppp, linux (will I ever get online!)
On Tue, 2003-08-26 at 09:37, Alexander Samad wrote: Something you might want to try is use minicom and type commands that you have in your chatscript. Yeah, minicom's a great tool for debugging this stuff. The other thing I'd recommend is using mcc (mandrake control center) to set it up. I believe that mcc will install any missing packages it needs, which wipes out another potential source of problems. What type of modem is it? James. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] modems,ppp, linux (will I ever get online!)
Its been about 2 months since my last attempt so I thought I might try to get a net connection happening on my Linux box again. This time with a *real* modem that I know works and on Mandrake 9.1 ... dah! Everything goes fine under kppp until logging into network and then I get a pppd timeout error: Aug 25 19:12:57 localhost pppd[3708]: pppd 2.4.1 started by root, uid 0 Aug 25 19:13:26 localhost pppd[3708]: Terminating on signal 15. Aug 25 19:13:27 localhost pppd[3708]: Exit. Same as I was getting before, what goes? So according to man pppd signal 15 has something to do with 'peer not responding to echo requests' or similar. Is this a problem with my ISP (bigpond) or something at my end? I can dial in manually under kppp terminal an log in with my details but then after 20secs or so I get disconnected. I am getting really fustrated, I just want to ditch M$ alltogether but I need a net connection. Can someone *please* help? Brad -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug