Node:Filtering RIP Routes, Next:, Previous:How to Announce RIP route, Up:RIP



Filtering RIP Routes

RIP routes can be filtered by a distribute-list.

distribute-list access_list direct ifname Command
You can apply access lists to the interface with a distribute-list command. access_list is the access list name. direct is in or out. If direct is in the access list is applied to input packets.

The distribute-list command can be used to filter the RIP path. distribute-list can apply access-lists to a chosen interface. First, one should specify the access-list. Next, the name of the access-list is used in the distribute-list command. For example, in the following configuration eth0 will permit only the paths that match the route 10.0.0.0/8

          !
          router rip
           distribute-list private in eth0
          !
          access-list private permit 10 10.0.0.0/8
          access-list private deny any
          !
          

distribute-list can be applied to both incoming and outgoing data.

distribute-list prefix prefix_list (in|out) ifname Command
You can apply prefix lists to the interface with a distribute-list command. prefix_list is the prefix list name. Next is the direction of in or out. If direct is in the access list is applied to input packets.