Skip to contentSkip to conversation

HTB+BRIDGE QUESTION !!!

LARTC tanxuey 1 participant 1 message Jul 18, 2003

lore
Share & tools
lore

tanxuey

author
#0 lore raw

Hi everybody!

Today, I setup a bridge using brctl. my setup as following:

    192.168.2.26 |              |             |
                 |------------- | HTB+BR box  |-------- 192.168.2.18
                 |       eth0   |             | eth1
    192.168.2.29 |              |             |

I want to limit the traffics when i download data from 192.168.2.18 to 26 or 29. My script as following:

tc qdisc add dev eth0 root handle 1: htb default 10

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 10Mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 1Mbit ceil 10Mbit prio 1 tc class add dev eth0 parent 1:1 classid 1:11 htb rate 7Mbit ceil 10Mbit prio 2 tc class add dev eth0 parent 1:1 classid 1:12 htb rate 2Mbit ceil 10Mbit prio 3

tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip dst 192.168.2.26/32 flowid 1:11 tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip dst 192.168.2.29/32 flowid 1:12

26 download from 18,26 can get 900kbytes/s. if 26 and 29 download simultaneously, 26 get 400kbytes/s while 29 get 500kbytes/s .

I had thought 26 gets 875kbytes/s and 29 gets 250kbytes/s.

i do not know why

any idea any sugestion ! please tell me, I really appreciate your help!!!

I have two email accounts. one is [email protected] which has added to your mail list the other is [email protected] that is my company account. I used the wrong account. sorry and sorry for pool english!!!!