beautypg.com

H3C Technologies H3C S12500-X Series Switches User Manual

Page 61

background image

54

[SwitchB-vxlan-isis] negotiate-vni enable

[SwitchB-vxlan-isis] mac-synchronization enable

[SwitchB-vxlan-isis] quit

4.

Configure Switch C:
# Enable L2VPN.

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

[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

# Create a VXLAN tunnel to Switch A.

[SwitchC] interface tunnel 2 mode vxlan

[SwitchC-Tunnel1] source 3.3.3.3

[SwitchC-Tunnel1] destination 1.1.1.1

[SwitchC-Tunnel1] quit

# Create a VXLAN tunnel to Switch B.

[SwitchC] interface tunnel 3 mode vxlan

[SwitchC-Tunnel1] source 3.3.3.3

[SwitchC-Tunnel1] destination 2.2.2.2

[SwitchC-Tunnel1] quit

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

[SwitchC] vlan 4 to 5

[SwitchC] interface fortygige 1/0/1

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

[SwitchC-FortyGigE1/0/1] port trunk permit vlan 4 to 5

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

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

[SwitchC-FortyGigE1/0/1-srv1000] encapsulation s-vid 4

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

This manual is related to the following products: