From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Gallati Date: Sat, 17 Apr 2004 09:02:36 +0000 Subject: Re: [LARTC] One tc filter police for 2 subnets Message-Id: <4080F2AC.5070007@draxinusom.ch> List-Id: References: <001701c4241b$cfe3db70$0100a8c0@luciano> In-Reply-To: <001701c4241b$cfe3db70$0100a8c0@luciano> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello, > Like: > tc filter add dev eth3 parent ffff: protocol ip prio 5 u32 match ip src > 10.0.0.0/24 ; 10.0.1.0/24 police rate 128kbit burst 10k drop flowid :1 > > Obviously this command did not work because tc does not accept two subnets > as src separeted by ";". > > Is there a way of doing this ? Sure, 10.0.0.0/24 and 10.0.1.0/24 can be aggregated as 10.0.0.0/23. This might have been only an example of yours but if you have adjacent netblocks, you can often aggregate them iff they match into a given netmask. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/