On Fri, May 31, 2002 at 10:41:04AM -0700, David Talkington wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Apolinaras Sinkevicius wrote:
> 
> >Well. I would not call myself a wizard in Linux, so I
> >need a bit more help. Please...
> 
> I haven't used those tools.  I'm sure you'll find lots of good reading
> in the kernel docs for those features, so I'd start there ...

/usr/share/doc/iproute-2.4.7/README.iproute2   (On RH7.3). 
/usr/share/doc/shapecfg-2.2.12/README.cbq
/etc/sysconfig/cbq

http://www.linuxdoc.org/HOWTO/Adv-Routing-HOWTO.html
/etc/sysconfig/cbq/cbq-0000.example

Its not really for beginners, though that HOWTO has good examples.
Excerpts from something lifted from it:


 # shape everything at $UPLINK speed - this prevents huge queues in your
 # DSL modem which destroy latency:
 # main class
 $TC class add dev $DEV parent 1: classid 1:1 cbq rate ${UPLINK}kbit \
 allot 1500 prio 5 bounded isolated

 # high prio class 1:10:
 $TC class add dev $DEV parent 1:1 classid 1:10 cbq rate ${UPLINK}kbit \
    allot 1600 prio 1 avpkt 1000

 # bulk and default class 1:20 - gets slightly less traffic,
 # and a lower priority:
 $TC class add dev $DEV parent 1:1 classid 1:20 cbq rate $[9*$UPLINK/10]kbit \
    allot 1600 prio 2 avpkt 1000

 # both get Stochastic Fairness:
 $TC qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
 $TC qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10

 # start filters
 # TOS Minimum Delay (ssh, NOT scp) in 1:10:
 $TC filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
       match ip tos 0x10 0xff  flowid 1:10

 # ICMP (ip protocol 1) in the interactive class 1:10 so we
 # can do measurements & impress our friends:
 $TC filter add dev $DEV parent 1:0 protocol ip prio 11 u32 \
         match ip protocol 1 0xff flowid 1:10

 

-- 
Hal Burgiss
 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to