From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin A. Brown" Date: Tue, 19 Nov 2002 22:05:24 +0000 Subject: Re: [LARTC] reset rules ? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Fabio, I use a short snippet of shell to do it: # ip rule show | grep -Ev '^(0|3276(6|7)):' \ > | while read PRIO RULE ; do \ > ip rule del prio ${PRIO%:} $RULE > done I'm not aware of a more elegant way to do this. Anybody else? -Martin On Tue, 19 Nov 2002, fabio wrote: : Dear All : Do you know if its possible to reset the rule with a single command or : if I must delete manually all the rule ? : thanks : : Fabien : : _______________________________________________ : LARTC mailing list / LARTC@mailman.ds9a.nl : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ : -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/