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.
|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|