DGS-6604 m redistribute (OSPF)CLI Reference Guide 503redistribute (OSPF)Use redistribute to redistribute routes from other routing domain into OSPFrouting domain. Use the no form of the command to disable redistribution.redistribute PROTOCOL [metric METRIC-VALUE] [metric-type TYPE-VALUE]no redistribute PROTOCOLDefault Disabledmetric-type TYPE-VALUE: Type 2 external routeCommand Mode Router configurationUsage Guideline A router receiving a link-state protocol with an internal metric will consider thecost of the route from itself to the redistributing router plus the advertised cost toreach the destination. An external metric only considers the advertised metric toreach the destination.Whenever the redistribute or the default-information originate configurationcommands are used to redistribute routes into an OSPF routing domain, therouter automatically becomes an ASBR. However, an ASBR does not, by default,generate a default route into the OSPF routing domain.BGP, RIP, connected, static routes can be redistributed to OSPF.The redistribute metric is determined by following rules in order:1. If the redistribute metric is specified, use the user specified value.2. If the redistribute route is default route, the metric will be 1.3. If "default metric" is configured, use the specified value.Syntax DescriptionPROTOCOL The source protocol from which routes are being redistributed from. It can beone of thefollowing keywords: bgp, connected, static, or rip. The static keywordis used to redistribute IP static routes. The connected keyword refers to routesthat are established automatically by virtue of having enabled IP on an interface.For routing protocols such as Open Shortest Path First (OSPF), these routes willbe redistributed as external to the autonomous system.metric METRIC-VALUE(Optional) If a metric is not specified, OSPF puts a default value of 20 asredistributing routes from all other protocols except Border GatewayProtocol(BGP) routes, which get a metric of 1. However when redistributing from oneOSPF process to another OSPF process, the metric will be carried through.metric-type TYPE-VALUE(Optional) For OSPF, the external link type associated with the route advertisedinto the OSPF routing domain. It can be one of two values: 1-Type 1 externalroute 2-Type 2 external route. If a metric-type is not specified, the Switch adoptsa Type 2 external route. This is only for OSPF.