Manual:Routing/Prefix list: Difference between revisions
Jump to navigation
Jump to search
New page: <div class=manual> <p><b>Sub-menu:</b> <code>/routing prefix-list</code></p> <br /> <p> Filtering by prefix list involves matching the prefixes of routes with those listed in the prefix ... |
mNo edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Versions|2.9, v3, v4 +}} | |||
<div class=manual> | <div class=manual> | ||
<p><b>Sub-menu:</b> <code>/routing prefix-list</code></p> | <p id="shbox"><b>Sub-menu:</b> <code>/routing prefix-list</code></p> | ||
<br /> | <br /> | ||
<p> | <p> | ||
Filtering by prefix list involves matching the prefixes of routes with those listed in the prefix list. When there is a match, the rule is used. The prefix lists can be used to filter out [[RIP]] routes, and are used if specified under /routing rip interface. | Filtering by prefix list involves matching the prefixes of routes with those listed in the prefix list. When there is a match, the rule is used. The prefix lists can be used to filter out [[RIP]] routes, and are used if specified under <code>/routing rip interface</code>. | ||
</p> | </p> | ||
Line 11: | Line 13: | ||
<table class="styled_table"> | <table class="styled_table"> | ||
<tr> | <tr> | ||
<th width=" | <th width="40%">Property</th> | ||
<th >Description</th> | <th >Description</th> | ||
</tr> | </tr> | ||
Line 34: | Line 36: | ||
<td> network prefix mask length to match. If prefix-length is set, for a route to match the prefix and prefix-length of a rule, the following should hold: | <td> network prefix mask length to match. If prefix-length is set, for a route to match the prefix and prefix-length of a rule, the following should hold: | ||
:* the network prefix of the route falls within the range of the prefix of the rule, (i.e. | :* the network prefix of the route falls within the range of the prefix of the rule, (i.e. | ||
:: | ::* the network mask of the route is greater of equal than the network mask of the prefix; | ||
:: | ::* the network address of the route masked out by the network mask of the prefix is equal to the network address of the prefix;) | ||
:* the length of the network mask of the route falls within the range of the prefix-length</td> | :* the length of the network mask of the route falls within the range of the prefix-length</td> | ||
</tr> | </tr> | ||
Line 47: | Line 49: | ||
</div> | </div> | ||
[[Category:Manual]] | [[Category:Manual|Prefixlist]] | ||
[[Category: | [[Category:Routing|Prefixlist]] |
Latest revision as of 11:56, 30 April 2010
Applies to RouterOS: 2.9, v3, v4 +
Sub-menu: /routing prefix-list
Filtering by prefix list involves matching the prefixes of routes with those listed in the prefix list. When there is a match, the rule is used. The prefix lists can be used to filter out RIP routes, and are used if specified under /routing rip interface
.
Property | Description |
---|---|
action (accept | discard; Default: accept) | action to perform on route matching the rule |
chain (string; Default: "") | chain name to place this rule in. If a chain with the specified name does not exist it will be automatically created |
invert-math (yes | no; Default: no) | invert this match, i.e. apply the rule to routes that would fail to match it and vice versa |
prefix (IP prefix; Default: 0.0.0.0/0) | network prefix to match. If prefix-length is not set, only exact match is done. For example, 0.0.0.0/0 then matches only the default route and nothing else |
prefix-length (integer; Default: 0-32) | network prefix mask length to match. If prefix-length is set, for a route to match the prefix and prefix-length of a rule, the following should hold:
|
set-metric (integer; Default: ) | Set metric |