Configuration procedure

To configure a distributed VXLAN IP gateway:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a VSI interface and enter VSI interface view.

interface vsi-interface vsi-interface-id

By default, no VSI interfaces exist.

3. Assign an IPv4 or IPv6 address to the VSI interface.

  • Assign an IPv4 address:ip address ip-address { mask | mask-length } [ sub ]

  • Assign an IPv6 address:See IPv6 basics in Layer 3—IP Services Configuration Guide.

By default, no IPv4 or IPv6 address is assigned to a VSI interface.

This interface will be used as a gateway for VXLANs.

4. Specify the VSI interface as a distributed gateway.

distributed-gateway local

By default, a VSI interface is not a distributed gateway.

5. Enable local proxy ARP or local ND proxy.

  • Enable local proxy ARP on an IPv4 gateway:local-proxy-arp enable [ ip-range startIP to endIP ]

  • Enable local ND proxy on an IPv6 gateway:local-proxy-nd enable

By default, local proxy ARP and local ND proxy are disabled.

For more information about the commands, see Layer 3—IP Services Command Reference.

6. Return to system view.

quit

N/A

7. (Optional.) Enable dynamic ARP or ND entry synchronization for distributed VXLAN IP gateways.

  • Enable dynamic ARP entry synchronization for distributed VXLAN IP gateways:arp distributed-gateway dynamic-entry synchronize

  • Enable dynamic ND entry synchronization for distributed VXLAN IP gatewaysipv6 nd distributed-gateway dynamic-entry synchronize

By default, dynamic ARP or ND entry synchronization is disabled for distributed VXLAN IP gateways.

When local proxy ARP or local ND proxy is enabled on distributed VXLAN IP gateways, each gateway learns ARP or ND information independently. A gateway does not forward ARP or ND packets destined for it to other gateways. For distributed VXLAN IP gateways to have the same ARP or ND entries, you must enable dynamic ARP or ND entry synchronization.

A controller can also synchronize ARP or ND entries among distributed VXLAN IP gateways. When you use a controller, do not enable dynamic ARP or ND entry synchronization.

8. Enter VSI view.

vsi vsi-name

N/A

9. Specify the VSI interface as the gateway interface for the VSI.

gateway vsi-interface vsi-interface-id

By default, no gateway interface is specified for a VSI.

Multiple VSIs cannot share a VSI interface.

10. Assign a subnet to the VSI.

gateway subnet { ipv4-address wildcard-mask | ipv6-address prefix-length }

By default, no subnet exists on a VSI.