Configuring VXLAN in Distributed Gateway Mode Using BGP EVPN

Distributed VXLAN gateways can be configured to address problems that occur in centralized gateway networking. Such problems include sub-optimal forwarding paths and bottlenecks on Layer 3 gateways in terms of ARP or ND entry specifications.

Usage Scenario

In legacy networking, a centralized Layer 3 gateway is deployed on a spine node. On the network shown in Figure 1, packets across different networks must be forwarded through a centralized Layer 3 gateway, resulting in the following problems:
  • Forwarding paths are not optimal. All Layer 3 traffic must be transmitted to the centralized Layer 3 gateway for forwarding.
  • The ARP or ND entry specification is a bottleneck. ARP or ND entries for tenants must be generated on the Layer 3 gateway, but only a limited number of ARP or ND entries are allowed by the Layer 3 gateway, impeding data center network expansion.
Figure 1 Centralized VXLAN gateway networking

To address these problems, distributed VXLAN gateways can be configured. On the network shown in Figure 2, Server1 and Server2 on different subnets both connect to Leaf1. When Server1 and Server2 communicate, traffic is forwarded only through Leaf1, not through any spine node.

Figure 2 Distributed VXLAN gateway networking
Distributed VXLAN gateways have the following characteristics:
  • Flexible deployment. A leaf node can function as both Layer 2 and Layer 3 VXLAN gateways.

  • Improved network expansion capabilities. Unlike a centralized Layer 3 gateway, which has to learn the ARP or ND entries of all servers on a network, a distributed gateway needs to learn the ARP or ND entries of only the servers attached to it. This addresses the problem of the ARP or ND entry specifications being a bottleneck for packet forwarding.

Either IPv4 or IPv6 addresses can be configured for the VMs and Layer 3 VXLAN gateway. This means that a VXLAN overlay network can be an IPv4 or IPv6 network. Figure 2 shows an IPv4 overlay network.

If only VMs on the same subnet need to communicate with each other, Layer 3 VXLAN gateways do not need to be deployed. If VMs on different subnets need to communicate with each other or VMs on the same subnet need to communicate with external networks, Layer 3 VXLAN gateways must be deployed.

The following table lists the differences in distributed gateway configuration between IPv4 and IPv6 overlay networks.

Configuration Task

IPv4 Overlay Network

IPv6 Overlay Network

Configure a VPN instance for route leaking with an EVPN instance.

Enable the IPv4 address family of the involved VPN instance and then complete other configurations in the VPN instance IPv4 address family view.

Enable the IPv6 address family of the involved VPN instance and then complete other configurations in the VPN instance IPv6 address family view.

Configure an IPv6 Layer 3 VXLAN gateway.

Configure an IPv4 address for the VBDIF interface of the Layer 3 gateway.

Configure an IPv6 address for the VBDIF interface of the Layer 3 gateway.

Configure a gateway on an IPv6 VXLAN to advertise a specific type of route.

  • For IP prefix routes, perform the configuration in the BGP-VPN instance IPv4 address family view.

  • For IRB routes, run the arp collect host enable command.

  • For IP prefix routes, run the arp vlink-direct-route advertise command in the IPv4 address family view of the VPN instance to which the involved VBDIF interface is bound.
  • For IP prefix routes, perform the configuration in the BGP-VPN instance IPv6 address family view.

  • For IRBv6 routes, run the ipv6 nd collect host enable command.

  • For IP prefix routes, run the nd vlink-direct-route advertise command in the IPv6 address family view of the VPN instance to which the involved VBDIF interface is bound.

Pre-configuration Tasks

Before configuring VXLAN in distributed gateway mode using BGP EVPN, complete the following task:

  • Configure IP connectivity on the network.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >