To redistribute
routes from one routing protocol into Intermediate System-to-Intermediate
System (IS-IS), use the
redistribute
command in address family 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 [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute
Connected
Routes
redistribute connected [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute
Intermediate
System-to-Intermediate System (IS-IS)
redistribute isis process-id [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute
Open Shortest
Path First (OSPF)
redistribute ospf process-id [level-1 | level-2 | level-1-2] [match {external [1 | 2] | internal | nssa-external [1 | 2]}] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute
Open
Shortest Path First Version 3 (OSPFv3)
redistribute ospfv3 process-id [level-1 | level-2 | level-1-2] [match {external [1 | 2] | internal | nssa-external [1 | 2]}] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute
Static
Routes
redistribute static [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {1 {internal | external | rib-metric-as-external} | 2 rib-metric-as-internal }] [route-policy route-policy-name]
no redistribute
RIP
redistribute rip [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute rip [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
Subscriber
Routes
redistribute subscriber [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
no redistribute subscriber [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {internal | external | rib-metric-as-external | rib-metric-as-internal}] [route-policy route-policy-name]
Syntax Description
process-id
|
For the
bgp
keyword, an autonomous system number has the following
ranges:
- 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
isis
keyword, an IS-IS instance identifier from which routes
are to be redistributed.
For the
ospf
keyword, an OSPF process 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
ospfv3
keyword, an OSPFv3 process 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.
|
level-1
|
(Optional)
Specifies that redistributed routes are advertised in the Level-1 LSP of the
router.
|
level-1-2
|
(Optional)
Specifies that redistributed routes are advertised in the Level-1-2 LSP of the
router.
|
level-2
|
(Optional)
Specifies that redistributed routes are advertised in the Level-2 LSP of the
router.
|
metric
metric-value
|
(Optional)
Specifies the metric used for the redistributed route. Range is 0 to 16777215.
The
metric-value
must be consistent with the IS-IS metric style of the
area and topology into which the routes are being redistributed.
|
metric-type
{
internal
|
external
}
metric-type
{
internal
|
external
|
rib-metric-as-external
|
rib-metric-as-internal
}
|
(Optional)
Specifies the external link type associated with the route advertised into the
ISIS routing domain. It can be one of
two
four
values:
- external
-
internal
–Use the
internal
keyword to set IS-IS internal metric-type
-
external –Use the
external keyword to set IS-IS external metric-type
- rib-metric-as-external–Use
the
rib-metric-as-external
keyword to use RIB metric and set IS-IS external
metric-type
- rib-metric-as-internal–Use
the
rib-metric-as-internal
keyword to use RIB metric and set IS-IS internal
metric-type
Any route
with an internal metric (however large the metric is) is preferred over a route
with external metric (however small the metric is).
Use the
rib-metric-as-external
and
rib-metric-as-internal
keywords to preserve RIB metrics when redistributing
routes from another IS-IS router instance or another protocol.
|
route-policy
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 IS-IS.
|
match
{
internal
|
external
[
1
|
2
] |
nsaa-external
[
1
|
2
]}
|
(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 interarea 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.
|
Command Default
Level 2 is
configured if no level is specified.
metric-type:
internal
match
: If no match keyword is specified, all OSPF routes are
redistributed.
Command Modes
Address family configuration
Command History
Release
|
Modification
|
Release 6.0
|
This
command was introduced.
|
Usage Guidelines
 Note |
When
redistributing routes (into IS-IS) 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.
|
Use the
redistribute
command to control the redistribution of routes between
separate IS-IS instances. To control the propagation of routes between the
levels of a single IS-IS instance, use the
propagate level
command.
Only IPv4 OSPF
addresses can be redistributed into IS-IS IPv4 address
families and
only IPv6 OSPFv3 prefixes can be distributed into IS-IS IPv6 address
families.
Task ID
Task ID
|
Operations
|
isis
|
read,
write
|
Examples
In this example,
IS-IS instance isp_A readvertises all of the routes of IS-IS instance isp_B in
Level 2 LSP. Note that the
level-2
keyword affects which levels instance isp_A advertises the
routes in and has no impact on which routes from instance isp_B are advertised.
(Any Level 1 routes from IS-IS instance isp_B are included in the
redistribution.
RP/0/RSP0RP0/CPU0:router(config)# router isis isp_A
RP/0/RSP0RP0/CPU0:router(config-isis)# net 49.1234.2222.2222.2222.00
RP/0/RSP0RP0/CPU0:router(config-isis)# address-family ipv4 unicast
RP/0/RSP0RP0/CPU0:router(config-isis-af)# redistribute isis isp_B level-2
!
RP/0/RSP0RP0/CPU0:router(config)# router isis isp_B
RP/0/RSP0RP0/CPU0:router(config-isis)# is-type level 1
RP/0/RSP0RP0/CPU0:router(config-isis)# net 49.4567.2222.2222.2222.00
RP/0/RSP0RP0/CPU0:router(config-isis)# address-family ipv4 unicast