9
Setting the forwarding mode for VXLANs
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable Layer 2 or Layer
3 forwarding for VXLANs.
•
Enable Layer 2
forwarding:
undo vxlan
ip-forwarding
•
Enable Layer 3
forwarding:
vxlan ip-forwarding
By default, Layer 3 forwarding is enabled
for VXLANs.
If the VTEP is not a VXLAN IP gateway,
enable Layer 2 forwarding for VXLANs. If
the VTEP is a VXLAN IP gateway, enable
Layer 3 forwarding for VXLANs. For more
information about VXLAN IP gateways,
see "
You must delete all VSIs, VSI interfaces,
and VXLAN tunnel interfaces before you
can change the forwarding mode.
Creating a VXLAN on a VSI
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable L2VPN.
l2vpn enable
By default, L2VPN is disabled.
3.
Create a VSI and enter VSI
view.
vsi
vsi-name
By default, no VSIs exist.
4.
(Optional.) Configure a VSI
description.
description
text
By default, a VSI does not have a
description.
5.
Enable the VSI.
undo shutdown
By default, a VSI is enabled.
6.
Create a VXLAN and enter
VXLAN view.
vxlan vxlan-id
By default, no VXLANs exist.
You can create only one VXLAN on
a VSI. The VXLAN ID must be
unique for each VSI.
Configuring a VXLAN tunnel
This task provides basic VXLAN tunnel configuration. For more information about tunnel
configuration and commands, see
Layer 3—IP Services Configuration Guide
and
Layer 3—IP
Services Command Reference
.
Make sure the following VXLAN tunnels are not associated with the same VXLAN when they have
the 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
Remarks
1.
Enter system view.
system-view
N/A