Usage: tc filter [ add | del | change | get ] dev STRING [ pref PRIO ] [ protocol PROTO ] [ estimator INTERVAL TIME_CONSTANT ] [ root | classid CLASSID ] [ handle FILTERID ] [ [ FILTER_TYPE ] [ help | OPTIONS ] ] tc filter show [ dev STRING ] [ root | parent CLASSID ] Where: FILTER_TYPE := { rsvp | u32 | fw | route | etc. } FILTERID := ... format depends on classifier, see there OPTIONS := ... try tc filter add /desired FILTER_KIND/ help
Usage: ... fw [ classid CLASSID ] [ police POLICE_SPEC ] POLICE_SPEC := ... look at TBF CLASSID := X:Y
tc filter add dev eth1 protocol ip parent 2:0 prio 1 \ u32 match ip dport 23 0xffff flowid 2:2 tc filter add dev eth1 protocol ip parent 2:0 prio 1 \ u32 match u8 0 0xff at 2 flowid 2:3
tc qdisc add dev eth1 handle 1: root tbf limit 30k burst 10k rate 256kbit
tc qdisc add dev eth1 handle 2: parent 1:1 wrr tc class add dev eth1 classid 2:1 wrr quantum 1000 tc class add dev eth1 classid 2:2 wrr quantum 300 tc class add dev eth1 classid 2:3 wrr quantum 1500
tc qdisc add dev eth1 handle 10: parent 2:1 sfq perturb 10 tc qdisc add dev eth1 handle 20: parent 2:2 sfq tc qdisc add dev eth1 handle 30: parent 2:3 sfq
tc qdisc add dev lo root prio bands 2 priomap 0 1 0 0
tc qdisc add dev lo root pfifo limit 10
tc qdisc add eth1 root handle 1: red limit 60KB min 15KB max 45KB \ burst 20 avpkt 1000 bandwidth 256kbit probability 0.4
tc qdisc add dev eth1 root handle 1: cbq bandwidth 256kbit allot 1514 \ cell 8 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 256kbit rate 64kbit \ allot 1514 cell 8 weight 64kbit prio 3 maxburst 20 avpkt 1000 bounded
tc qdisc add dsmark incides INDICES