[ SlackList ] [ WkikiSlack ]



htb - ruch od klienta

From: hod <hod@zabki.waw.pl>
Date: Wed Aug 20 2003 - 15:40:25 CEST
[slacklist] htb - ruch od klienta

witam
wlasnie zaczalem sie bawic htb no i niby wszystko = powinno byc git ale
nie ogranicza mi ruchu od klienta
klient chodzi na interfejsie eth1 a moje regolki = wygladaja tak :

#eth1

tc qdisc del root dev eth1
tc qdisc add dev eth1 root handle 10:0 htb default = 20

#main class

tc class add dev eth1 parent 10:0 classid 10:1 htb = rate 100mbit

#class

tc class add dev eth1 parent 10:1 classid 10:10 htb = rate 8kbit ceil 128kbit

#filter

tc filter add dev eth1 parent 10:0 protocol ip u32 = match ip dst
192.168.5.10 flowid 10:10

#eth0

tc qdisc del root dev eth0
tc qdisc add dev eth0 root handle 30:0 htb default = 22


#main class
tc class add dev eth0 parent 30:0 classid 30:1 htb = rate 100mbit

#tc class add dev eth0 parent 30:1 classid 30:10 htb = rate 64kbit ceil 64kbit
tc class add dev eth0 parent 30:10 classid 30:11 htb = rate 24kbit ceil 32kbit

#filter
tc filter add dev eth0 parent 30:0 protocol ip u32 = match ip dst
192.168.5.10 flowid 30:11



Received on Sat Feb 21 03:39:50 2004
This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014