H3C Technologies H3C S12500-X Series Switches User Manual

Page 44

Advertising
background image

37

[SwitchB-vsi-vpnb-vxlan10001] quit

[SwitchB-vsi-vpna] quit

# Assign an IP address to Loopback 0.

[SwitchB] interface loopback0

[SwitchB-Loopback0] ip address 2.2.2.2 255.255.255.255

[SwitchB-Loopback0] quit

# 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

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

[SwitchB] vlan 2 to 5

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

service instance 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, 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

# Enable Layer 2 forwarding for VXLANs.

[SwitchC] undo vxlan ip-forwarding

# 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

Advertising
This manual is related to the following products: