From: rupak shrestha Date: Tue, 20 Dec 2005 09:37:03 +0000 Subject: [LARTC] Will this work for htb Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0143240553==" List-Id: To: lartc@vger.kernel.org --===============0143240553== Content-Type: multipart/alternative; boundary="----=_Part_3364_8466024.1135071423682" ------=_Part_3364_8466024.1135071423682 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have a wireless internet connection.the nat is done by linux machine. eth0----lan eth1---service-provider now the script.. tc qdisc add dev eth0 root handle 1: htb default 12 tc class add dev eth0 parent 1: classid 1:1 htb rate 512kbps ceil 512kbps tc class add dev eth0 parent 1:1 classid 1:10 htb rate 384kbps ceil 512kbps-----Admin-Network tc class add dev eth0 parent 1:1 classid 1:11 htb rate 64kbps ceil 256kbps------cyber-Cafe tc class add dev eth0 parent 1:1 classid 1:12 htb rate 32kbps ceil 32kbps-------Constructions tc class add dev eth0 parent 1:1 classid 1:13 htb rate 32kbps ceil 32kbps--------Consultants tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 202.79.x.x match ip 0xffff flowid 1:10 tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 202.80.x.x match ip 0xffff flowid 1:11 tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 202.81.x.x match ip 0xffff flowid 1:12 tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 202.82.x.x match ip 0xffff flowid 1:13 Now i am going to apply this.But i expect the folowing Results.Will it be fulfilled. 1.I am not sure if i have to apply it eth0 or eth1.Correct me if i am wrong= . 2.I want to apply this for upload and download as well.Will the above be effective for both.? 3.I am using fedora core4. so do i have to install any other additional packages like iproute,htb or any thing else?But i can move to redhat9 if i don't have to install any other things. 4.match ip 0xffff ---Does this mean match the IP with the given mac address= ? 5.prio 1 u32 ----what does this mean? Thanks in Adv ------=_Part_3364_8466024.1135071423682 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

I have a wireless internet connection.the nat is done by linux machine.<= br>eth0----lan
eth1---service-provider

now the script..

tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev = eth0 parent 1: classid 1:1 htb rate 512kbps ceil 512kbps
tc class add d= ev eth0 parent 1:1 classid 1:10 htb rate 384kbps ceil 512kbps-----Admin-Net= work
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 64kbps ceil 256k= bps------cyber-Cafe
tc class add dev eth0 parent 1:1 classid 1:12 htb ra= te 32kbps ceil 32kbps-------Constructions
tc class add dev eth0 parent 1= :1 classid 1:13 htb rate 32kbps ceil 32kbps--------Consultants

tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 20= 2.79.x.x match ip 0xffff flowid 1:10
tc filter add dev eth0 protocol ip = parent 1:0 prio 1 u32 match ip src 202.80.x.x match ip 0xffff flowid 1:11
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 2= 02.81.x.x match ip 0xffff flowid 1:12
tc filter add dev eth0 protocol ip= parent 1:0 prio 1 u32 match ip src 202.82.x.x match ip 0xffff flowid 1:13


Now i am going to apply this.But i expect the folowing Results.Will = it be fulfilled.

1.I am not sure if i have to apply it eth0 or eth1.Correct me if i am = wrong.
2.I want to apply this for upload and download as well.Will the a= bove be effective for both.?
3.I am using fedora core4. so do i have to = install any other additional packages like iproute,htb or any thing else?Bu= t i can move to redhat9 if i don't have to install any other things.
4.match ip 0xffff ---Does this mean match the IP with the given mac add= ress?
5.prio 1 u32 ----what does this mean?
Thanks in Adv
------=_Part_3364_8466024.1135071423682-- --===============0143240553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0143240553==--