From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Christiansen Date: Mon, 19 Apr 2004 14:13:19 +0000 Subject: [LARTC] [Fwd: HTB in 3 levels for shaping on both VLAN and QOS] Message-Id: <4083DE7F.9090909@haz.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/