To configure the protocol from which the routes have to be redistributed into OSPF and advertise the routes learned by other protocols, use the command redistribute in OSPF Router Configuration Mode. The no form of the command disables redistribution of routes from the given protocol.
Parameter | Type | Description |
---|---|---|
static |
Enter to configure redistribution of routes configured statically in the OSPF routing process. | |
connected |
Enter to configure redistribution of directly connected networks routes into OSPF routing process. | |
rip |
Enter to enable redistribution of routes that are learnt by the RIP process into OSPF routing process. | |
bgp |
Enter to configure redistribution of routes that are learnt by the BGP process into OSPF routing process. | |
isis |
Enter to enable redistribution of routes learnt by ISIS in the OSPF routing process. | |
level-1 |
Enter to import routes learnt by ISIS level-1 in the OSPF routing process. | |
level-2 |
Enter to import routes learnt by ISIS level-2 in the OSPF routing process. | |
level-1-2 |
Enter to import routes learnt by ISIS in the OSPF routing process. | |
all |
Enter to import routes learnt in the OSPF routing process. | |
route-map |
Enter to identify the specified route-map in the list
of route-maps. Note:
Redistribution can be configured for only one route map. Another route map can be assigned, only if the already assigned route map is disabled. |
|
<name(1-20)> |
Integer | Enter a name for a route map. This is a string with maximum size of 20. |
metric |
Enter to configure the metric values for the routes to be redistributed into OSPF. | |
<metric-value (0-16777215)> |
Integer | Enter a metric value for the routes to be redistributed into OSPF. This value ranges from 0 to 16777215. |
metric-type |
Enter to configure the metric type applied to the routes to be redistributed. | |
<type (1-2)>] |
Integer | Enter a metric type to be applied to the routes to be
redistributed. It can be one of the following values:
|
OSPF Router Configuration Mode
iS5Comm(config)# router ospf
iS5Comm(config-router)# redistribute static