[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Examples broken?
Hi,
Has anyone got the diffserv examples to work in the latest distribution? My
set-up is exactly as directed from the HOWTO with linux 2.2.10 with version
6 patches and iproute2-2.2.4-now-ss990630.tar.gz
This is the script I'm trying to get to work:
tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index
tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift
2
tc qdisc add dev eth1 parent 1:0 handle 2:0 cbq bandwidth 10Mbit cell 8
avpkt 1000 mpu 64
tc class add dev eth1 parent 2:0 classid 2:1 cbq bandwidth 10Mbit rate
1500Kbit avpkt 1000 prio 1 bounded isolated allot 1514 weight 1 maxburst 10
tc qdisc add dev eth1 parent 2:1 pfifo limit 5
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 0x2e tcindex
classid 2:1 pass_on
tc class add dev eth1 parent 2:0 classid 2:2 cbq bandwidth 10Mbit rate 5Mbit
avpkt 1000 prio 7 allot 1514 weight 1 maxburst 21 borrow split 2:0 defmap
0xffff
tc qdisc add dev eth1 parent 2:2 red limit 60KB min 15KB max 45KB burst 20
avpkt 1000 bandwidth 10Mbit probability 0.4
tc filter add dev eth1 parent 2:0 protocol ip prio 2 handle 0 tcindex mask 0
classid 2:2 pass_on
All I get when I try to apply the filter on the second line is:
[root@10A ~]# tc qdisc add dev eth1 handle 1:0 root dsmark indices 64
set_tc_index
[root@10A ~]# tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex
mask 0xfc shift 2
RTNETLINK answers: Invalid argument
[root@10A ~]# lsmod
Module Size Used by
nfs 27944 1 (autoclean)
lockd 29000 1 (autoclean) [nfs]
sunrpc 48680 1 (autoclean) [nfs lockd]
cls_tcindex 3616 0 (autoclean) (unused)
sch_dsmark 3064 1 (autoclean)
ne 6004 2 (autoclean)
8390 5944 0 (autoclean) [ne]
3c509 5372 1 (autoclean)
[root@10A ~]# tc -s qdisc
qdisc dsmark 1: dev eth0 indices 0x0040 set_tc_index
Sent 7194 bytes 57 pkts (dropped 0, overlimits 0)
[root@10A ~]#
Thanks
Duncan Cameron
Senior Software Engineer
Smart Network Technology
Nortel Networks, London Road,
Harlow, Essex, CM17 9NA.
Tel: +44(0)1279 403137
mailto:dcam@nortelnetworks.com <mailto:dcam@nortelnetworks.com>
http://www.nortelnetworks.com <http://www.nortelnetworks.com>