Re: [SLUG] PPP0 Autodial
On Wed, Feb 09, 2000 at 08:54:26PM +1100, Ben Donohue wrote: here's another way..., there's always another way. But in this case there is the One True Way (tm). run a cron job to do the following every five minutes or so. on a redhat box... [snip] So basically you are duplicating the functionality of pppd `persist' feature. Why? It seems far simpler and easier to specify the `persist' option. what this does is check if the process pppd is running. if it is then it does nothing. if it is not then it runs your ppp-on script. this is useful for the pppd coming back up when you are not there, or the machine reboots for some reason, the machine is up but the line drops out, etc. Every case of which `persist' handles properly. The initial connect it does not but the right way to do this has already been mentioned. Anand -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
Re: [SLUG] PPP0 Autodial
I just tick the box for "Set default route" in linuxconf. This in turn adds the option "defaultroute" (nothing else) to the script that eventually runs pppd. In RH6.0 this is /etc/sysconfig/network-scripts/ifup-ppp but I never modify that script as such. It reads options from a file. See "man pppd". The "defaultroute" option tells pppd to automatically add a default route of whatever IP addr it gets allocated. I think linuxconf is the best thing since sliced bread, once considered writing something like that for Solaris, but linuxconf is already done. At 02:31 PM 15/02/2000 +1100, Ryan McBride wrote: What do i have to put as the default route??? is this in the ifcfg-ppp0 file?? Ryan - Original Message - From: Brian Martin [EMAIL PROTECTED] To: Ryan McBride [EMAIL PROTECTED]; slug [EMAIL PROTECTED] Sent: Tuesday, February 15, 2000 10:37 AM Subject: Re: [SLUG] PPP0 Autodial sounds like you need "defaultroute" so that a default route via the ppp0 link is added when the link is up dropped when its down. At 01:45 PM 14/02/2000 +1100, Ryan McBride wrote: Hey All Anyone care to shed some light on this. When i changed /etc/sysconfig/network-scripts/ifcfg-ppp0 and set the "ONBOOT" option to yes and reboot the modem dials and connects and presumably logins to my isp. However i cannot axs anything outside of my lan. The only way i can get this to work is to use kppp through xwindows. This is something i want to eliminate as i dont want to have to go into xwindows everytime i reboot the machine. Any help would be great Ryan Attachment Converted: "C:\BLINK\EUDORA\ATTACH\SLUGPPP1" -- Brian Martin, [EMAIL PROTECTED] Future Software Pty Ltd, Sydney, Australia. -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text -- Brian Martin, [EMAIL PROTECTED] Future Software Pty Ltd, Sydney, Australia. -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
[SLUG] PPP0 Autodial (NON HTML)
Anyone care to shed some light on this. When i changed /etc/sysconfig/network-scripts/ifcfg-ppp0 and set the "ONBOOT" option to yes and reboot the modem dials and connects and presumably logins to my isp. However i cannot axs anything outside of my lan. The only way i can get this to work is to use kppp through xwindows. This is something i want to eliminate as i dont want to have to go into xwindows everytime i reboot the machine. BTW Im using mandrake 6.1 Any help would be great Ryan -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
Re: [SLUG] PPP0 Autodial
What do i have to put as the default route??? is this in the ifcfg-ppp0 file?? Ryan - Original Message - From: Brian Martin [EMAIL PROTECTED] To: Ryan McBride [EMAIL PROTECTED]; slug [EMAIL PROTECTED] Sent: Tuesday, February 15, 2000 10:37 AM Subject: Re: [SLUG] PPP0 Autodial sounds like you need "defaultroute" so that a default route via the ppp0 link is added when the link is up dropped when its down. At 01:45 PM 14/02/2000 +1100, Ryan McBride wrote: Hey All Anyone care to shed some light on this. When i changed /etc/sysconfig/network-scripts/ifcfg-ppp0 and set the "ONBOOT" option to yes and reboot the modem dials and connects and presumably logins to my isp. However i cannot axs anything outside of my lan. The only way i can get this to work is to use kppp through xwindows. This is something i want to eliminate as i dont want to have to go into xwindows everytime i reboot the machine. Any help would be great Ryan Attachment Converted: "C:\BLINK\EUDORA\ATTACH\SLUGPPP1" -- Brian Martin, [EMAIL PROTECTED] Future Software Pty Ltd, Sydney, Australia. -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
[SLUG] PPP0 Autodial
Hey All Anyone care to shed some light on this. When i changed /etc/sysconfig/network-scripts/ifcfg-ppp0 and set the "ONBOOT" option to yes and reboot the modem dials and connects and presumably logins to my isp. However i cannot axs anything outside of my lan. The only way i can get this to work is to use kppp through xwindows. This is something i want to eliminate as i dont want to have to go into xwindows everytime i reboot the machine. Any help would be great Ryan
Re: [SLUG] PPP0 Autodial
You don't say which distribution you are running. On Redhat 6.0 (and maybe 5.x as well) you would set the DEFROUTE variable in that file to "yes". On Mon, 14 Feb 2000, Ryan McBride wrote: Hey All Anyone care to shed some light on this. When i changed /etc/sysconfig/network-scripts/ifcfg-ppp0 and set the "ONBOOT" option to yes and reboot the modem dials and connects and presumably logins to my isp. However i cannot axs anything outside of my lan. The only way i can get this to work is to use kppp through xwindows. This is something i want to eliminate as i dont want to have to go into xwindows everytime i reboot the machine. Any help would be great Ryan -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
Re: [SLUG] PPP0 Autodial
here's another way..., there's always another way. run a cron job to do the following every five minutes or so. on a redhat box... #!/bin/bash cd /etc/ppp ps ax|fgrep pppd|fgrep -v fgrep/dev/null||/etc/ppp/ppp-on exit 0 what this does is check if the process pppd is running. if it is then it does nothing. if it is not then it runs your ppp-on script. this is useful for the pppd coming back up when you are not there, or the machine reboots for some reason, the machine is up but the line drops out, etc. just make damn sure your scripts are correct. if not you may get a phone bill that's rung the number every five minutes, had an error in the script and hung up, redialed, hung up, redialed... still when it's working, it works a treat! sorry, havent played with dial on demand. Ryan McBride wrote: Hi, could anyone recomend a script for making PPP0 autodial/connect on boot. I have tried changing /etc/sysconfig/networking-scripts/ifcfg-ppp0 and changing the onboot option to yes but for some reason it doesnt work. It dials and connects but you cant access the internet unless u dial with KPPP through xwindoz. What about dial on demand?? Thanx Ryan -- _|_ | Thanks, iCafe PTY Limited Ben DonohueWeb Hosting Design [EMAIL PROTECTED]Small Business Office Networks Ph. 0011 61 2 9705 7520 http://www.icafe.com.au Mobile: 0417 018 600ACN 080 665 907 Freedom isn't doing what you want... Freedom is knowing what to do -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
Re: [SLUG] PPP0 Autodial
Okay, i know this is going to seem REALLY STUPID, but ill ask it anyway. I have made a file in pico with the commands in it. How do i make the file executable (ive been using linux for about 2 weeks now) Thanx - Original Message - From: Ben Donohue [EMAIL PROTECTED] To: Ryan McBride [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 09, 2000 8:54 PM Subject: Re: [SLUG] PPP0 Autodial here's another way..., there's always another way. run a cron job to do the following every five minutes or so. on a redhat box... #!/bin/bash cd /etc/ppp ps ax|fgrep pppd|fgrep -v fgrep/dev/null||/etc/ppp/ppp-on exit 0 what this does is check if the process pppd is running. if it is then it does nothing. if it is not then it runs your ppp-on script. this is useful for the pppd coming back up when you are not there, or the machine reboots for some reason, the machine is up but the line drops out, etc. just make damn sure your scripts are correct. if not you may get a phone bill that's rung the number every five minutes, had an error in the script and hung up, redialed, hung up, redialed... still when it's working, it works a treat! sorry, havent played with dial on demand. Ryan McBride wrote: Hi, could anyone recomend a script for making PPP0 autodial/connect on boot. I have tried changing /etc/sysconfig/networking-scripts/ifcfg-ppp0 and changing the onboot option to yes but for some reason it doesnt work. It dials and connects but you cant access the internet unless u dial with KPPP through xwindoz. What about dial on demand?? Thanx Ryan -- _|_ | Thanks, iCafe PTY Limited Ben DonohueWeb Hosting Design [EMAIL PROTECTED]Small Business Office Networks Ph. 0011 61 2 9705 7520 http://www.icafe.com.au Mobile: 0417 018 600ACN 080 665 907 Freedom isn't doing what you want... Freedom is knowing what to do -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
[SLUG] PPP0 Autodial
Hi, could anyone recomend a script for making PPP0 autodial/connect on boot. I have tried changing /etc/sysconfig/networking-scripts/ifcfg-ppp0 and changing the onboot option to yes but for some reason it doesnt work. It dials and connects but you cant access the internet unless u dial with KPPP through xwindoz. What about dial on demand?? Thanx Ryan
Re: [SLUG] PPP0 Autodial
Is it redhat? or does the netcfg command exist even using linuxconf works and fixes it so it can dial on boot I don't think kppp uses redhat's system of configuration files for settings for the ppp link and just uses pppd directly On Wed, 9 Feb 2000, Ryan McBride wrote: Hi, could anyone recomend a script for making PPP0 autodial/connect on boot. I have tried changing /etc/sysconfig/networking-scripts/ifcfg-ppp0 and changing the onboot option to yes but for some reason it doesnt work. It dials and connects but you cant access the internet unless u dial with KPPP through xwindoz. What about dial on demand?? Thanx Ryan -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text
Re: [SLUG] PPP0 Autodial
Ryan - yes yes At 07:50 AM 9/02/2000 +1100, Ryan McBride wrote: could anyone recomend a script for making PPP0 autodial/connect on boot. I have tried changing /etc/sysconfig/networking-scripts/ifcfg-ppp0 and changing the onboot option to yes but for some reason it doesnt work. It dials and connects but you cant access the internet unless u dial with KPPP through xwindoz. Ryan, I don't use kppp, but in RH5 RH6 linuxconf has a tickbox for connect on boot, also for autoredial on disconnect. This is aimed at a pseudo permanent link. What about dial on demand?? In RH5.2 pppd has the "demand" option, but the kernel does not support dial on demand, you have to use the separate "diald" package, which I never got compiled due to a header file missing problem, but others have used successfully. In RH6.0 the kernel does support demand dialing, in fact I just got it working yesterday. Like most things, it only took 5 mins, (after installing a bigger disk, to install RH6.0 on, reconfiguring everything), then it only took 5 mins to change from manual dial (ifup ppp0, ifdown ppp0) to dial on demand. a - in linuxconf under ppp options - enter "demand idle 600" where demand activates demand dialling, and 600 secs (10 mins or whatever) is the idle timeout to drop the link after inactivity. b - dial on demand requires the destination IP address to be specified, somewaht against the grain of dynamic IP addresses alloacted by an ISP. Either arrange a fixed IP address, or (what I did its working) just enter an IP address in the range normally allocated by your ISP e.g. x.y.z.1 This fools it into supporting dial on demand to the nominal IP addr, on DHCP allocation from the ISP, it changes the local IP addr to suit. This is working so far. IMHO this is a config wanted by many, e.g. linux as router/gateway to ISP, dial-on-demand, other boxes (linux, win, whatever) point gateway to linux router box, then all boxes can web browse without any admin action, sharing the modem connection. (Ironically man pppd recommends not to mix dial on demand with dynamic IP addr, but that is exactly what I want.) I have never seen these steps described anywhere, nor any confirmation that any particular release does or does not support this config. There is lots of info in "man pppd", on mail lists (SLUG), on linux websites, in howto's etc, but most info is still nuts bolts bottom up oriented, and there needs to be more top down end result oriented approach in both documentation configuration utilities. (except that a 3 way choice of Workstation/Server/Custom is going too far the other way !). Brian -- Brian Martin, [EMAIL PROTECTED] Future Software Pty Ltd, Sydney, Australia. -- SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au To unsubscribe send email to [EMAIL PROTECTED] with unsubscribe in the text