To redistribute
routes from another routing domain into Routing Information Protocol (RIP), use
the
redistribute
command in the appropriate configuration mode. To remove the
redistribute
command from the configuration file and restore the system to
its default condition in which the software does not redistribute routes, use
the
no
form of this command.
Border Gateway
Protocol (BGP)
redistribute bgp process-id [route-policy name] [external | internal | local]
no redistribute bgp process-id
Connected
Interface Routes
redistribute connected [route-policy name]
no redistribute connected
Enhanced
Interior Gateway Routing Protocol (EIGRP)
redistribute eigrp process-id [route-policy name]
no redistribute eigrp process-id
Intermediate
System-to-Intermediate System (ISIS)
redistribute isis process-id [route-policy name] [level-1 | level-1-2 | level-2]
no redistribute isis process-id
Open Shortest
Path First (OSPF)
redistribute ospf process-id [route-policy name] [match {external [1 | 2] | internal | nssa-external [1 | 2]}]
no redistribute ospf process-id
IP Static
Routes
redistribute static [route-policy name]
no redistribute static
Syntax Description
bgp
|
Distributes routes from the BGP protocol.
|
process-id
|
- For the
bgp
keyword:
-
Range for 2-byte Autonomous system numbers (ASNs) is 1 to 65535.
-
Range for 4-byte Autonomous system numbers (ASNs) in asplain
format is 1 to 4294967295.
-
Range for 4-byte Autonomous system numbers (ASNs) is asdot
format is 1.0 to 65535.65535.
- For the
eigrp
keyword, an EIGRP instance name from which routes
are to be redistributed. The value takes the form of a string. A decimal number
can be entered, but it is stored internally as a string.
- For the
isis
keyword, an IS-IS instance name from which routes
are to be redistributed. The value takes the form of a string. A decimal number
can be entered, but it is stored internally as a string.
- For the
ospf
keyword, an OSPF instance name from which routes are
to be redistributed. The value takes the form of a string. A decimal number can
be entered, but it is stored internally as a string.
|
external
|
(Optional)
Specifies BGP external routes only.
|
internal
|
(Optional)
Specifies BGP internal routes only.
|
local
|
(Optional)
Specifies BGP local routes only.
|
route-policy
name
|
(Optional)
Specifies the identifier of a configured policy. A policy is used to filter the
importation of routes from this source routing protocol to RIP.
|
level-1
|
(Optional)
Redistributes Level 1 IS-IS routes into other routing protocols independently.
|
level-1-2
|
(Optional)
Distributes both Level 1 and Level 2 IS-IS routes into other routing protocols.
|
level-2
|
(Optional)
Distributes Level 2 IS-IS routes into other routing protocols independently.
|
[
match
{
external
[
1
|
2
] |
internal
|
nssa-external
[
1
|
2
]]} [
route-policy
name
]
|
(Optional) Specifies the criteria by which OSPF routes are redistributed into
other routing domains. It can be one or more of the following:
-
internal
—Routes that are internal to a specific autonomous
system (intra- and inter-area OSPF routes).
-
external
[
1
|
2
]—Routes that are external to the autonomous system,
but are imported into OSPF as Type 1 or Type 2 external routes.
-
nssa-external
[
1
|
2
]—Routes that are external to the autonomous system,
but are imported into OSPF as Type 1 or Type 2 not-so-stubby area (NSSA)
external routes.
For the
external and nssa-external options, if a type is not specified, then both Type
1 and Type 2 are assumed.
If no
match is specified, the default is no filtering.
|
static
|
Redistributes IP static routes.
|
Command Default
Route
redistribution is disabled.
Command Modes
Router configuration
VRF configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This
command was introduced.
|
Release 3.5.0
|
The
as-number
4-byte number range 1.0 to 65535.65535 was supported.
|
Release 3.9.0
|
Asplain
format for 4-byte Autonomous system numbers notation was supported.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user
group assignment is preventing you from using a command, contact your AAA administrator for assistance.
Note |
When you are
redistributing routes (into RIP) using both command keywords for setting or
matching of attributes and a route policy, the routes are run through the route
policy first, followed by the keyword matching and setting.
|
Redistributed
routing information may be filtered by the
route-policy
name
keyword and argument. This filtering ensures that only those
routes intended by the administrator are redistributed by RIP.
The RIP metric
used for redistributed routes is determined by the route policy. If a route
policy is not configured or the route policy does not set the RIP metric, the
metric is determined based on the redistributed protocol.
For VPNv4
routes redistributed by BGP, the RIP metric set at the remote PE router is
used, if valid.
In all other cases
(BGP, IS-IS, OSPF, EIGRP, connected, static), the metric set by the
default-metric
command is used. If a valid metric cannot be determined, then
redistribution does not happen.
For information
about routing policies, see the
Routing Policy
Commands on
Cisco IOS XR
Softwaremodule of the
Cisco IOS XR
Routing Command
Reference.
Task ID
Task ID
|
Operations
|
rip
|
read,
write
|
The following
example shows how to cause BGP routes to be redistributed into a RIP process:
RP/0/RP0/CPU0:router(config)# router rip
RP/0/RP0/CPU0:router(config-rip)# redistribute bgp 100