ip ospf redistribute

Configure and enable redistribution entries to allow a protocol to announce routes of a certain source type, for example, static, RIP, or direct.

Syntax

Command Parameters

{ bgp| direct | isis | ospf | rip | static | dvr }
Specifies the type of routes to redistribute-the protocol source.
enable
Enables the route redistribution instance.
metric <0-65535>
Configures the metric to apply to redistributed routes.
metric-type { type1 | type2 | any }
Specifies a type 1 or a type 2 metric. For metric type 1, the cost of the external routes is equal to the sum of all internal costs and the external cost. For metric type 2, the cost of the external routes is equal to the external cost alone.
route-map WORD<0-64>
Configures the route policy to apply to redistributed routes.
subnets { allow | suppress }
Indicates whether the subnets are advertised individually or aggregated to their classful subnet. Choose allow to advertise the subnets individually with the learned or configured mask of the subnet. The default is allow.
vrf WORD <1-16>
Specifies the VRF instance.
vrf-src WORD<1-16>
Specifies the source VRF instance. This parameter is not required for redistribution within the same VRF.

Default

None

Command Mode

VRF Router Configuration