Chapter 13: Routing Policy Configuration Guide170 SmartSwitch Router User Reference ManualThe from-proto parameter specifies the protocol of the source routes. The values for thefrom-proto parameter can be rip, ospf, bgp, direct, static, aggregate and ospf-ase. The to-proto parameter specifies the destination protocol where the routes are to be exported.The values for the to-proto parameter can be rip, ospf and bgp. The network parameterprovides a means to define a filter for the routes to be distributed. The network parameterdefines a filter that is made up of an IP address and a mask. Routes that match the filterare considered as eligible for redistribution.Every protocol (RIP, OSPF, and BGP) has a configurable parameter that specifies thedefault-metric associated with routes exported to that protocol. If a metric is not explicitlyspecified with the redistribute command, then it is inherited from the default-metricassociated with the protocol to which the routes are being exported.Redistributing Static RoutesStatic routes may be redistributed to another routing protocol such as RIP or OSPF by thefollowing command. The network parameter specifies the set of static routes that will beredistributed by this command. If all static routes are to be redistributed set the networkparameter to all. Note that the network parameter is a filter that is used to specify routesthat are to be redistributed.To redistribute static routes, enter one of the following commands in Configure mode:Redistributing Directly Attached NetworksRoutes to directly attached networks are redistributed to another routing protocol such asRIP or OSPF by the following command. The network parameter specifies a set of routesthat will be redistributed by this command. If all direct routes are to be redistributed setthe network parameter to all. Note that the network parameter is a filter that is used tospecify routes that are to be redistributed.To redistribute direct routes, enter one of the following commands in Configure mode:To redistribute static routesinto RIP.ip-router policy redistribute from-protostatic to-proto rip network allTo redistribute static routesinto OSPF.ip-router policy redistribute from-protostatic to-proto ospf network allTo redistribute direct routesinto RIP.ip-router policy redistribute from-protodirect to-proto rip network allTo redistribute direct routesinto OSPF.ip-router policy redistribute from-protodirect to-proto ospf network all