H3C Technologies H3C S12500-X Series Switches User Manual

Page 81

Advertising
background image

74

# Reserve global-type VLAN interface resources. In this example, VLAN-interfaces 3000 to 3500

are reserved.

[SwitchA] reserve-vlan-interface 3000 to 3500 global

# Create the VSI vpna and VXLAN 10.

[SwitchA] vsi vpna

[SwitchA-vsi-vpna] vxlan 10

[SwitchA-vsi-vpna-vxlan10] quit

[SwitchA-vsi-vpna] quit

# Create the VSI vpnc and VXLAN 30.

[SwitchA] vsi vpnc

[SwitchA-vsi-vpnc] vxlan 30

[SwitchA-vsi-vpnc-vxlan30] quit

[SwitchA-vsi-vpnc] 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

# Create a VXLAN tunnel to Switch B. The tunnel interface name is Tunnel 1.

[SwitchA] interface tunnel 1 mode vxlan

[SwitchA-Tunnel1] source 1.1.1.1

[SwitchA-Tunnel1] destination 2.2.2.2

[SwitchA-Tunnel1] quit

# Create a VXLAN tunnel to Switch C. The tunnel interface name is Tunnel 2.

[SwitchA] interface tunnel 2 mode vxlan

[SwitchA-Tunnel2] source 1.1.1.1

[SwitchA-Tunnel2] destination 3.3.3.3

[SwitchA-Tunnel2] quit

# Assign Tunnel 1 and Tunnel 2 to VXLAN 10.

[SwitchA] vsi vpna

[SwitchA-vsi-vpna] vxlan 10

[SwitchA-vsi-vpna-vxlan10] tunnel 1

[SwitchA-vsi-vpna-vxlan10] tunnel 2

[SwitchA-vsi-vpna-vxlan10] quit

[SwitchA-vsi-vpna] quit

# Assign Tunnel 2 to VXLAN 30.

[SwitchA] vsi vpnb

[SwitchA-vsi-vpnb] vxlan 30

[SwitchA-vsi-vpnb-vxlan30] tunnel 2

[SwitchA-vsi-vpnb-vxlan30] quit

[SwitchA-vsi-vpnb] quit

# Create VLAN 2, assign FortyGigE 1/0/1 to the VLAN, and create VLAN-interface 2.

[SwitchA] vlan 2

[SwitchA–vlan2] port fortygige 1/0/1

[SwitchA–vlan2] quit

[SwitchA] interface vlan-interface 2

Advertising
This manual is related to the following products: