Route Type 5 IP Routing Instance
This section provides an overview of the Route Type 5 routing instance feature and its configuration on the QFX5220, QFX5230, QFX5240, QFX5241 Switches.
Overview
You can use EVPN-VXLAN to extend the Layer 2 connectivity between the different data centers using route types. Route types establish a session between the provider edge and the customer edge. There are many route types such as Type 1 route, Type 2 route, Type 3 route, Type 4 route, Type 5 route, Type 6 route, Type 7 route, and Type 8 route. For more information about different route types, see Defining EVPN-VXLAN Route Types.
A Type 5 route (also referred to as the IP prefix route) is used to enable communication between data centers when the Layer 2 connection does not extend across data centers and the IP subnet in a Layer 2 domain is confined within a single data center. In this scenario, the Type 5 route enables connectivity across data centers by advertising the IP prefixes assigned to the VXLANs confined within a single data center. The data packets are sent as Layer 2 Ethernet frames encapsulated in the VXLAN header. Additionally, the gateway device for the data center performs Layer 3 routing and provides an IRB functionality.
For more information about Route Type 5 implementation in an EVPN-VXLAN environment, see Implementing Pure Type 5 Routes in an EVPN-VXLAN Environment.
Configure Route Type 5 IP Routing Instance
To configure a Route 5 Type (RT5) IP routing instance on a your switch, you need to use a
supported Layer 2 (L2) instance type (see instance-type) in which you can enable the EVPN
protocol with other parameters such as an encapsulation type, a route distinguisher, and a
route target. The supported instance-type options for the EVPN protocol includes the
evpn instance type (default), virtual-switch instance
type, and mac-vrf instance type.
evpn.-
Configure a VRF routing instance:
set routing-instances VRF-NAME instance-type vrf set routing-instances VRF-NAME route-distinguisher RD-ASN:RD-NUM set routing-instances VRF-NAME vrf-target target:RT-ASN:RT-NUM
-
Configure the EVPN protocol with Type 5 (IP prefix routes).
set routing-instances VRF-NAME protocols evpn ip-prefix-routes advertise direct-nexthop set routing-instances VRF-NAME protocols evpn ip-prefix-routes encapsulation vxlan set routing-instances VRF-NAME protocols evpn ip-prefix-routes vni VNI-ID set routing-instances VRF-NAME protocols evpn ip-prefix-routes export EXPORT-POLICY-NAME
-
Configure routing options:
set routing-instances VRF-NAME routing-options static route PREFIX/LEN discard set routing-instances VRF-NAME routing-options multipath
-
Configure interfaces, the route distinguisher, and the VRF target:
set routing-instances VRF-NAME interface INTERFACE-1 set routing-instances VRF-NAME interface INTERFACE-2 set routing-instances VRF-NAME route-distinguisher RD-IP:RD-VALUE set routing-instances VRF-NAME vrf-target target:TARGET-ASN-OR-IP:TARGET-ID set routing-instances VRF-NAME vrf-table-label
For more information about RT5 configuration, see Example: Selectively Enable DLB with a Firewall Filter Match Condition.
Verify RT5 IP Routing Instance Configuration
Run the following sample commands to verify RT5 routing instance configuration:
show bgp summary show route table VRF-NAME.inet.0 show route table bgp.evpn.0 show route receive-protocol bgp neighbor
References
-
For more information about how to configure seamless type-5 to type-5 stitching for EVPN-VXLAN, see Configuring Seamless Type-5 to Type-5 Stitching for EVPN-VXLAN.
-
For more information about EVPN type-5 route with VXLAN encapsulation, see EVPN Type 5 Route with VXLAN Encapsulation for EVPN-VXLAN.