If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Mon Oct 1 14:43:42 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!newshub2.home.com!news.home.com!news1.rdc1.nj.home.com.POSTED!not-for-mail
From: "Brian K. White" <brian@aljex.com>
Newsgroups: comp.unix.sco.misc
References: <9p18hr$jkc$1@neptunium.btinternet.com> <bq19rt4dcagad7gu1r3pn8n369gcmqktuf@4ax.com> <DE8t7.7910$c8.1076376@news1.rdc1.nj.home.com> <vsubrts64madmu4d27leivtbtpqditkd5d@4ax.com> <1Cqt7.13657$c8.1749739@news1.rdc1.nj.home.com> <m5hert4to4ug77897cq66uf0of4sblq0j5@4ax.com>
Subject: Re: Routing question
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <0HIt7.18709$c8.2382392@news1.rdc1.nj.home.com>
Date: Sun, 30 Sep 2001 17:32:44 GMT
NNTP-Posting-Host: 24.253.240.158
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.nj.home.com 1001871164 24.253.240.158 (Sun, 30 Sep 2001 10:32:44 PDT)
NNTP-Posting-Date: Sun, 30 Sep 2001 10:32:44 PDT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103950
> >In any event, has anybody told him yet that he can put commands in
> >/etc/ppphook.sh that add-remove routes and manipulate pre-made copies of
> >/etc/hosts and /etc/resolv.conf so that these files that I'm saying
should
> >be able to go without being changed all the time, can also be changed
> >automatically whenever pppattach and ifdown ppp0 is run ?
>
> I usually add them to whatever script calls the dialer for a specific
> ISP. Putting it in /etc/ppphook.sh will work, but will need to be
> stuffed full of conditionals for each ISP. Methinks seperate files
> for seperate ISP's would be better.
Yeah me too, but then we are into describing how to make a ppp up/down
script modeled after quickppp found on tony lawrences site. not trivial imo.
It seems putting the commands in such a start/stop script makes them happen
faster too. ppphook seems to take an inexplicably long time to be called
after the connection is up.
actually, taking another look at ppphook just now... it's trivial to do the
default route from there, it's just
route add default $6
well, as long as you are only using ppp to initiate connections to the
internet. If you had a net connection, but wanted to start a ppp connection
to a remote office for some non-internet task, this would screw up the
default route, which should have been left alone in that case.
But the nameservers would be completely impractical from there unless you
are lucky enough to be able to get away with just setting the nameserver to
the ip of the other end of the ppp link. really need an up/down script for
each isp otherwise. it's easy from there.
--
Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 2 | 3 | 11 | 131 | 882 |
/Bofcusm/841.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Add your comments