*BSD News Article 85053


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!garlic.com!uunet!in1.uu.net!208.192.224.3!news.interactive.net!news
From: Jay Sachs <sachs@interactive.net>
Subject: Re: Tips : Dynamic PPP On-Demand Setup
X-Newsreader: Gnus v5.2.40/XEmacs 19.14
X-Nntp-Posting-User: (Unauthenticated)
Sender: sachs@luddite.org
Organization: IBS Interactive, Inc.
Lines: 56
Message-ID: <87k9qnaglm.fsf@luddite.org>
References: <58jrqe$vks@lantana.singnet.com.sg>
X-Trace: 850407032/14612
X-Face: +i14.(3OL6caXxAJslm\+OS:-ckkfx6J6UzO>df-4b#2+d{+TH;5DC9Nc1Z7'1>s^AZ"HG7
 Av0@MtZ81SyDECC9S"PEo%s"dY4&Hud:w!PjnmT,FL2Sv(5oI7Y"l;|1rf:^'n$Ghg~?x3hanxCg"N
 ))JT[Ja%$#"Ou)FSb(2#e3*\xq{R;b]Ur8<bFS-|%V*B]eO]<iSa^>$!%w~t4|q@<_xKd??D~Zf(r!
 p#GC$,Cdm:$OdYL&B!;V%Ei^{N)96)[{pWI{@{ZsEn%oMxJ><(7-!YJ\`fx
X-Nntp-Posting-Host: host017.madison.interactive.net
Date: Thu, 12 Dec 1996 16:10:29 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32455


> * Starting ppp on-demand
> 
> 1) Initialize the tun0 device to some dummy addresses by typing:
> "ifconfig tun0 inet x.x.x.x y.y.y.y" at the shell prompt, where
> x.x.x.x is your localhost address and y.y.y.y is some other dummy
> address. eg.
> 
> $ ifconfig tun0 inet 192.168.0.0 192.168.0.1
> 
> * where 192.168.0.0 is my local host address. This address IS
> IMPORTANT and must be the same as the one found in the hosts file.
> * 192.168.0.1 is just a dummy address

This should be unnecessary. Also, an separate IP address for your own
machine in /etc/hosts is unecessary. You can stick the hostname you
chose (in /etc/sysconfig) as another alias for 127.0.0.1.

I don't ifconfig tun0. Many people I've spoken to have had problems
with ppp when tun0 is ifconfig-ed.

> - Patience... be prepared to wait between 20-30secs after trying to
> access an address (eg ping etc), before any modem activity starts up.

This shouldn't be. Not sure what the cause of this is. If I start a
ping, or anything else, the modem starts up almost immediately. routed
might interfere with it.

> - About the timeout value in ppp.conf. I noticed that the system will
> logon to the ISP even when I do nothing to access any net
> addresses.

If this is the case, *something* is trying to send packets across the
interface. If you start Netscape (even on a blank page), it does
this. Also, if you are running routed (in /etc/sysconfig), that might
be causing this. If user-PPP is your only 'net connection, you
certainly should NOT be running routed. Disable it.

> While it is connected, I have yet to test the timeout value
> to see if it will disconnect after the certain period of time, or stay
> online indefinitely.

It does timeout properly for me. The first time I set up ppp, I
mistook this value to be in minutes. Got bounced off quite quickly.

> You can also try putting the ppp on-demand startup in a script file 

A good place for this is in /etc/rc.local:

  echo -n 'starting local daemons:'

  # put your local stuff here
  /usr/sbin/ppp -auto ondemand >/dev/null 2>&1 && echo -n ' ppp'


-jay