VXLAN BGP EVPN
VXLAN BGP EVPN is a data center network overlay protocol suite that
-
enables scalable Layer 2 and Layer 3 connectivity between distributed network endpoints,
-
uses BGP EVPN as the control plane to advertise MAC/IP address bindings, and
-
supports multi-tenant network virtualization with enhanced operational flexibility.
VXLAN encapsulates Layer 2 frames in Layer 3 UDP packets, enabling scalable network overlays. BGP EVPN provides a standards-based control plane that supports dynamic endpoint discovery and efficient traffic forwarding.
VXLAN BGP EVPN can be used to interconnect multiple data center sites, providing secure and isolated tenant networks across the infrastructure.
Auto-derived route distinguishers
An auto-derived route distinguisher (rd auto) is a VPN address-mapping mechanism that
-
uses a Type 1 encoding format combining a 4-byte BGP Router ID and a 2-byte numbering field,
-
distinguishes between IP-VRF and MAC-VRF through different numbering schemes, and
-
enables unique identification across multiple VRFs.
In Cisco NX-OS, the auto-derived RD uses the IP address of the BGP Router ID (RID) for the 4-byte administrative field and the internal VRF identifier for the 2-byte numbering field (VRF ID). This format is specified in IETF RFC 4364 section 4.2.
The 2-byte numbering field is always derived from the VRF, but results in a different numbering scheme depending on its use for the IP-VRF or the MAC-VRF:
-
The 2-byte numbering field for the IP-VRF uses the internal VRF ID, which starts at 1 and increases incrementally. VRF IDs 1 and 2 are reserved for the default VRF and the management VRF, respectively. The first custom-defined IP VRF uses VRF ID 3.
-
The 2-byte numbering field for the MAC-VRF uses the VLAN ID + 32767, which results in 32768 for VLAN ID 1 and incrementing.
-
IP-VRF with BGP Router ID 192.0.2.1 and VRF ID 6: RD 192.0.2.1:6
-
MAC-VRF with BGP Router ID 192.0.2.1 and VLAN 20: RD 192.0.2.1:32787
Route-target autos
A route-target (RT) auto is a route-target assignment method that:
-
derives route-target values automatically based on system parameters,
-
uses the Type 0 extended community encoding as described in IETF RFC 4364, and
-
constructs the route-target using the Autonomous System Number (ASN) and the Service Identifier (VNI).
The auto-derived route-target (using import/export/both auto) is based on the Type 0 encoding format as described in IETF RFC 4364 section 4.2. This encoding allows a 2-byte administrative field and a 4-byte numbering field.
Within Cisco NX-OS, the auto-derived route-target uses the ASN for the 2-byte administrative field. It uses the VNI for the 4-byte numbering field.
In multi-AS environments, route-targets must match the correct ASN portion. You may need to define or rewrite them to ensure compatibility. For more information, see rewrite-evpn-rt-asn.
Examples of an auto-derived Route-Target (RT)
-
For 2-byte ASN:
-
IP-VRF within ASN 65001 and L3VNI 50001 - Route-Target 65001:50001
-
MAC-VRF within ASN 65001 and L2VNI 30001 - Route-Target 65001:30001
-
-
For 4-byte ASN:
-
IP-VRF within ASN 65656 and L3VNI 50001 - Route-Target 23456:50001
-
MAC-VRF within ASN 65656 and L2VNI 30001 - Route-Target 23456:30001
-
When a 4-byte ASN is used, the 2-byte ASN field is set to 23456 (AS_TRANS) as specified in IETF RFC 6793 section 9; this value is registered by IANA as a special-purpose AS number to represent 4-byte ASNs in 2-byte fields.
![]() Note |
Beginning with Cisco NX-OS Release 9.2(1), auto-derived Route-Target for 4-byte ASN is supported. |