Community discussions

MikroTik App
faisali
Member Candidate
Member Candidate
Topic Author
Posts: 180
加入: Fri Oct 08, 2010 5:11 am

Another Question about Routing Filters...

Sun Jul 03, 2011 8:27 pm

When multiple conditions are defined on the match side of a single line in the filters, are these conditions (AND) or are the (OR)

e.g
Code:Select all
/routing filter add chain=tnn-out bgp-communities=11280:661 invert-match=no action=accept set-bgp-prepend=1 /routing filter add chain=tnn-out bgp-communities=11280:662 invert-match=no action=accept set-bgp-prepend=1
can this be combined into one line ? would it be more efficient / less taxing on the system ?

Thanks.
Top
blake
Member
Member
Posts: 426
加入: Mon May 31, 2010 10:46 pm
Location:Arizona

Re: Another Question about Routing Filters...

Sun Jul 03, 2011 9:25 pm

In your code they are OR. In the following they are AND.
Code:Select all
/routing filter add chain=tnn-out bgp-communities=11280:661,11280:662 invert-match=no action=accept set-bgp-prepend=1
As far as I know there is not a more efficient way to write those rules.
Top
faisali
Member Candidate
Member Candidate
Topic Author
Posts: 180
加入: Fri Oct 08, 2010 5:11 am

Re: Another Question about Routing Filters...

Mon Jul 04, 2011 3:18 am

酷。谢谢. .

:)
Top

Who is online

Users browsing this forum: No registered users and 4 guests