* [LARTC] [tcng] example
@ 2003-02-20 8:32 raptor
0 siblings, 0 replies; only message in thread
From: raptor @ 2003-02-20 8:32 UTC (permalink / raw)
To: lartc
hi,
i would like to use just one interface to shape/police traffic, lets have following config :
users -----[eth1]==[eth0]------ Internet
what I think to do is :
$m1 = SLB(cir 20kbps, cbs 10kB);
dev eth1 {
ingress{
class(<$i1>) if ip_dst = 192.168.0.5 && SLB_else_drop($m1);
class(<$i2>) if ip_dst = 192.168.0.5 && SLB_else_drop($m1);
drop if 1;
}
egress {
class(<$c1>) if ip_dst = 192.168.0.5;
class(<$c2>) if ip_dst = 192.168.0.6;
......
drop if 1;
htb() {
$c1 = class(rate 20kbps, rq2 1) {sfq;};
$c2 = class(rate 100kbps, rq2 10) {sfq;};
}
}
}
My main question is about INGRESS.. I see in the docs there is many other metering primitives and can't find which one is better to use.. From what I know it is not possible to shape traffic on ingress interface..
What about this instead of SLB:
$m1 = bucket(rate 20kbps, burst 10kB);
class(<$i1>) if ip_dst = 192.168.0.5 && conform $m1;
what is the difference..
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-20 8:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-20 8:32 [LARTC] [tcng] example raptor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.