From: Rene Gallati <lartc@draxinusom.ch>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] One tc filter police for 2 subnets
Date: Sat, 17 Apr 2004 09:02:36 +0000 [thread overview]
Message-ID: <4080F2AC.5070007@draxinusom.ch> (raw)
In-Reply-To: <001701c4241b$cfe3db70$0100a8c0@luciano>
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/
prev parent reply other threads:[~2004-04-17 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 1:31 [LARTC] One tc filter police for 2 subnets Luciano Lima
2004-04-17 9:02 ` Rene Gallati [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4080F2AC.5070007@draxinusom.ch \
--to=lartc@draxinusom.ch \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.