H3C Technologies H3C S12500-X Series Switches User Manual

Page 60

Advertising
background image

53

# Specify VXLAN 11111 as the reserved VXLAN for VXLAN IS-IS.

[SwitchB] reserved vxlan 11111

# Create the VSI vpna and VXLAN 10000.

[SwitchB] vsi vpna

[SwitchB-vsi-vpna] vxlan 10000

[SwitchB-vsi-vpna-vxlan10000] quit

[SwitchB-vsi-vpna] quit

# Create the VSI vpnb and VXLAN 10001.

[SwitchB] vsi vpnb

[SwitchB-vsi-vpnb] vxlan 10001

[SwitchB-vsi-vpnb-vxlan10001] quit

[SwitchB-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 A and Switch C.

[SwitchB] interface loopback0

[SwitchB-Loopback0] ip address 2.2.2.2 255.255.255.255

[SwitchB-Loopback0] quit

# Create a VXLAN tunnel to Switch A.

[SwitchB] interface tunnel 1 mode vxlan

[SwitchB-Tunnel1] source 2.2.2.2

[SwitchB-Tunnel1] destination 1.1.1.1

[SwitchB-Tunnel1] quit

# Create a VXLAN tunnel to Switch C.

[SwitchB] interface tunnel 3 mode vxlan

[SwitchB-Tunnel3] source 2.2.2.2

[SwitchB-Tunnel3] destination 3.3.3.3

[SwitchB-Tunnel3] quit

# Create VLANs 2 and 3, and assign FortyGigE 1/0/1 to these VLANs.

[SwitchB] vlan 2 to 3

[SwitchB] interface fortygige 1/0/1

[SwitchB-FortyGigE1/0/1] port link-type trunk

[SwitchB-FortyGigE1/0/1] port trunk permit vlan 2 to 3

# On FortyGigE 1/0/1, create Ethernet service instance 1000 to match VLAN 2. Map Ethernet
service instance 1000 to the VSI vpna.

[SwitchB-FortyGigE1/0/1] service-instance 1000

[SwitchB-FortyGigE1/0/1-srv1000] encapsulation s-vid 2

[SwitchB-FortyGigE1/0/1-srv1000] xconnect vsi vpna

[SwitchB-FortyGigE1/0/1-srv1000] quit

# On FortyGigE 1/0/1, create Ethernet service instance 2000 to match VLAN 3. Map Ethernet

service instance 2000 to the VSI vpnb.

[SwitchB-FortyGigE1/0/1] service-instance 2000

[SwitchB-FortyGigE1/0/1-srv2000] encapsulation s-vid 3

[SwitchB-FortyGigE1/0/1-srv2000] xconnect vsi vpnb

[SwitchB-FortyGigE1/0/1-srv2000] quit

[SwitchB-FortyGigE1/0/1] quit

# Start the VXLAN IS-IS process. Enable VXLAN autonegotiation and MAC advertisement.

[SwitchB] vxlan-isis

Advertising
This manual is related to the following products: