Menu

#16 No errors but no results...

open
nobody
None
5
2004-04-11
2004-04-11
Anonymous
No

in my /etc/sysconfig/cbq/ I have 2 files cbq-0650.in
and cbq-0651.out

eth0 is my external, internet connected interface, and
eth1 is my internal LAN interface, and I am attempting
to restrict the bandwidth usage by one of the internal
IP's.

cbq-0650.in looks like:
DEVICE=eth0,100Mbit,10Mbit
RATE=650Kbit
WEIGHT=65Kbit
PRIO=5
RULE=192.168.1.10

cbq-0651.out looks like:
DEVICE=eth1,100Mbit,10Mbit
RATE=200Kbit
WEIGHT=20Kbit
PRIO=5
RULE=192.168.1.10,

I do a ./cbq.init-v0.7.3 start then check the stats and
even as that IP is online and transfering data the
stats show that no packets are moving through those
classes and the bandwidth is therefore not being
restricted.

Here is the output of the stats.

### eth0: traffic classes

class cbq 1: root rate 100Mbit (bounded,isolated) prio
no-transmit
Sent 266035 bytes 199 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 77 undertime 0
class cbq 1:650 parent 1: rate 650Kbit (bounded) prio 5
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 347113 undertime 0

### eth1: queueing disciplines

qdisc cbq 1: rate 100Mbit (bounded,isolated) prio
no-transmit
Sent 24130 bytes 105 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 77 undertime 0

### eth1: traffic classes

class cbq 1: root rate 100Mbit (bounded,isolated) prio
no-transmit
Sent 24184 bytes 106 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 77 undertime 0
class cbq 1:651 parent 1: rate 200Kbit (bounded) prio 5
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 1.13311e+06 undertime 0

I am entirely unsure as to what the problem may be as
the configuration seems to be entirely in order.

This is running on a recently built 2.6.5 kernel.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I'm running a very similar deal and it works for me although
    only in one direction (limits download from the internet to
    that ip). The difference is that my eth0 RULE line is the
    one that ends in a comma.

     
  • Ventsislav Genchev

    Logged In: YES
    user_id=1010275

    same problem described on fedora's bugzilla id: 129397

    check out http://bugzilla.redhat.com

    the problems is in the kernel, not in cbq.init ...

    PS: to be certain check the messages log and see if you have
    a massage telling you should update your iproute2 package...
    or try to execute the shape rules manually... (you can check
    them by typing -> cbq.init compile)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.