mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* traffic shaper in 2.4.18 working?
@ 2002-07-28 19:56 Benson Chow
  2002-07-28 20:20 ` bert hubert
  2002-07-29  0:34 ` Alan Cox
  0 siblings, 2 replies; 3+ messages in thread
From: Benson Chow @ 2002-07-28 19:56 UTC (permalink / raw)
  To: linux-kernel

(initial conditions)
I have two existing IP addresses on eth0 belonging to the same subnet as a
virtual host.  This machine is a dual CPU box at 450MHz with an Intel
EtherPro 100.

(what I've done)
I've executed:
shapecfg attach shaper0 eth0
shapecfg speed shaper0 19000
ifconfig shaper0 10.0.0.80

However, it seems whenever I subsequently connect to this
machine's 10.0.0.80 from another machine, it still transmits at full
bandwidth of the media and not the 19K (Bytes/sec?) that I expect?

Is this a proper usage of this device or is it a bug?

Thanks,

-bc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: traffic shaper in 2.4.18 working?
  2002-07-28 19:56 traffic shaper in 2.4.18 working? Benson Chow
@ 2002-07-28 20:20 ` bert hubert
  2002-07-29  0:34 ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: bert hubert @ 2002-07-28 20:20 UTC (permalink / raw)
  To: Benson Chow; +Cc: linux-kernel

On Sun, Jul 28, 2002 at 01:56:49PM -0600, Benson Chow wrote:
> (initial conditions)
> I have two existing IP addresses on eth0 belonging to the same subnet as a
> virtual host.  This machine is a dual CPU box at 450MHz with an Intel
> EtherPro 100.
> 
> (what I've done)
> I've executed:
> shapecfg attach shaper0 eth0
> shapecfg speed shaper0 19000
> ifconfig shaper0 10.0.0.80
> 
> However, it seems whenever I subsequently connect to this
> machine's 10.0.0.80 from another machine, it still transmits at full
> bandwidth of the media and not the 19K (Bytes/sec?) that I expect?
> 
> Is this a proper usage of this device or is it a bug?

Add a route to your remote machine via shaper0 and check again. Linux does
not automatically route traffic with the source address of an interface out
over that interface. This is not a bug. If you want to force this, use
policy routing.

See http://lartc.org/howto/lartc.rpdb.html 

Regards,

bert hubert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: traffic shaper in 2.4.18 working?
  2002-07-28 19:56 traffic shaper in 2.4.18 working? Benson Chow
  2002-07-28 20:20 ` bert hubert
@ 2002-07-29  0:34 ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2002-07-29  0:34 UTC (permalink / raw)
  To: Benson Chow; +Cc: linux-kernel

On Sun, 2002-07-28 at 20:56, Benson Chow wrote:
> However, it seems whenever I subsequently connect to this
> machine's 10.0.0.80 from another machine, it still transmits at full
> bandwidth of the media and not the 19K (Bytes/sec?) that I expect?
> 
> Is this a proper usage of this device or is it a bug?
 
You need to route via shaper0 too


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-28 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-28 19:56 traffic shaper in 2.4.18 working? Benson Chow
2002-07-28 20:20 ` bert hubert
2002-07-29  0:34 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®