Re: lug-bg: tc and iptables mark problem
- Subject: Re: lug-bg: tc and iptables mark problem
- From: danchev@email.domain.hidden (George Danchev)
- Date: Tue, 15 Apr 2003 10:18:07 +0300
On 14 04 2003 20:39, Dragomir Zhelev wrote:
--cut--
<em class="quotelev1">> tc qdisc del dev eth0 root
<em class="quotelev1">> tc qdisc add dev eth0 root handle 2: cbq bandwidth 10Mbit avpkt 1000 cell 8
<em class="quotelev1">>
<em class="quotelev1">> iptables -F -t mangle
<em class="quotelev1">> iptables -X -t mangle
<em class="quotelev1">>
<em class="quotelev1">> tc qdisc del dev eth1 root
<em class="quotelev1">> tc qdisc add dev eth1 root handle 1: cbq bandwidth 10Mbit avpkt 1000 cell 8
<em class="quotelev1">>
<em class="quotelev1">> tc class add dev eth1 parent 1:0 classid 1:01 cbq bandwidth 10Mbps rate
<em class="quotelev1">> 10Kbit weight 1Kbit allot 1514 cell 8 maxburst 20 avpkt 1000 bounded tc
<em class="quotelev1">> qdisc add dev eth1 parent 1:01 tbf rate 10Kbit buffer 20Kb/8 limit 12Kb
<em class="quotelev1">> mtu 1500 tc filter add dev eth1 protocol ip parent 1:0 prio 8 handle 1 fw
<em class="quotelev1">> flowid 1:01 iptables -A PREROUTING -i eth0 -d 192.168.0.2 -t mangle -j MARK
<em class="quotelev1">> --set-mark 1
oh az nerazbiram (gledam4ei v net listata maj nqmaha vreme da consult), no in
my humble opinion maj imash bad syntax za Token Bucket Filter. Vmesto Kbit,
maj trebe da e kbit. Osven tova tova "mtu" ne e li golqmo ili "quantum"-a ne
ti e set-nat pravilno? (ot LARTC howto za Stochastic Fairness
Queueing,neznamdali vazhi i za TBF: Amount of bytes a stream is allowed to
dequeue before the next queue gets a turn. Defaults to 1 maximum sized packet
(MTU-sized). Do not set below the MTU!)... ama ne to kvanta si s kvant,
zavsi4ki trebe da ukazva ednakvovliqniezavsi4ki queue disciplines :-/)
<em class="quotelev1">> Apr 14 20:36:47 fanatici kernel: CBQ: class 00010001 has bad quantum==0,
<em class="quotelev1">> repaired. Apr 14 20:36:47 fanatici kernel: CBQ: class 00010001 has bad
<em class="quotelev1">> quantum==0, repaired. Apr 14 20:36:47 fanatici kernel: CBQ: class 00010002
<em class="quotelev1">> has bad quantum==0, repaired. Apr 14 20:36:47 fanatici kernel: CBQ: class
<em class="quotelev1">> 00010001 has bad quantum==0, repaired. Apr 14 20:36:47 fanatici kernel:
<em class="quotelev1">> CBQ: class 00010002 has bad quantum==0, repaired. Apr 14 20:36:47 fanatici
<em class="quotelev1">> kernel: CBQ: class 00010003 has bad quantum==0, repaired.
e da eto i CBQ discipinata pla4e za bad quantum. Porazgledaj pak LARTC za
syntax-a na syotvetnite qdics's. Ina4e majne pravish logi4eska greshka... a
samo 1 vypros: ne e pravilnopyrvo da se --set-mark-va v PREROUTING (kakto si
go napravil) i posle da se queue-va s sysotvetnata disciplina, stoto ti maj
pyrvopodavash qdics commands i posle --set-mark-vash? ili kernela samsi gi
opravq tiq raboti ... nesymmnogo naqsno tuka.
<em class="quotelev1">> distribuciqta mi e slackware 9.0 makari che ne mislq che tova ima nqkakvo
<em class="quotelev1">> znachenie
v slu4aq nikakvo.
--
pub 4096R/0E4BD0AB 2003-03-18 (no comments) <danchev_at_spnet.net>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB <keyserver.bu.edu>
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|