H3C Technologies H3C S6800 Series Switches User Manual
Page 61

53
# Create the VSI vpna and VXLAN 10002.
[SwitchC] vsi vpna
[SwitchC-vsi-vpna] vxlan 10002
[SwitchC-vsi-vpna-vxlan10002] quit
[SwitchC-vsi-vpna] quit
# Create the VSI vpnb and VXLAN 10003.
[SwitchC] vsi vpnb
[SwitchC-vsi-vpnb] vxlan 10003
[SwitchC-vsi-vpnb-vxlan10003] quit
[SwitchC-vsi-vpnb] 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 A and Switch B.
[SwitchC] interface loopback0
[SwitchC-Loopback0] ip address 3.3.3.3 255.255.255.255
[SwitchC-Loopback0] quit
# Create a VXLAN tunnel to Switch A.
[SwitchC] interface tunnel 2 mode vxlan
[SwitchC-Tunnel1] source 3.3.3.3
[SwitchC-Tunnel1] destination 1.1.1.1
[SwitchC-Tunnel1] quit
# Create a VXLAN tunnel to Switch B.
[SwitchC] interface tunnel 3 mode vxlan
[SwitchC-Tunnel1] source 3.3.3.3
[SwitchC-Tunnel1] destination 2.2.2.2
[SwitchC-Tunnel1] quit
# On FortyGigE 1/0/1, create Ethernet service instance 1000 to match frames from VLAN 4.
Map Ethernet service instance 1000 to the VSI vpna.
[SwitchC] interface fortygige 1/0/1
[SwitchC-FortyGigE1/0/1] service-instance 1000
[SwitchC-FortyGigE1/0/1-srv1000] encapsulation s-vid 4
[SwitchC-FortyGigE1/0/1-srv1000] xconnect vsi vpna
[SwitchC-FortyGigE1/0/1-srv1000] quit
# On FortyGigE 1/0/1, create Ethernet service instance 2000 to match frames from VLAN 5.
Map Ethernet service instance 2000 to the VSI vpnb.
[SwitchC-FortyGigE1/0/1] service-instance 2000
[SwitchC-FortyGigE1/0/1-srv2000] encapsulation s-vid 5
[SwitchC-FortyGigE1/0/1-srv2000] xconnect vsi vpnb
[SwitchC-FortyGigE1/0/1-srv2000] quit
[SwitchC-FortyGigE1/0/1] quit
# Start the VXLAN IS-IS process. Enable VXLAN autonegotiation and MAC advertisement.
[SwitchC] vxlan-isis
[SwitchC-vxlan-isis] negotiate-vni enable
[SwitchC-vxlan-isis] mac-synchronization enable
[SwitchC-vxlan-isis] quit