Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
_IW Academy
_IW Academy

Hide_comments

Scroll Ignore

Table of Contents

...

  • Filters are viewed in order from less to more general.
  • First are considered filters related to specific interface addresses; then, to specific interfaces; then the general ones.
  • Individual rules in the tables are ordered according to the same principle: from the smallest networks to the biggest ones, from the more detailed information to the more general.
  • By default (when no filters are specified), all routes with their natural metrics are imported and exported.
  • If at least one prohibiting filter is enabled, all the rest is assumed as permitted.
  • If at least one permitting filter is enabled, all the rest is assumed as prohibited. Therefore, if you have started with a permitting filter, you must continue with permitting filters up to the end. If you have prohibited something, only that particular thing will be prohibited.
  • If for a given network a permitting and a prohibiting filter are simultaneously enabled, then the prohibiting filter will take priority.
  • To each network / subnet will be applied filters of only one group having the highest priority.

Examples

Enable RIP-1 version and disable RIP-2 for interface import.

Code Block
languagetext
themeEmacs
rip IFNAME v1in -v2in

Limit nodes number through which routing information is exchanged. Information will be sent only though interfaces "10.1.2.3", "10.4.5.6" and all from "192.168.1.0/16" range.

Code Block
languagetext
themeEmacs
rip rf5.0 peer 10.1.2.3  10.4.5.6  192.168.1.0/16

Set the filter for a whole protocol and all interfaces.

Code Block
languagetext
themeEmacs
rip export all

Set the filter for the "eth0" network interface.

Code Block
languagetext
themeEmacs
rip eth0 export all

Set the filter for "10.2.3.4" IP-address.

Code Block
languagetext
themeEmacs
rip int:10.2.3.4 export all

Permit export of all routing information, except a private networks "192.168.9.0/24", "192.168.10.0/24" and "192.168.20.0/24", and the default route.

Code Block
languagetext
themeEmacs
rip noexport 192.168.9.0/24  192.168.10.0/24  192.168.20.0/24
rip noexport default
rip export all

Delete part of the filter created before.

Code Block
languagetext
themeEmacs
rip noexport 192.168.9.0/24  192.168.10.0/24  192.168.20.0/24 del 

A route metric values are explicitly specified in exporting/importing filters.

Code Block
languagetext
themeEmacs
rip import 192.168.9.0/24 metric 5
rip export 192.168.9.0/24 metric 7

Original metrics values of all routes will be increased by 2.

Code Block
languagetext
themeEmacs
rip export all +metric 2
Note
titleNOTE

When specifying relative metrics change, the resulting value shall never become less than 2 or more than 13.

Forbid the import of the "10.0.0.0" network, but the import of the subnetworks is permitted.

Code Block
languagetext
themeEmacs
rip noimport 10.0.0.0/255.0.0.0 exact