redistribute connected

This command redistributes routes of the specified protocol or kind into OSPF.

Syntax

redistribute connected
redistribute connected route-map
redistribute connected metric-type {1|2} 
redistribute connected metric-type {1|2} route-map word
redistribute connected metric <0-16777214>
redistribute connected metric-type {1|2} metric <0-16777214> metric <0-16777214> route-map word
no redistribute connected  

Command

Description

metric

Defines the metric for redistributed routes.

metric-type

Defines the OSPF exterior metric type for registered routes.

1|2

Sets the OSPF exterior type - 1- metric, 2-metrics.

word

Describes the pointer to route-map entries.

Default

NA

Command Mode

Privileged User

Example

This example redistributes routes of the specified protocol or kind into OSPF.

(config-data)# router ospf     
(conf-router)# redistribute connected