H3C Technologies H3C S6800 Series Switches User Manual

Page 45

Advertising
background image

37

# Configure the NVE tunnel interface Tunnel 0. Specify the tunnel interface as an ENDC of the

ENDS at 1.1.1.1. ENDP will set up VXLAN tunnels by using settings on the NVE tunnel.

[SwitchB] interface tunnel 0 mode nve

[SwitchB-Tunnel0] source 2.2.2.2

[SwitchB-Tunnel0] network-id 1

[SwitchB-Tunnel0] vxlan neighbor-discovery client enable 1.1.1.1

[SwitchB-Tunnel0] quit

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

service instance to the VSI vpna.

[SwitchB] interface fortygige 1/0/1

[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, configure Ethernet service instance 2000 to match VLAN 3. Map the
service instance 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

[SwitchB-vxlan-isis] negotiate-vni enable

[SwitchB-vxlan-isis] mac-synchronization enable

[SwitchB-vxlan-isis] quit

4.

Configure Switch C:
# Enable L2VPN.

<SwitchC> system-view

[SwitchC] l2vpn enable

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

[SwitchC] reserved vxlan 11111

# 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

Advertising