All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gery Kahn <geryk@sphera.com>
To: lartc@vger.kernel.org
Subject: [LARTC] How to delete configuration
Date: Mon, 21 May 2001 06:20:22 +0000	[thread overview]
Message-ID: <marc-lartc-99042602229678@msgid-missing> (raw)

How to delete configuration? I mean only by
tc qdisc del dev eth0 root
or should i delete from filters and classes and qdisc?


My config script:
#! /bin/sh -x

tc qdisc add dev eth0 root handle 1: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 100Mbit \
rate 100Mbit allot 1514 weight 1Mbit prio 8 maxburst 100 avpkt 1000 \
isolated bounded

tc qdisc add dev eth0 parent 1:1 handle 2: cbq bandwidth 100Mbit avpkt 1000

#class for 192.168.1.5
tc class add dev eth0 parent 2: classid 2:5000 cbq bandwidth 100Mbit \
rate 70Mbit allot 1514 weight 200Kbit prio 2 maxburst 100 avpkt 1000

#class for 192.168.1.6        
tc class add dev eth0 parent 2: classid 2:5001 cbq bandwidth 100Mbit \
rate 10Mbit allot 1514 weight 200Kbit prio 2 maxburst 100 avpkt 1000

tc qdisc add dev eth0 parent 2:5001 tbf rate 10Mbit buffer 45Kb/8 limit 15Kb

tc filter add dev eth0 parent 1: protocol ip prio 6 u32 \
match ip src 192.168.1.5 flowid 1:1
tc filter add dev eth0 parent 1: protocol ip prio 6 u32 \
match ip src 192.168.1.6 flowid 1:1

tc filter add dev eth0 parent 2: protocol ip prio 5 u32 \
match ip src 192.168.1.5 flowid 2:5000
tc filter add dev eth0 parent 2: protocol ip prio 5 u32 \
match ip src 192.168.1.6 flowid 2:5001


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

             reply	other threads:[~2001-05-21  6:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-21  6:20 Gery Kahn [this message]
2001-05-21 19:15 ` [LARTC] How to delete configuration organix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-99042602229678@msgid-missing \
    --to=geryk@sphera.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.