H3C Technologies H3C S12500-X Series Switches User Manual

Page 42

Advertising
background image

35

<SwitchA> system-view

[SwitchA] l2vpn enable

# Enable Layer 2 forwarding for VXLANs.

[SwitchA] undo vxlan ip-forwarding

# 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.

[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

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

[SwitchA] vlan 2 to 5

[SwitchA] interface fortygige 1/0/1

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

[SwitchA-FortyGigE1/0/1] port trunk permit vlan 2 to 5

Advertising
This manual is related to the following products: