All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Christiansen <lartc@haz.dk>
To: lartc@vger.kernel.org
Subject: [LARTC] [Fwd: HTB in 3 levels for shaping on both VLAN and QOS]
Date: Mon, 19 Apr 2004 14:13:19 +0000	[thread overview]
Message-ID: <4083DE7F.9090909@haz.dk> (raw)

I have 4 VLANs which i would like to give different priority on our

internet connection. I would also like to shape traffic, according to 
its FWmark, in EACH VLAN. I have created this setup, with a HTB classes 
in a HTB class in a HTB class. (3 levels).

           ROOT IMQ1 QDISC 1:0
                   |
                  HTB 1:1                    (HTB AT LINE UPPER LIMIT)
                   |
   /----------------------------------\
   |          |           |           |
HTB 1:11   HTB 1:12    HTB 1:13    HTB 1:14  (HTB CLASS FOR EACH VLAN)
   |          |           |           |
_______    _______     _______     _______
|||||||    |||||||     |||||||     |||||||   (HTB CLASSES)
'''''''    '''''''     '''''''     '''''''
|||||||    |||||||     |||||||     |||||||   (SFQ QDISCS)

I fist filter on source IP-Address:
tc filter add dev imq1 protocol ip parent 1:0 prio 1 u32 match ip src 
xxx.xxx.xxx.0/24  classid 1:11

I then filter on fwmark:
tc filter add dev imq1 parent 1:11 protocol ip prio 1 handle 20 fw 
classid 1:110

Can anyone tell me if this is a good or bad idea, or if there is a 
better way to do it?

Sincerely,
Johan Christiansen
HazarT Consult
Denmark



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

                 reply	other threads:[~2004-04-19 14:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4083DE7F.9090909@haz.dk \
    --to=lartc@haz.dk \
    --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.