IP Routing—Configuring RIP, OSPF, BGP, and PBR
Configuring RIP
15-26
You can then apply the filter:
globally to all inbound routes
globally to all outbound routes
to all routes received on a specific interface
to all routes advertised on a specific interface
to all routes learned by a particular method (redistributed routes)
Applying Global RIP Filters. To apply the ACL to the router's global RIP
functions (routes sent and received on all interfaces participating in RIP),
enter:
Syntax: distribute-list <listname> [in | out]
Specify in to have the router match incoming (received) routes to statements
in the ACL; specify out to match outgoing (advertised) routes to statements
in the ACL.
Apply RIP Filters to Specific Interfaces. To apply the ACL to RIP func-
tions on a specific Data Link Layer interface, enter this command from the
RIP configuration mode context:
Syntax: distribute-list <listname> [in | out] [<interface ID>]
Replace <interface ID> with the interface name, such as Ethernet, ATM, PPP,
Frame Relay, HDLC, Tunnel, and so forth. You must also include the interface's
unique ID number, such as PPP 1.
Applying RIP Filters to Redistributed Routes. To configure an ACL to
filter outbound RIP routes according to the method by which RIP learned the
route, enter this command from the RIP configuration mode context:
Syntax: distribute-list <listname> out [connected | static | rip | ospf]
Specify the type of routes for which you want the router to filter advertise-
ments. (Redistributed routes are routes that RIP advertises, so the options
above are available only with the out option.)