Vxlan configuration examples, Unicast-mode vxlan configuration example, Network requirements – H3C Technologies H3C S12500-X Series Switches User Manual
Page 26: Configuration procedure
19
VXLAN configuration examples
Unicast-mode VXLAN configuration example
Network requirements
As shown in
:
•
Configure VXLAN 10 as a unicast-mode VXLAN on Switch A, Switch B, and Switch C to provide
Layer 2 connectivity for the VMs across the network sites.
•
Manually establish VXLAN tunnels and assign the tunnels to VXLAN 10.
•
Use the default MAC address learning method (MAC address learning in the data plane).
Figure 8 Network diagram
Configuration procedure
1.
Configure IP addresses and unicast routing settings:
# Assign IP addresses to interfaces, as shown in
. (Details not shown.)
# Configure OSPF on all transport network switches (Switches A through D). (Details not shown.)
2.
Configure Switch A:
# Enable L2VPN.
[SwitchA] l2vpn enable
# Enable Layer 2 forwarding for all VXLANs.
[SwitchA] undo vxlan ip-forwarding
# Create the VSI vpna and VXLAN 10.
[SwitchA] vsi vpna
[SwitchA-vsi-vpna] vxlan 10
[SwitchA-vsi-vpna-vxlan10] quit
[SwitchA-vsi-vpna] quit
# Assign an IP address to Loopback 0. The IP address will be used as the source IP address of the
VXLAN tunnels to Switch B and Switch C.
[SwitchA] interface loopback0