To redistribute routes from one routing domain into a RIP routing domain, use the redistribute command in the Router RIP configuration mode. To disable redistribution, use the no form of this command.
Syntax
redistribute protocol [metric {metric-value | transparent}]
no redistribute protocol
Parameters
-
protocol—Source protocol from which routes are being redistributed. It can be one of the following keywords: connected or static.
-
metric transparent—Causes RIP to use the source protocol metric for redistributed routes as the RIP metric. Only routes with metric less than
16 are redistributed.
-
metric metric-value—Specifies the metric assigned to the redistributed routes. The value supersedes the metric value specified using the default-metric command.
Default Configuration
Route redistribution is disabled
Command Mode
Router RIP Configuration mode
User Guidelines
Routes distributed to the source protocol are never redistributed by it
The connected keyword is used to redistribute to RIP routes that correspond to defined IP interfaces on which RIP is not enabled. By default,
the RIP Routing Table includes only routes that correspond only to IP interfaces on which it is enabled.
The static keyword is used to redistribute to RIP static routes. By default, static routes are not redistributed to RIP.
If the metric value is set by the route map (by the set metric command) then the value will supersede the metric value specified by the metric-value argument.
If the metric keyword is not defined, then the metric is specified by the default-metric CLI command is assigned to the redistributed routes. If metric value set by the route map is equal or bigger than 16 the
route is not redistributed.
Changing or disabling any keyword will not affect the state of other keywords.
Removing options that you have configured for the redistribute command requires careful use of the no form of the redistribute command to ensure that you obtain the result that you are expecting.
Examples
Example 1.The following example enables redistribution of static routes by RIP with transparent metric:
switchxxxxxx(config)# router rip
switchxxxxxx(config-rip)# redistribute static metric transparent
switchxxxxxx(config-rip)# exit
Example 2. The following example enables redistribution of static routes by RIP with transparent metric and then changes the
metric to default:
switchxxxxxx(config)# router rip
switchxxxxxx(config-rip)# redistribute static metric transparent
switchxxxxxx(config-rip)# no redistribute static metric transparent
switchxxxxxx(config-rip)# exit
Example 3. The following example enables redistribution of static routes by RIP with default metric and then changes the metric
to transparent:
switchxxxxxx(config)# router rip
switchxxxxxx(config-rip)# redistribute static
switchxxxxxx(config-rip)# redistribute static metric transparent
switchxxxxxx(config-rip)# exit
Example 4. The following example enables redistribution of static routes by RIP with transparent metric. The second redistribute
command does not affect:
switchxxxxxx(config)# router rip
switchxxxxxx(config-rip)# redistribute static metric transparent
switchxxxxxx(config-rip)# redistribute static
switchxxxxxx(config-rip)# exit
Example 5. The following example disables redistribution of static routes by RIP:
switchxxxxxx(config)# router rip
switchxxxxxx(config-rip)# no redistribute static
switchxxxxxx(config-rip)# exit