SmartSwitch Router User Reference Manual 177Chapter 11: Routing Policy Configuration GuideIn the configuration shown in Figure 18 on page 187, suppose we decide to run RIPVersion 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.Router R1 would also like to export interface, static, RIP, OSPF, and OSPF-ASE routes intoRIP.Configuring Advanced Routing PoliciesAdvanced Routing Policies are used for creating complex import/export policies thatcannot be done using the redistribute command. Advanced export policies providegranular control over the targets where the routes are exported, the source of the exportedroutes, and the individual routes which are exported. It provides the capability to senddifferent routes to the various route-peers. They can be used to provide the same routewith different attributes to the various route-peers.Import policies control the importation of routes from routing protocols and theirinstallation in the routing database (Routing Information Base and ForwardingInformation Base). Import policies determine which routes received from other systemsare used by the SSR routing process. Using import policies, it is possible to ignore routeupdates from an unreliable peer and give better preference to routes learned from atrusted peer.Export PoliciesAdvanced export policies can be constructed from one or more of the following buildingblocks:• Export Destinations - This component specifies the destination where the routes are tobe exported. It also specifies the attributes associated with the exported routes. Theinterface, gateway or the autonomous system to which the routes are to beredistributed are a few examples of export-destinations. The metric, type, tag, and AS-Path are a few examples of attributes associated with the exported routes.• Export Sources - This component specifies the source of the exported routes. It can alsospecify the metric to be associated with the routes exported from this source. Theip-router policy redistribute from-proto rip to-proto ospfip-router policy redistribute from-proto direct to-proto ospfip-router policy redistribute from-proto static to-proto ospfip-router policy redistribute from-proto direct to-proto ripip-router policy redistribute from-proto static to-proto ripip-router policy redistribute from-proto rip to-proto ripip-router policy redistribute from-proto ospf to-proto ripip-router policy redistribute from-proto ospf-ase to-proto rip