Users Guide

Table Of Contents
â—‹ Redistribute leaked EVPN routes in BGP-AF-CONFIGURATION mode.
redistribute l2vpn evpn [route-map rmap-name]
â—‹ Use the following command to redistribute leaked routes across routing protocols as available:
redistribute {connected | bgp | ospf | static | l2vpn evpn}
Use any of the supported match or set attributes as required.
Example - Redistribute leaked IPv4 OSPF routes from one VRF instance to the OSPF process of another VRF
instance
In the following example, a route map exports only the OSPF routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_ospf
OS10(config-route-map)# match source-protocol ospf
OS10(config-route-map)# match route-type external type-2
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ip route-export 1:1 route-map export_ospf
OS10(conf-vrf)# ip route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ip route-import 1:1
OS10(conf-vrf)# ip route-export 2:2 route-map export_ospf
OS10(conf-vrf)# exit
OS10(config)# router ospf 1 vrf vrf2
OS10(config-router-ospf-1)# redistribute imported-ospf-routes
Example - Redistribute leaked IPv6 OSPF routes from one VRF instance to the OSPF process of another VRF
instance
In the following example, a route map exports only the OSPF routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_ospf
OS10(config-route-map)# match source-protocol ospf
OS10(config-route-map)# match route-type external type-2
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ipv6 route-export 1:1 route-map export_ospf
OS10(conf-vrf)# ipv6 route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ipv6 route-import 1:1
OS10(conf-vrf)# ipv6 route-export 2:2 route-map export_ospf
OS10(conf-vrf)# exit
OS10(config)# router ospfv3 1 vrf vrf2
OS10(config-router-ospfv3-1)# redistribute imported-ospf-routes
Example - Redistribute leaked IPv4 iBGP routes from one VRF instance to the BGP process of another VRF instance
In the following example, a route map exports only the iBGP routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_iBGP
OS10(config-route-map)# match source-protocol bgp ibgp
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ip route-export 1:1 route-map export_iBGP
OS10(conf-vrf)# ip route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ip route-import 1:1
OS10(conf-vrf)# ip route-export 2:2 route-map export_iBGP
OS10(config)# router bgp 65000
OS10(config-router-bgp-65000)# vrf vrf2
OS10(config-router-bgp-65000-vrf)# address-family ipv4 unicast
OS10(configure-router-bgpv4-vrf-af)# redistribute imported-bgp-routes vrf vrf1
Example - Redistribute leaked IPv6 iBGP routes from one VRF instance to the BGP process of another VRF instance
In the following example, a route map exports only the iBGP routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_iBGP
OS10(config-route-map)# match source-protocol bgp ibgp
Layer 3
743