H3C Technologies H3C S6800 Series Switches User Manual
Page 43

35
[SwitchA] l2vpn enable
# Specify VXLAN 11111 as the reserved VXLAN for VXLAN IS-IS.
[SwitchA] reserved vxlan 11111
NOTE:
The reserved VXLAN must be the same across VTEPs.
# Create the VSI vpna and VXLAN 10000.
[SwitchA] vsi vpna
[SwitchA-vsi-vpna] vxlan 10000
[SwitchA-vsi-vpna-vxlan10000] quit
[SwitchA-vsi-vpna] quit
# Create the VSI vpnb and VXLAN 10001.
[SwitchA] vsi vpnb
[SwitchA-vsi-vpnb] vxlan 10001
[SwitchA-vsi-vpnb-vxlan10001] quit
[SwitchA-vsi-vpnb] quit
# Create the VSI vpnc and VXLAN 10002.
[SwitchA] vsi vpnc
[SwitchA-vsi-vpnc] vxlan 10002
[SwitchA-vsi-vpnc-vxlan10002] quit
[SwitchA-vsi-vpnc] quit
# Create the VSI vpnd and VXLAN 10003.
[SwitchA] vsi vpnd
[SwitchA-vsi-vpnd] vxlan 10003
[SwitchA-vsi-vpnd-vxlan10003] quit
[SwitchA-vsi-vpnd] 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
[SwitchA-Loopback0] ip address 1.1.1.1 255.255.255.255
[SwitchA-Loopback0] quit
# Configure the NVE tunnel interface Tunnel 0. ENDP will set up VXLAN tunnels by using settings
on the NVE tunnel.
[SwitchA] interface tunnel 0 mode nve
[SwitchA-Tunnel0] source 1.1.1.1
[SwitchA-Tunnel0] network-id 1
# Enable ENDS on the NVE tunnel interface.
[SwitchA-Tunnel0] vxlan neighbor-discovery server enable
[SwitchA-Tunnel0] quit
# On FortyGigE 1/0/1, configure Ethernet service instance 1000 to match VLAN 2. Map the
service instance to the VSI vpna.
[SwitchA] interface fortygige 1/0/1
[SwitchA-FortyGigE1/0/1] service-instance 1000
[SwitchA-FortyGigE1/0/1-srv1000] encapsulation s-vid 2
[SwitchA-FortyGigE1/0/1-srv1000] xconnect vsi vpna