*BSD News Article 34731


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!ihnp4.ucsd.edu!news.cerf.net!mvb.saic.com!news.alpha.net!MathWorks.Com!news.kei.com!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!news.iastate.edu!michaelv
From: michaelv@MindBender.HeadCandy.com (Michael L. VanLoon)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Does 'route flush' work?
Date: 18 Aug 1994 18:41:33 GMT
Organization: HeadCandy Associates... Playing with your mind
Lines: 26
Message-ID: <MICHAELV.94Aug18134141@MindBender.HeadCandy.com>
References: <CuqIwJ.7MM@usenet.ucs.indiana.edu>
NNTP-Posting-Host: stingray.cc.iastate.edu
In-reply-to: pitts@mimosa.astro.indiana.edu's message of Thu, 18 Aug 1994 14:29:07 GMT

In article <CuqIwJ.7MM@usenet.ucs.indiana.edu> pitts@mimosa.astro.indiana.edu (Jim Pitts) writes:

[stuff about scripts to start and stop PPP deleted]

   I want to flush the routing table after all this is done.  Trouble is that
   the command 'route flush' does not seem to do anything.

It sounds like you're trying to make things more complicated than they
need to be.  Do you really want to remove *all* routes?  Look at the
pppd man page, and pay attention to the "defaultroute" and "proxyarp"
(if you have more than one machine at home) options.

PPP can automatically insert a default route to your server when it
starts, and remove that route automatically when it stops, if you use
the defaultroute option.

Also, you might look at adding and deleting additional routes with the
/etc/ppp/ip-up and /etc/ppp/ip-down scripts.

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   Michael L. VanLoon     michaelv@HeadCandy.com     michaelv@iastate.edu
  Free your mind and your machine -- NetBSD free un*x for PC/Mac/Amiga/etc.
     Working NetBSD ports: 386+PC, Mac, Amiga, HP300, Sun3, Sun4c, PC532
               In progress: DEC pmax (MIPS R2k/3k), VAX, Sun4m
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -