Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 28 Jul 2002 16:16:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 28 Jul 2002 16:16:48 -0400 Received: from outpost.ds9a.nl ([213.244.168.210]:38093 "EHLO outpost.ds9a.nl") by vger.kernel.org with ESMTP id ; Sun, 28 Jul 2002 16:16:48 -0400 Date: Sun, 28 Jul 2002 22:20:08 +0200 From: bert hubert To: Benson Chow Cc: linux-kernel@vger.kernel.org Subject: Re: traffic shaper in 2.4.18 working? Message-ID: <20020728202007.GA19742@outpost.ds9a.nl> Mail-Followup-To: bert hubert , Benson Chow , linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 38 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/