[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Whereami with PPP?

On Mon, 2003-02-24 at 18:40, Matej Cepl wrote:
> Matej Cepl wrote:
> > > Realistically I think the best way would be to run whereami
> > > in the up/down hooks with --hint options used to restrict
> > > the detection rulesets.
> > 
> > I have created these two scripts (saved to /etc/ppp/ip-up.d/
> > and /etc/ppp/ip-down.d/ respectively) and all seems to be well.
> Take back -- it doesn't work. I do not know why, but after
> running whereami with attached configuration files ping (or dig,
> host, fping, whichever of them) is not able to make Internet name
> resolution (from smtp.surfbest.net to
> Do you have any idea, what may be the reason?

The problem will most likely be that "testping" is written to be very
fast by using options which are suited to pinging machines on a 10Mb or
better LAN.

You should probably:

 cd /usr/share/whereami/tests
 cp testping testppping
 vi testppping

Change "fping -a -B2 -i5 -r5 -t30" to something like "fping -a" because
the default options are much more suited to pinging across slow links.

Then you can use testppping in your "if ppp" block rather than testping.

Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/         PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201     MOB: +64(21)635-694    OFFICE: +64(4)499-2267
           Survey for nothing with http://survey.net.nz/ 

Reply to: