cisco — Enabling Route Leaking between EVPN-enabled VRF and Global Routing Table

Example: Enable Route Leaking Between EVPN and Global Routing Table The following snippet shows a sample configuration for route leaking on a Leaf VTEP. Configuring EVPN VXLAN External Connectivity Enabling Route Leaking between EVPN-enabled VRF and Global Routing Table Command or Action Purpose Step 3 vrf definition vrf-name Example: Device(config)# vrf definition green Creates a VRF instance. Step 4 address-family {ipv4 | ipv6} Example: Device(config-vrf)# address-family ipv4 Configures the IPv4 or IPv6 address family and enters the VRF address family configuration mode. • Use the ipv4 keyword to configure IPv4 address family. • Use the ipv6 keyword to configure IPv6 address family.

Step 5 import {ipv4 | ipv6} unicast map import-route-map allow-evpn Example: Device(config-vrf-af)# import ipv4 unicast map RM-GL-TO-EVPN allow-evpn Specifies an import map to import IPv4 or IPv6 prefixes from the global routing table to a VRF table. Specify ipv4 or ipv6, which you specified in Step 4. The map import-route-map keyword specifies the route-map that defines the prefixes to import. In the example, RM-GL-TO-EVPN is the name of the route-map that defines the conditions and the IPv4 prefixes to import. Step 6 export {ipv4 | ipv6} unicast map export-route-map allow-evpn Example:

Device(config-vrf-af)# export ipv4 unicast map RM-EVPN-TO-GL allow-evpn Specifies a route map to export IPv4 or IPv6 prefixes to the global routing table. Specify ipv4 or ipv6, which you specified in Step 4. The map export-route-map keyword specifies the route-map that defines the prefixes to export. In the example, RM-EVPN-TO-GL is the name of the route-map that defines the conditions and the IPv4 prefixes to export. Step 7 exit-address-family Example: Device(config-vrf-af)# exit-address-family Exits VRF address family configuration mode and returns to VRF configuration mode. Configuring EVPN VXLAN External Connectivity 9