Verifying the configuration – H3C Technologies H3C S12500-X Series Switches User Manual
Page 85
78
[SwitchC-vsi-vpnb] quit
# Create VLAN 4, assign FortyGigE 1/0/1 to the VLAN, and create VLAN-interface 4.
[SwitchC] vlan 4
[SwitchC–vlan4] port fortygige 1/0/1
[SwitchC–vlan4] quit
[SwitchC] interface vlan-interface 4
# On FortyGigE 1/0/1, create Ethernet service instance 1000 to match VLAN 4.
[SwitchC] interface fortygige 1/0/1
[SwitchC-FortyGigE1/0/1] service-instance 1000
[SwitchC-FortyGigE1/0/1-srv1000] encapsulation s-vid 4
# Map Ethernet service instance 1000 to the VSI vpnb.
[SwitchC-FortyGigE1/0/1-srv1000] xconnect vsi vpnb
[SwitchC-FortyGigE1/0/1-srv1000] quit
[SwitchC-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.
[SwitchC] interface vsi-interface 1
[SwitchC-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.
[SwitchC-Vsi-interface1] distributed-gateway local
[SwitchC-Vsi-interface1] local-proxy-arp enable
[SwitchC-Vsi-interface1] quit
# Specify VSI-interface 1 as the gateway interface for the VSI vpna.
[SwitchC] vsi vpna
[SwitchC-vsi-vpna] gateway vsi-interface 1
[SwitchC-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.
[SwitchC] interface vsi-interface 2
[SwitchC-Vsi-interface1] 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.
[SwitchC-Vsi-interface2] distributed-gateway local
[SwitchC-Vsi-interface2] local-proxy-arp enable
[SwitchC-Vsi-interface2] quit
# Specify VSI-interface 2 as the gateway interface for the VSI vpnb.
[SwitchC] vsi vpnb
[SwitchC-vsi-vpnb] gateway vsi-interface 2
[SwitchC-vsi-vpnb] quit
# Configure a static route. Set the next hop to 10.1.1.2 (VSI-interface 1 on Switch B).
[SwitchC] ip route-static 0.0.0.0 0 vsi-interface 1 10.1.1.2
Verifying the configuration
1.
Verify the VXLAN IP gateway settings on Switch A:
# Verify that the VXLAN tunnel interfaces are up on Switch A.
[SwitchA] display interface tunnel 2
Tunnel2