Setting the forwarding mode for vxlans, Creating a vxlan on a vsi – H3C Technologies H3C S12500-X Series Switches User Manual
Page 17
10
4.
Reboot the device.
For more information about setting the system operating mode, see device management in Fundamentals
Configuration Guide.
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
If you enable Layer 3 forwarding for VXLANs, you must reserve one global-type VLAN interface resource
for each VXLAN before it is created. The interface number of a reserved VLAN interface can be different
from the VXLAN ID. For more information about reserving global-type VLAN interface resources, see
VLAN configuration in Layer 2—LAN Switching Configuration Guide.
To create 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 are created.
4.
(Optional.) Configure a
VSI description.
description text
By default, a VSI does not have
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 are created.
You can create only one VXLAN on a VSI.
The VXLAN ID must be unique for each
VSI.