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

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

  1. In the navigation pane, expand Configuration > IP.
  2. Select OSPF.
  3. Select the Redistribute tab.
  4. Select Insert.
  5. Select an option for the route source.
  6. Select enable.
  7. Select a route policy.
  8. Configure the metric type.
  9. Configure the subnet.
  10. 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.

Select the ellipsis (...) and choose from the list in the dialog box.

Metric

Configures the OSPF route redistribution metric for basic redistribution. 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.