Configuring Encapsulation Methods
The default encapsulation mode for EVPN is MPLS over UDP. All packets on the fabric are encapsulated with the label allocated for the virtual machine interface. The label encoding and decoding is the same as for IP forwarding. Additional encapsulation methods supported for EVPN include MPLS over GRE and VXLAN. MPLS over UDP is different from MPLS over GRE only in the method of tunnel header encapsulation.
VXLAN has its own header and uses a VNID label to carry the traffic over the fabric. A VNID is assigned with every virtual network and is shared by all virtual machines in the virtual network. The VNID is mapped to the VRF of the virtual network to which it belongs.
The priority order in which to apply encapsulation methods is
determined by the sequence of methods set either from the Contrail
Web UI or in the
To configure the global VXLAN identifier mode:
From the Contrail Web UI, select Configure > Infrastucture > Global Config.
The Global Config options are displayed.
Click the edit icon .
The Edit Global Config window is displayed as shown in Figure 1.
Under Encapsulation Priority Order select one of the following:
MPLS over UDP
MPLS over GRE
Click the + plus symbol to the right of the first priority to add a second priority or third priority.
Use the following procedure to change the default encapsulation
method to VXLAN by editing the
VXLAN is only supported for EVPN
unicast. It is not supported for IP traffic or multicast traffic.
VXLAN priority and presence in the
encap.py file or configured in the Web UI is ignored for traffic not supported
To set the priority of encapsulation methods to VXLAN:
- Modify the
encap.pyfile found in the
The default encapsulation line is:
Modify the line to:
- After the status is modified, execute the following script:
python encap_set.py <add|update|delete> <username> <password> <tenant_name> <config_node_ip>
The configuration is applied globally for all virtual networks.