Configure Route Redistribution to OSPF
Configure a redistribute entry to announce routes of a certain source protocol type into the OSPF domain, for example, static, RIP, or direct. Optionally, use a route policy to control the redistribution of routes.
Before you begin
- 
                    Enable OSPF globally. 
- 
                    Ensure that a route policy exists. 
- 
                    Change the VRF instance as required to configure OSPF on a specific VRF instance. The VRF must have an RP trigger of OSPF. Not all parameters are configurable on non-default VRFs. 
About this task

Important
Changing the OSPF redistribute context is a process-oriented operation that can affect system performance and network reachability while you perform this procedure. As a best practice, if you want to change default preferences for an OSPF redistribute context, do so before you enable the protocols.
Procedure
- In the navigation pane, expand .
- Select OSPF.
- Select the Redistribute tab.
- Select Insert.
- Select an option for the route source.
- Select enable.
- Select a route policy.
- Configure the metric type.
- Configure the subnet.
- Select Insert.
Redistribute field descriptions
Use the data in the following table to use the Redistribute tab.
| Name | Description | 
|---|---|
| DstVrfId | Specifies the destination virtual router forwarding instance. You cannot configure this variable. | 
| Protocol | Specifies the dynamic routing protocol that receives the external routing information. | 
| SrcVrfId | Specifies the source VRF instance. You cannot configure this variable. | 
| RouteSource | Specifies the route source protocol for the redistribution entry. | 
| Enable | Enables (or disables) an OSPF redistribute entry for a specified source type. | 
| RoutePolicy | Configures the route policy (by name) to use for detailed redistribution of external routes from a specified source into an OSPF domain. Click the ellipsis (...) button and choose from the list in the dialog box. | 
| Metric | Configures the OSPF route redistribution metric for basic redistribution. The value can be a range from 0–65535. A value of 0 indicates to use the original cost of the route. | 
| MetricType | Configures the OSPF route redistribution metric type. The default is type 2. The cost of a type 2 route is the external cost, regardless of the interior cost. A type 1 cost is the sum of both the internal and external costs. | 
| Subnets | Allows or suppresses external subnet route advertisements when routes are redistributed into an OSPF domain. | 




