Hi, The following is the script which I am using to allocate bandwidth to different classes . Somehow I cann't allocate more than 2.4Mbps to a class if I use *bounded* for CBQ in tc (iproute2 April ver) But if I don't use 'bounded'(ie if I share the bandwidth with the other classes) it can go beyond 2.4Mbps and even upto 100Mbps. I tried to allocate 100Mbps bounded, it gives somewhere 99Mbps- okand it works like this till 96Mbps, if I give 50Mbps bounded it allocates only 2.4Mbps Lower than 2.4Mbps its ok and doing its job. ------------------------------------------------------------------- eepro100 network cards are being used on Pentiums with RedHat 6.0, 2.2.5-15 kernel ver =============================================================================== /usr/sbin/tc qdisc add dev eth0 root handle 1: cbq bandwidth 100Mit allot \ 1514 cell 8 avpkt 1000 mpu 64 /usr/src/tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit \ rate 100Mbit allot 1514 cell 8 weight 10Mbit prio 8 maxburst 20 \ avpkt 1000 /usr/sbin/tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate $1 \ weight 100Kbit prio 5 allot 1514 avpkt 1024 mpu 64 bounded /usr/sbin/tc filter add dev eth0 parent 1:0 prio 5 handle 1: u32 divisor \ 256 /usr/sbin/tc filter add dev eth0 parent 1:0 prio 5 u32 ht 1:6: match ip dst 10.1.1.3 \ match tcp dst $2 0xffff classid 1:2 /usr/sbin/tc filter add dev eth0 parent 1:0 prio 5 handle ::1 u32 ht 800:: match ip \ nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at 8 link 1: -------------------------------------------------------------------------------- Thanks in advance for your suggestions Kishore - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
