redistribute (for OSPF)

Redistribute learned routes into OSPF.

Syntax

Command Parameters

{ bgp| direct | isis | ospf | rip | static }
Specifies the protocol type. The possible values are bgp, direct, isis, ospf, rip, or static.
enable
Enables route redistribution of Intermediate-System-to-Intermediate-System (IS-IS) learned IP routes into OSPF.
metric <0-65535>
Configures the metric (cost) to apply to redistributed routes. The default is 1.
metric-type { type1 | type2 }
Configures the type of route to import into the OSPF protocol.
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-src WORD<0-16>
Specifies the source VRF instance. This parameter is not required for redistribution within the same VRF.

Default

By default, route redistribution is disabled.

Command Mode

OSPF Router Configuration