Chapter 9: Routing Policy Configuration Guide
Exporting All RIP, Interface & Static Routes to OSPF
Note:
Also export interface, static, RIP, OSPF, and OSPF-ASE routes into RIP.
In the configuration shown in
Version 2 on network 120.190.0.0/16, connecting routers R1 and R2.
Router R1 would like to export all RIP, interface, and static routes to OSPF.
ip-router policy redistribute from-proto rip to-proto ospf
ip-router policy redistribute from-proto direct to-proto ospf
ip-router policy redistribute from-proto static to-proto ospf
Router R1 would also like to export interface, static, RIP, OSPF, and OSPF-ASE routes into
RIP.
ip-router policy redistribute from-proto direct to-proto rip
ip-router policy redistribute from-proto static to-proto rip
ip-router policy redistribute from-proto rip to-proto rip
ip-router policy redistribute from-proto ospf to-proto rip
ip-router policy redistribute from-proto ospf-ase to-proto rip
Configuring Advanced Routing Policies
Advanced Routing Policies are used for creating complex import/export policies that
cannot be done using the redistribute command. Advanced export policies provide
granular control over the targets where the routes are exported, the source of the exported
routes, and the individual routes which are exported. It provides the capability to send
different routes to the various route-peers. They can be used to provide the same route
with different attributes to the various route-peers.
Import policies control the importation of routes from routing protocols and their
installation in the routing database (Routing Information Base and Forwarding
Information Base). Import policies determine which routes received from other systems
are used by the IA routing process. Using import policies, it is possible to ignore route
updates from an unreliable peer and give better preference to routes learned from a
trusted peer.
148
Figure 19 on page
158, suppose we decide to run RIP
Internet Appliance User Reference Manual