To control redistribution of Direct, Static and RIP routes into BGP, configure the protocol from which the routes have to be redistributed into BGP after applying the specified route map, and configure the redistribution of OSPF routes into BGP, use the command redistribute in BGP Router Configuration Mode. If this is set to enable, only the routes from the protocols are imported into BGP and BGP routes will not be distributed. If this is set as disable, then the routes learned from protocols are removed from BGP and no route is distributed. The no form of the command disables the redistribution of routes from the given protocol into BGP and the redistribution of routes from the OSPF protocol into BGP. The route map is disassociated from the redistribution, if the no form of the command specifies the route map.
Parameter | Type | Description |
---|---|---|
static
|
Enter to redistribute routes, configured statically, in the BGP routing process. | |
connected
|
Enter to redistribute directly connected networks routes, in the BGP routing process. | |
rip
|
Enter to redistribute routes that are learnt by the RIP process, in the BGP routing process. | |
all
|
Enter to redistribute routes, that are learnt by the all processes (RIP statically configured and connected routes), in the BGP routing process. | |
route-map
|
Enter to identify the specified route-map in the list of route-maps during redistribution of routes to BGP. If this is not specified, all routes are redistributed. | |
<string(20)>
|
Enter a value for the route map—a string with the maximum size of 20. | |
metric
|
Enter to specify the metric value for the routes to redistribute to BGP. If this is not specified, all routes are redistributed. If the metric value not specified, default metric value is considered. | |
integer (0-4294967295)
|
Integer | Enter a metric value for the route map—ranges from 0 to 4294967295. |
ospf
|
Enter to configure the redistribution of OSPF routes into BGP. | |
match
|
Enter to match the OSPF route type to be redistributed into BGP. | |
external
|
Enter to redistribute OSPF external routes. | |
internal
|
Enter to redistribute OSPF internal routes. | |
nssa-external
|
Enter to redistribute OSPF NSSA external routes. |
BGP Router Configuration Mode
Redistribution is disabled
Metric - 0
Redistribution can be configured for only one route map. Another route map can be assigned, only if the already assigned route map is disabled.
iS5Comm(config-router)# redistribute all route-map rm metric 500
iS5Comm (config-router)# redistribute ospf match external route-map rm metric 500