cancel
Showing results for 
Search instead for 
Did you mean: 

HTB mutiple session

 
amzad
Occasional Contributor

HTB mutiple session

Dear Recepent

I am using 3 lines for dedicat B/W like:
i)tc class add dev eth1 parent 1:1 classid 1:7 htb rate 1kbit ceil 1kbit

ii)tc qdisc add dev eth1 parent 1:7 handle 70: sfq

iii)tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.133 flowid 1:7

Now i want to dedicate B/W multiple IP and MAC address. What is the formate for multiple IP and MAC address ?

Thanks

amzad
1 REPLY
Aashique
Honored Contributor

Re: HTB mutiple session

Hi amzad,
If you want to assign dedicated BW to multiple IP then its better to make a group of IP.

upload
==========
/sbin/tc qdisc add dev eth0 root handle 1: htb default 99

/sbin/tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit ceil
100Mbit
/sbin/tc class add dev eth0 parent 1:1 classid 1:101 htb rate 512Kbit
ceil 512Kbit
/sbin/tc qdisc add dev eth0 parent 1:101 handle 105: pfifo limit 10
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 8 u32 match \
ip src 203.188.244.163/32 flowid 1:101

download
=============
/sbin/tc qdisc add dev eth1 root handle 10: htb default 99

/sbin/tc class add dev eth1 parent 10: classid 10:1 htb rate 100Mbit
ceil 100Mbit
/sbin/tc class add dev eth1 parent 10:1 classid 10:1001 htb rate
1024Kbit ceil 1024Kbit
/sbin/tc qdisc add dev eth1 parent 10:1001 handle 1005: pfifo limit 10
/sbin/tc filter add dev eth1 protocol ip parent 10:0 prio 8 u32 match \
ip dst 203.188.244.163/32 flowid 10:1001


Thanks & Regards

Aashique