Configures the device to redistribute IPv4 and IPv6 routes from one routing domain to another.
The device does not redistribute routing information.
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
IS-IS is supported on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".
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
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.
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