Stef Coene schrieb: > You can not shape incoming and outgoing traffic at the same time. You add the > cbq qdisc to dev eth0 so you can only shaping traffic that leaves eth0. Sorry, I think there is a tiff. I use a server which the shaped host is connected to. So the device eth0 is on the server to ISP. The other device eth1 on the server is directed to the local Network. Thomas
On Thursday 31 October 2002 21:32, thomas bilke wrote: > Stef Coene schrieb: > > You can not shape incoming and outgoing traffic at the same time. Yo= u > > add the cbq qdisc to dev eth0 so you can only shaping traffic that le= aves > > eth0. > > Sorry, I think there is a tiff.=20 ?? What do you mean ?? > I use a server which the shaped host is > connected to. So the device eth0 is on the server to ISP. The other dev= ice > eth1 on the server is directed to the local Network. Again, you can only shape outgoing traffic. If eth0 is connected to your= isp=20 and you add the qdisc to eth0, then you can only shaping traffic going to= =20 your isp. Is the x.x.x.x host on your LAN ?? Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
On Thu, Oct 31, 2002 at 10:35:27PM +0100, Stef Coene wrote: > and you add the qdisc to eth0, then you can only shaping traffic going to > your isp. > Is the x.x.x.x host on your LAN ?? > > > Stef $ tc qdisc show dev ppp0 qdisc ingress ffff: qdisc sfq 30: limit 128p quantum 1492b perturb 10sec qdisc sfq 20: limit 128p quantum 1492b perturb 10sec qdisc sfq 10: limit 128p quantum 1492b perturb 10sec qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit that is not ingress AND cbq on one device? -- Robert Felber
On Thursday 31 October 2002 22:52, Robert Felber wrote: > On Thu, Oct 31, 2002 at 10:35:27PM +0100, Stef Coene wrote: > > and you add the qdisc to eth0, then you can only shaping traffic goin= g to > > your isp. > > Is the x.x.x.x host on your LAN ?? > > > > > > Stef > > $ tc qdisc show dev ppp0 > qdisc ingress ffff: > qdisc sfq 30: limit 128p quantum 1492b perturb 10sec > qdisc sfq 20: limit 128p quantum 1492b perturb 10sec > qdisc sfq 10: limit 128p quantum 1492b perturb 10sec > qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit > > that is not ingress AND cbq on one device? All right, you can use ingress and cbq (or what ever qdisc you want) on t= he=20 same device, but that's not the issue, you can even use imq so you can sh= ape=20 in and out at the same time. Before we are going to overwhelm Thoms with things like ingress, imq, and= =20 other fancy shaping stuff, he has to understand some basic shaping rules.= =20 And one of them is that with cbq attached to a real device, you can only=20 shape outgoing traffic=20 =46rom my previous post: You add the cbq qdisc to dev eth0 so you can only shaping traffic that le= aves=20 eth0. Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net