From: Paulo Ricardo Bruck Date: Tue, 31 May 2005 11:30:34 +0000 Subject: [LARTC] QoS and CLASSIFY Message-Id: <1117539035.17943.35.camel@pauloric.intranet> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0675560622==" List-Id: To: lartc@vger.kernel.org --===============0675560622== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-g9Wfiiv7oefFbhywOSJZ" --=-g9Wfiiv7oefFbhywOSJZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Guys After googling a little I couldn't find the correct answer.. When I use : tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.11 flowid 1:30 , I can shape traffic to 1:30.( works like a charm) Now instead tc filter I would like to use CLASSIFY as below: iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.0.5 -j CLASSIFY --set-class 1:30 but when I comment tc filter and include iptables -t mangle..CLASSIFY nothing works. Where Am I wrong?? Scenario: #!/bin/bash # # 128Kbps 192.168.0.1 # <----- eth1 firewall eth0 # internet-adsl-----+squid---------------4 desktops # -----> +QoS 192.168.0.5 # 450Kbps .11 # .12 # .20 # modprobe sch_htb sch_prio sch_sfq cls_u32 tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1:0 htb tc class add dev eth0 parent 1:0 classid 1:1 htb rate 450kbit ceil 450kbit tc class add dev eth0 parent 1:1 classid 1:30 htb rate 80kbit ceil 400kbit tc class add dev eth0 parent 1:1 classid 1:40 htb rate 80kbit ceil 400kbit tc class add dev eth0 parent 1:1 classid 1:50 htb rate 80kbit ceil 400kbit tc class add dev eth0 parent 1:1 classid 1:60 htb rate 80kbit ceil 400kbit tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10 tc qdisc add dev eth0 parent 1:40 handle 40: sfq perturb 10 tc qdisc add dev eth0 parent 1:50 handle 50: sfq perturb 10 tc qdisc add dev eth0 parent 1:60 handle 60: sfq perturb 10 thanks in advanced --=20 Paulo Ricardo Bruck - consultor --=-g9Wfiiv7oefFbhywOSJZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCnEra89ZqUGE0XNMRAvO3AKC6n04Qi+0TCELRfHB7qJ61Vl6AowCcDYIX G+QEI1jl1X2wbX9tDkl0boI= =YRPx -----END PGP SIGNATURE----- --=-g9Wfiiv7oefFbhywOSJZ-- --===============0675560622== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0675560622==--