All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] [Fwd: HTB in 3 levels for shaping on both VLAN and QOS]
@ 2004-04-19 14:13 Johan Christiansen
  0 siblings, 0 replies; only message in thread
From: Johan Christiansen @ 2004-04-19 14:13 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-19 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-19 14:13 [LARTC] [Fwd: HTB in 3 levels for shaping on both VLAN and QOS] Johan Christiansen

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.