redistribute

Configures the device to redistribute IPv4 and IPv6 routes from one routing domain to another.

Syntax

redistribute isis [ level-1 | level-1-2 | level-2 | metric num | route-map string ]
redistribute isis { level-1 into level-2 } [ prefix-list name ]
redistribute isis { level-2 into level-1 } [ prefix-list name ]
redistribute ospf [ match { external1 | external2 | internal } | metric num | metric-type { type1 | type2 } | route-map string ]
redistribute { source-protocol } [ metric num | metric-type { type1 | type2 } | route-map string ]
redistribute { source-protocol } [ level-1 | level-1-2 | level-2 | metric num | metric-type { type1 | type2 } | route-map string ]
no redistribute isis [ level-1 | level-1-2 | level-2 metric num | route-map string ]
no redistribute isis { level-1 into level-2 } [ prefix-list name ]
no redistribute isis { level-2 into level-1 } [ prefix-list name ]
no redistribute ospf [ match { external1 | external2 | internal } | metric num | metric-type { type1 | type2 } | route-map string ]
no redistribute { source-protocol } [ metric num | metric-type { type1 | type2 } | route-map string ]

Command Default

The device does not redistribute routing information.

Parameters

isis
Specifies the IS-IS protocol.
level-1
Specifies L1 LSP, L1 CSNP, and LI PSNP packets.
level-1-2
Specifies L1 LSP, L1 CSNP, and LI PSNP packets and L2 LSP, L2 CSNP, and L2 PSNP packets.
level-2
Specifies L2 LSP, L2 CSNP, and L2 PSNP packets.
metric num
Specifies a metric for redistributed routes. Valid values range from 1 through 65535 in OSPFv2 and OSPFv3 configuration mode. Valid values range from 1 through 4261412863 in ISIS address-family IPv4/IPv6 unicast configuration mode and BGP address-family IPv4/IPv6 unicast configuration mode.
route-map string
Specifies a route map to be consulted before a route is added to the routing table.
level-1 into level-2
Redistributes Level 1 routes into Level 2.
level-2 into level-1
Redistributes Level 2 routes into Level 1.
prefix-list name
Specifies a prefix-list.
ospf
Specifies the OSPF protocol.
match
Specifies the type of route.
external1
Specifies OSPF Type 1 external routes.
external2
Specifies OSPF Type 2 external routes.
internal
Specifies OSPF internal routes.
metric-type
Specifies the external link type associated with the default route advertised into the OSPF routing domain.
type1
Specifies a type 1 external route.
type2
Specifies a type 2 external route.
source-protocol
Specifies the source protocol from which routes are being redistributed. It can be one of the following keywords: bgp, connected, or static.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

ISIS address-family IPv4 unicast configuration mode

ISIS address-family IPv6 unicast configuration mode

OSPF router configuration mode

OSPFv3 router configuration mode

OSPF router VRF configuration mode

OSPFv3 router VRF configuration mode

Usage Guidelines

IS-IS is supported on the Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 devices only.

Routes can be filtered by means of an associated route map before they are distributed.

The metric-type { type1 | type2 } option is only available in OSPFv3 router, OSPFv3 router VRF, and ISIS address-family /IPv4/IPv6 unicast configuration mode.

The redistribute { source-protocol } [ level-1 | level-1-2 | level-2 ] option is only available in ISIS address-family IPv4/IPv6 unicast configuration mode.

The match, metric, and metric-type options are not available in OSPF VRF configuration mode.

Note

Note

The default-metric command does not apply to the redistribution of directly connected routes. Use a route map to change the default metric for directly connected routes.

The no form of the command restores the defaults.

Examples

The following example redistributes IS-IS routes, specifying level 1 packets, in BGP address-family IPv4 unicast configuration mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# redistribute isis level-1

The following example redistributes all IPv4 IS-IS routes from Level 2 into Level 1.

device# configure terminal
device(config)# router isis
device(config-bgp-isis)# address-family ipv4 unicast
evice(config-bgp-ipv4u)# redistribute isis level-2 into level-1

The following example redistributes OSPF external type 1 routes with a metric of 200 in BGP address-family IPv4 unicast configuration mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# redistribute ospf match external1 metric 200

The following example redistributes OSPFv3 external type 2 routes in BGP address-family IPv6 unicast configuration mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# redistribute ospf match external2

The following example redistributes static routes into BGP4 and specifies a metric of 200.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# redistribute static metric 200

The following example redistributes directly connected routes into BGP4+.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# redistribute connected

The following example redistributes directly connected routes into IS-IS.

device# configure terminal
device(config)# router bgp
device(config-isis-router)# address-family ipv6 unicast 
device(config-router-isis-ipv6u)# redistribute connected

The following example redistributes BGP routes and specifies that route-map "rm7" be consulted in OSPF VRF configuration mode.

device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# redistribute bgp route-map rm7

The following example redistributes OSPF routes and specifies a type1 external route in OSPFv3 VRF configuration mode.

device# configure terminal
device(config)# ipv6 router ospf
device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute ospf metric-type type1