H3C Technologies H3C S12500-X Series Switches User Manual

Page 82

Advertising
background image

75

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

[SwitchA] interface fortygige 1/0/1

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

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

# Map Ethernet service instance 1000 to the VSI vpna.

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

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

[SwitchA-FortyGigE1/0/1] quit

# Create VSI-interface 1 and assign the interface an IP address. The IP address will be used as the

gateway address for VXLAN 10.

[SwitchA] interface vsi-interface 1

[SwitchA-Vsi-interface1] ip address 10.1.1.1 255.255.255.0

# Specify VSI-interface 1 as a distributed gateway and enable local proxy ARP on the interface.

[SwitchA-Vsi-interface1] distributed-gateway local

[SwitchA-Vsi-interface1] local-proxy-arp enable

[SwitchA-Vsi-interface1] quit

# Specify VSI-interface 1 as the gateway interface for the VSI vpna.

[SwitchA] vsi vpna

[SwitchA-vsi-vpna] gateway vsi-interface 1

[SwitchA-vsi-vpna] quit

# Create VSI-interface 2 and assign the interface an IP address. The IP address will be used as the
gateway address for VXLAN 30.

[SwitchA] interface vsi-interface 2

[SwitchA-Vsi-interface2] ip address 20.1.1.1 255.255.255.0

# Specify VSI-interface 2 as a distributed gateway and enable local proxy ARP on the interface.

[SwitchA-Vsi-interface2] distributed-gateway local

[SwitchA-Vsi-interface2] local-proxy-arp enable

[SwitchA-Vsi-interface2] quit

# Specify VSI-interface 2 as the gateway interface for the VSI vpnc.

[SwitchA] vsi vpnc

[SwitchA-vsi-vpnc] gateway vsi-interface 2

[SwitchA-vsi-vpnc] quit

# Configure a default route. Set the next hop to 10.1.1.2 (VSI-interface 1 on Switch B).

[SwitchA] ip route-static 0.0.0.0 0 vsi-interface 1 10.1.1.2

3.

Configure Switch B:
# Enable L2VPN.

<SwitchB> system-view

[SwitchB] l2vpn enable

# Reserve global-type VLAN interface resources. In this example, VLAN-interfaces 3000 to 3500

are reserved.

[SwitchB] reserve-vlan-interface 3000 to 3500 global

# Create the VSI vpna and VXLAN 10.

[SwitchB] vsi vpna

[SwitchB-vsi-vpna] vxlan 10

[SwitchB-vsi-vpna-vxlan10] quit

[SwitchB-vsi-vpna] quit

Advertising
This manual is related to the following products: