SmartSwitch Router User Reference Manual 121Chapter 11: OSPF Configuration GuideExporting All Interface & Static Routes to OSPFRouter R1 has several static routes. We would export these static routes as type-2 OSPFroutes. The interface routes would be redistributed as type-1 OSPF routes.1. Create a OSPF export destination for type-1 routes since we would like to redistributecertain routes into OSPF as type 1 OSPF-ASE routes.2. Create a OSPF export destination for type-2 routes since we would like to redistributecertain routes into OSPF as type 2 OSPF-ASE routes.3. Create a Static export source since we would like to export static routes.4. Create a Direct export source since we would like to export interface/direct routes.5. Create the Export-Policy for redistributing all interface routes and static routes intoOSPF.Exporting All RIP, Interface & Static Routes to OSPFNote: Also export interface, static, RIP, OSPF, and OSPF-ASE routes into RIP.In the configuration shown in Figure 8 on page 124, RIP Version 2 is configured on theinterfaces of routers R1 and R2, which are attached to the sub-network 120.190.0.0/16.We would like to redistribute these RIP routes as OSPF type-2 routes and associate the tag100 with them. Router R1 would also like to redistribute its static routes as type 2 OSPFroutes. The interface routes are to be redistributed as type 1 OSPF routes.ospf add interface 140.1.3.1 to-area 140.1.0.0ospf add interface 130.1.1.1 to-area backboneip-router policy create ospf-export-destination ospfExpDstType1 type1 metric 1ip-router policy create ospf-export-destination ospfExpDstType2 type2 metric 4ip-router policy create static-export-source statExpSrcip-router policy create direct-export-source directExpSrcip-router policy export destination ospfExpDstType1 sourcedirectExpSrc network allip-router policy export destination ospfExpDstType2 sourcestatExpSrc network all