Skip to contentSkip to conversation

[LARTC] [Fwd: HTB in 3 levels for shaping on both VLAN and QOS]

LARTC Johan Christiansen 1 participant 1 message Apr 19, 2004

lore
Share & tools
lore
#0 lore 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/