--yvn(rSM3:R=.A(LG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Here''s a tcstart I use that uses cbq.. I have read the advantages of htb, but.. I already had this functional, and it doesn''t require kernel patching... So far, it seems to work just fine... I leave the commented stuff in the bottom, and adjust as needed ;) echo " outbound" run_tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000 run_tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 run_tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 10Mbit rate 64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:300 cbq bandwidth 10Mbit rate 192Kbit allot 1514 weight 19Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:400 cbq bandwidth 10Mbit rate 256Kbit allot 1514 weight 25Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:200 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:300 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:400 sfq quantum 1514b perturb 15 # 64k run_tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst 172.16.1.5 flowid 10:100 # 128 k echo " outbound" run_tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000 run_tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 run_tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 10Mbit rate 64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:300 cbq bandwidth 10Mbit rate 192Kbit allot 1514 weight 19Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth1 parent 10:1 classid 10:400 cbq bandwidth 10Mbit rate 256Kbit allot 1514 weight 25Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:200 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:300 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth1 parent 10:400 sfq quantum 1514b perturb 15 # 64k run_tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst 172.16.1.5 flowid 10:100 # 128 k #run_tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip #dst 172.16.1.3 flowid 10:400 run_tc filter add dev eth1 parent 10:0 #protocol ip prio 100 u32 match ip dst 172.16.1.5 flowid 10:400 # 192k # run_tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip # dst 172.16.1.3 flowid 10:300 256k # run_tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip # dst 172.16.1.3 flowid 10:400 echo " inbound" run_tc qdisc add dev eth0 root handle 20: cbq bandwidth 10Mbit avpkt 1000 run_tc class add dev eth0 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 run_tc class add dev eth0 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate 64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth0 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth0 parent 20:1 classid 20:300 cbq bandwidth 10Mbit rate 192Kbit allot 1514 weight 19Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc class add dev eth0 parent 20:1 classid 20:400 cbq bandwidth 10Mbit rate 256Kbit allot 1514 weight 25Kbit prio 5 maxburst 20 avpkt 1000 bounded run_tc qdisc add dev eth0 parent 20:100 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth0 parent 20:200 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth0 parent 20:300 sfq quantum 1514b perturb 15 run_tc qdisc add dev eth0 parent 20:400 sfq quantum 1514b perturb 15 # 64k run_tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip dst 172.16.1.5 flowid 20:100 # 128k #run_tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip #dst 172.16.1.3 flowid 20:400 run_tc filter add dev eth0 parent 20:0 #protocol ip prio 100 u32 match ip dst 172.16.1.5 flowid 20:400 # 192k # run_tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip # dst 172.16.1.3 flowid 20:300 256k # run_tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip # dst 172.16.1.3 flowid 20:400 # --- Homer Parker http://www.homershut.net telnet://bbs.homershut.net --yvn(rSM3:R=.A(LG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE94IYGrgrN227HZ+8RAgq6AJ9v/q9VShGpn8+SmmxeMu+RQx9mAACgiGoC qMNjgiwcDPAoT4JIEsZBj2A=lX6r -----END PGP SIGNATURE----- --yvn(rSM3:R=.A(LG--
--On Sunday, November 24, 2002 01:55:47 AM -0600 Homer Parker <hparker@homershut.net> wrote:> Here''s a tcstart I use that uses cbq.. I have read the advantages of htb, > but.. I already had this functional, and it doesn''t require kernel > patching...If you run RH8.0, HTB doesn''t require kernel patching either but you still have to install the ''tc'' utility from the HTB web site. -Tom -- Tom Eastep \ Shorewall - iptables made easy AIM: tmeastep \ http://shorewall.sf.net ICQ: #60745924 \ teastep@shorewall.net
Tom Eastep wrote:>> Here''s a tcstart I use that uses cbq.. I have read the advantages >> of htb, >> but.. I already had this functional, and it doesn''t require kernel >> patching... > > > If you run RH8.0, HTB doesn''t require kernel patching either but you > still have to install the ''tc'' utility from the HTB web site.Does anybody know if this is also for Mandrake 9.0 ? -- Groeten, Peter -- Every morning is the dawn of a new error --- --- Heb je een Sony Digital video camera ? --- Kijk eens op http://www.dvin.org --- Kijk ook op http://www.lindeman.org --- ICQ 22383596 --- Uptime lindeman.org:17 days, 19 hours and 15 minutes, 4 users logged in.
--On Sunday, November 24, 2002 06:01:29 PM +0100 Peter Lindeman <peter@lindeman.nl> wrote:> Tom Eastep wrote: > >>> Here''s a tcstart I use that uses cbq.. I have read the advantages >>> of htb, >>> but.. I already had this functional, and it doesn''t require kernel >>> patching... >> >> >> If you run RH8.0, HTB doesn''t require kernel patching either but you >> still have to install the ''tc'' utility from the HTB web site. > > Does anybody know if this is also for Mandrake 9.0 ? >ls /lib/modules/`uname -r`/kernel/net/sched/sch_htb.o -Tom -- Tom Eastep \ Shorewall - iptables made easy AIM: tmeastep \ http://shorewall.sf.net ICQ: #60745924 \ teastep@shorewall.net
--=.d/(:v9)6qZfoR7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 24 Nov 2002 07:52:12 -0800 Tom Eastep <teastep@shorewall.net> wrote....> > > --On Sunday, November 24, 2002 01:55:47 AM -0600 Homer Parker > <hparker@homershut.net> wrote: > > > Here''s a tcstart I use that uses cbq.. I have read the advantages > > of htb, > > but.. I already had this functional, and it doesn''t require kernel > > patching... > > If you run RH8.0, HTB doesn''t require kernel patching either but you > still have to install the ''tc'' utility from the HTB web site.I never run a .0 from RedHat ;) --- Homer Parker http://www.homershut.net telnet://bbs.homershut.net This e-mail message is 100% Microsoft free! WARNING: THIS ACCOUNT BELONGS TO A RABID ANTI-SPAMMER NET-NAZI DOT-COMMUNIST. /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ --=.d/(:v9)6qZfoR7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE94Q0ArgrN227HZ+8RAm86AKDayrwMLMDkP05VAjqdjSizYh6FTgCfVPQG PJ/QNsRS77qfs825M6YfQfI=zB/j -----END PGP SIGNATURE----- --=.d/(:v9)6qZfoR7--
Tom Eastep wrote:>> Does anybody know if this is also for Mandrake 9.0 ? > > ls /lib/modules/`uname -r`/kernel/net/sched/sch_htb.oThanks, it''s there. -- Groeten, Peter -- Invalid information found in the phone book. --- --- Heb je een Sony Digital video camera ? --- Kijk eens op http://www.dvin.org --- Kijk ook op http://www.lindeman.org --- ICQ 22383596 --- Uptime lindeman.org:18 days, 9 hours and 0 minutes, 4 users logged in.