Re: [LARTC] Clearing all filters

Linux Advanced Routing and Traffic Control

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

 



On Wed, 11 Jul 2001, Michael T. Babcock wrote:

> I'd like to be able to wipe out all classes and/or filters (like doing
> an ipchains -F for packet filter rules) quickly at the beginning of my
> scripts.  Is there a way to do this that I'm not aware of?

You can do so by deleting the root qdisc for each device.  Thus, supposing
some configuration similar to the following,

  qdisc cbq 1: dev eth1 rate 100Mbit (bounded,isolated) prio no-transmit
  qdisc cbq 2: dev eth2 rate 100Mbit (bounded,isolated) prio no-transmit

you can delete the root qdisc from each device with this command:

  # tc qdisc del dev eth1 root
  # tc qdisc del dev eth2 root

Everything that depends on the root qdisc (which, IIRC, is indeed
everything) will be deleted when the root qdisc is deleted.

HTH, HAND
'james

-- 
James A. Crippen <james@xxxxxxxxxxxx> ,-./-.  Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us   |  |/  | USA, 61.2069 N, 149.766 W,
Y = \f.(\x.f(xx)) (\x.f(xx))         |  |\  | Earth, Sol System,
Y(F) = F(Y(F))                        \_,-_/  Milky Way.




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux