[LARTC] cbq.init for one port on a subnet

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I've tried with the config. file

DEVICE=3Deth0,10Mbit,1Mbit
RATE=3D100Kbit
WEIGHT=3D10Kbit
PRIO=3D5
RULE=3D192.168.0.160/27:6699

only,
It's works fine for me,
Find the stats for the same hereunder,

# ./cbq.init-v0.7.1 start
192.168.0.160/27:6699:   match ip dst 192.168.0.160/27 match ip dport 669=
9=20
0xffff

# ./cbq.init-v0.7.1 stats
### eth0: queueing disciplines

qdisc tbf 5: rate 100Kbit burst 10Kb lat 488.3ms
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

 qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 1924 bytes 28 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 624 undertime 0


### eth0: traffic classes

class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 1924 bytes 28 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 624 undertime 0
class cbq 1:5 parent 1: leaf 5: rate 100Kbit (bounded) prio 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 1.79878e+06 undertime 0

### eth0: filtering rules

filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 8=
00=20
bkt 0 flowid 1:5
  match c0a800a0/ffffffe0 at 16
  match 00001a2b/0000ffff at 20

reg,
Srikanth.

On Wednesday 05 February 2003 09:30 pm, you wrote:
> Hi, Thanks for the quick reply.   I tried that and got an error message
> when I started cbq.
> -----------------------------
> What is "ff"?
> Usage: ... u32 [ match SELECTOR ... ] [ link HTID ] [ classid CLASSID ]
>                [ police POLICE_SPEC ] [ offset OFFSET_SPEC ]
>                [ ht HTID ] [ hashkey HASHKEY_SPEC ]
>                [ sample SAMPLE ]
> or         u32 divisor DIVISOR
>
> Where: SELECTOR :=3D SAMPLE SAMPLE ...
>        SAMPLE :=3D { ip | ip6 | udp | tcp | icmp | u{32|16|8} } SAMPLE_=
ARGS
>        FILTERID :=3D X:Y:Z
> ------------------------------
>
> If you can help me I'd really appreciate it.
>
> Thanks again,
>
> Scott
>
> > Sub:[LARTC] cbq init for one port on a subnet
> >
> > Hello,
> >
> > We use cbq.init to limit bandwidth.  It works great on a per-user bas=
is.
> > Now  I'd like to limit traffic from a netblock to the Internet on por=
t
> > 6699.
> >
> > Network is 192.168.0.160  mask 255.255.255.224
> > eth0 is the gateway
> > eth1 connects the netblock in question
> >
> > Is this the proper syntax;
> >
> > DEVICE=3Deth0,10Mbit,1Mbit
> > RATE=3D100Kbit
> > WEIGHT=3D10Kbit
> > PRIO=3D5
> > RULE=3D6699 192.168.0.160/27,
> >
> >
> > Thanks!
> >
> > Scott
> >
> > Hi! Scott,
> >
> > Your Config. file s'd be
> >
> > DEVICE=3Deth0,10Mbit,1Mbit
> > RATE=3D100Kbit
> > WEIGHT=3D10Kbit
> > PRIO=3D5
> > RULE=3D192.168.0.160/27:6699
> >
> > like this & try.
> >
> > Good Luck.
> >
> > Srikanth.



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux