Discussion:
Where to start pppd for demand dialing
(too old to reply)
Chris Nelson
2006-05-04 14:15:59 UTC
Permalink
I've looked at several different references -- man pages, How To sites,
newsgroup archives -- without finding a clear answer: if I'm using pppd
for demand dialing and IP forwarding (that is, I've got "demand" in an
options file somewhere), where should I start up pppd? Should it be in
inittab with a respawn? If I disabled my PPP client would I then
change disable pppd in the inittab (by changing from "respawn" to "off"
or by comment out that line)? No doubt I have options but what's the
nromal way to do this?

Chris
James Carlson
2006-05-05 18:18:14 UTC
Permalink
Post by Chris Nelson
I've looked at several different references -- man pages, How To sites,
newsgroup archives -- without finding a clear answer: if I'm using pppd
for demand dialing and IP forwarding (that is, I've got "demand" in an
options file somewhere), where should I start up pppd? Should it be in
inittab with a respawn? If I disabled my PPP client would I then
change disable pppd in the inittab (by changing from "respawn" to "off"
or by comment out that line)? No doubt I have options but what's the
nromal way to do this?
The best place is probably an /etc/{init.d,rc.d,rc.*} script. (How
you do that depends strongly on the platform you're using, and you
didn't actually mention that part.)
--
James Carlson, KISS Network <***@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Moe Trin
2006-05-06 00:16:49 UTC
Permalink
On 4 May 2006, in the Usenet newsgroup comp.protocols.ppp, in article
Post by Chris Nelson
I've looked at several different references -- man pages, How To sites,
newsgroup archives -- without finding a clear answer: if I'm using pppd
for demand dialing and IP forwarding (that is, I've got "demand" in an
options file somewhere), where should I start up pppd?
OK - you are dialing _out_ with that - start it in /etc/rc.d/rc.local
and don't forget 'echo -n 1 > /proc/sys/net/ipv4/ip_dynaddr' so the
kernel knows the ppp0 interface is going to have dynamic addresses.
Post by Chris Nelson
Should it be in inittab with a respawn?
That's normally where it starts when someone is dialing _in_ to you,
rather than out to an ISP or similar.

Old guy

Loading...