*BSD News Article 84943


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!mvb.saic.com!pacifier!news.sba.com!feeder.chicago.cic.net!news-w.ans.net!newsfeeds.ans.net!lantana.singnet.com.sg!usenet
From: light@singnet.com.sg (Jason Tseng)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Tips : Dynamic PPP On-Demand Setup
Date: Sat, 14 Dec 1996 18:45:25 GMT
Organization: Singapore Telecom Internet Service
Lines: 35
Message-ID: <58t4j9$qnm@lantana.singnet.com.sg>
References: <58jrqe$vks@lantana.singnet.com.sg> <87k9qnaglm.fsf@luddite.org>
NNTP-Posting-Host: ts900-5323.singnet.com.sg
X-Newsreader: Forte Free Agent 1.0.82
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32548

Jay Sachs <sachs@interactive.net> wrote:


>> * 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 dont know if this has any implications. but i always get
"SIOCAIFADDR:Device not configured" when i start ppp in auto mode.

so what is happening now, is that i need to ifconfig (not in
sysconfig) tun0 before calling ppp -auto. otherwise, nothing happens
at all even after a few minutes from my first ping. setting "route=NO"
will had the same effect even after ifconfig-uring tun0, so i have to
leave it as "route=routed". 

in this configuration, the modem doesnt seem to hangup after
connecting and it also doesnt really dial 'ondemad' but rather a short
while after my first ping.