9Setting the forwarding mode for VXLANsStep Command Remarks1. Enter system view. system-view N/A2. Enable Layer 2 or Layer3 forwarding for VXLANs.• Enable Layer 2forwarding:undo vxlanip-forwarding• Enable Layer 3forwarding:vxlan ip-forwardingBy default, Layer 3 forwarding is enabledfor VXLANs.If the VTEP is not a VXLAN IP gateway,enable Layer 2 forwarding for VXLANs. Ifthe VTEP is a VXLAN IP gateway, enableLayer 3 forwarding for VXLANs. For moreinformation about VXLAN IP gateways,see "Configuring VXLAN IP gateways."You must delete all VSIs, VSI interfaces,and VXLAN tunnel interfaces before youcan change the forwarding mode.Creating a VXLAN on a VSIStep Command Remarks1. Enter system view. system-view N/A2. Enable L2VPN. l2vpn enable By default, L2VPN is disabled.3. Create a VSI and enter VSIview. vsi vsi-name By default, no VSIs exist.4. (Optional.) Configure a VSIdescription. description text By default, a VSI does not have adescription.5. Enable the VSI. undo shutdown By default, a VSI is enabled.6. Create a VXLAN and enterVXLAN view. vxlan vxlan-idBy default, no VXLANs exist.You can create only one VXLAN ona VSI. The VXLAN ID must beunique for each VSI.Configuring a VXLAN tunnelThis task provides basic VXLAN tunnel configuration. For more information about tunnelconfiguration and commands, see Layer 3—IP Services Configuration Guide and Layer 3—IPServices Command Reference.Make sure the following VXLAN tunnels are not associated with the same VXLAN when they havethe same tunnel destination IP address:• A VXLAN tunnel automatically created by EVPN.• A manually created VXLAN tunnel.For more information about EVPN, see EVPN Configuration Guide.To configure a VXLAN tunnel:Step Command Remarks1. Enter system view. system-view N/A