All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc+udp priority
@ 2002-03-25 11:56 George Tsuladze
  2002-03-25 12:31 ` Martin Devera
  2002-03-25 13:10 ` George Tsuladze
  0 siblings, 2 replies; 3+ messages in thread
From: George Tsuladze @ 2002-03-25 11:56 UTC (permalink / raw)
  To: lartc

here is my skript.
i want to priorize on  first udp second icmp then tcp then any other how?
does "tc qdisc add dev eth0 parent 1:12 handle 20: prio 1 udp " priorize 
udp?

tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
#eht0 rules
tc qdisc add dev eth0 root handle 1: htb default 12
#shape interface eth0
tc class add dev eth0 parent 1: classid 1:1 htb rate 128kbit ceil 128kbit
#voip class
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 128kbit ceil 128kbit
#staff class
tc class add dev eth0 parent 1:1  classid 1:11 htb rate 30kbit ceil 128kbit
tc class add dev eth0 parent 1:1  classid 1:13 htb rate 30kbit ceil 128kbit
#mark voip class
tc filter add dev eth0 parent 1: protocol ip prio 1 handle 2 fw classid 1:12
#mark staff class
tc filter add dev eth0 parent 1: protocol ip prio 1 handle 1 fw classid 1:11
tc filter add dev eth0 parent 1: protocol ip prio 1 handle 3 fw classid 1:13
#add qdisc discipline
tc qdisc add dev eth0 parent 1:11 handle 30: sfq perturb 10
tc qdisc add dev eth0 parent 1:12 handle 20: sfq perturb 10
#eth1 rules
tc qdisc add dev eth1 root handle 1: htb default 12
#shape eth1 interface
tc class add dev eth1 parent 1: classid 1:1 htb rate 128kbit ceil 128kbit
#voip class
tc class add dev eth1 parent 1:1 classid 1:12 htb rate 128kbit ceil 128kbit
#staff class
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 30kbit ceil 128kbit
tc class add dev eth1 parent 1:1 classid 1:13 htb rate 30kbit ceil 128kbit
#mark voip class
tc filter add dev eth1 parent 1: protocol ip prio 1 handle 12 fw classid 
1:12
#mark staff class
tc filter add dev eth1 parent 1: protocol ip prio 1 handle 11 fw classid 
1:11
tc filter add dev eth1 parent 1: protocol ip prio 1 handle 13 fw classid 
1:13
#add qdisc discipline
tc qdisc add dev eth1 parent 1:11 handle 30: sfq perturb 10
tc qdisc add dev eth1 parent 1:12 handle 20: sfq perturb 10


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-25 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-25 11:56 [LARTC] tc+udp priority George Tsuladze
2002-03-25 12:31 ` Martin Devera
2002-03-25 13:10 ` George Tsuladze

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.