API Guide

Supported
releases
10.4.2.0 or later
redistribute l2vpn evpn
Redistributes L2VPN EVPN routes into BGP and OSPF IPv4/IPv6 routes.
Syntax
redistribute l2vpn evpn [route-map map name]
Parameters
route-map map-name — (Optional) Filter the L2VPN EVPN routes that are redistributed in BGP and
OSPF.
Default None
Command Mode ROUTER-BGPv4-AF, ROUTER-BGPv6-AF, ROUTER-OSPF, or ROUTER-OSPFv6
Usage Information Use the redistribute l2vpn evpn command to redistribute the L2VPN EVPN routes learned in non-
default tenant VRFs for BGP and or OSPF IPv4/IPv6 routing.
Example
OS10(config)# router bgp 101
OS10(conf-router-bgp-101)# vrf blue
OS10(conf-router-bgp-101-vrf)# address-family ipv4 unicast
OS10(configure-router-bgpv4-af)# redistribute l2vpn evpn
OS10(config)# router ospf 1 vrf GREEN
OS10(config-router-ospf-1)# redistribute l2vpn evpn
OS10(config)# router ospfv3 2 vrf GREEN
OS10(config-router-ospfv3-2)# redistribute l2vpn evpn
Supported
Releases
10.5.1 or later
route-target
Configures the Route Target (RT) values that EVPN routes use.
Syntax
route-target {auto | value {import | export | both} [asn4]}
Parameters
value {import
| export |
both}
Configure an RT import or export value, or both values in the format 2-octet-ASN:4-
octet-number or 4-octet-ASN:2-octet-number.
The 2-octet ASN or number is 1 to 65535.
The 4-octet ASN or number is 1 to 4294967295.
auto
Configure the RT import and export values to automatically generate.
asn4
(Optional) Advertises a 4-byte AS number in RT values.
Default Not configured
Command mode EVPN-EVI and EVPN-VRF
Usage information
A RT determines how EVPN routes distribute among EVPN instances. Configure each RT with an import and
export value. When the EVPN routes advertise, the RT export value configured for export attaches to each route.
The receiving VTEP compares a route export value with the local RT import value. If the values match, the routes
download and install on the VTEP.
For 2-byte autonomous systems, the RT auto-configures as Type 0 from the 2-byte AS and the 3-byte VNI—
Type encoded as 0x0002.
For 4-byte autonomous systems, the RT auto-configures as Type 2 from the 4-byte AS and the 2-byte EVI—
Type encoded as 0x0202.
66 BGP EVPN for VXLAN