Configuring a DCI Scenario with VXLAN EVPN Accessing MPLS EVPN IRB

In a DCI scenario with VXLAN EVPN accessing MPLS EVPN IRB, different cloud platforms are used for management. VXLAN tunnels are established for access to the DCI backbone network, over which EVPN MPLS is used to carry Layer 3 services.

Context

Gateways and DCI-PEs are separately deployed. EVPN is used as a control plane protocol to dynamically establish VXLAN tunnels. A DCI-PE runs EVPN to learn a VM's IP route from a DC and sends the learned host IP route to the peer DCI-PE through a BGP EVPN peer relationship to implement Layer 3 service forwarding between VMs.

On the network shown in Figure 1, the DC gateways GW1 and GW2 connect to the DCI backbone network where BGP EVPN is deployed. After BGP EVPN peer relationships and VXLAN tunnels are established between the DC gateways and DCI-PEs, host IP routes can be exchanged between different DCs, implementing communication between VMs in different DCs.

Figure 1 DCI scenario with VXLAN EVPN accessing MPLS EVPN IRB

Pre-configuration Tasks

Before configuring a DCI scenario with VXLAN EVPN accessing MPLS EVPN IRB, complete the following tasks:

  • Configure Layer 3 route reachability on the IPv4 network.

Procedure

  1. Configure an IGP on the DCI backbone network to ensure IP connectivity.
  2. Configure a VXLAN tunnel between each DCI-PE and the corresponding gateway. For configuration details, see VXLAN Configuration.
  3. Configure a VPN instance that can exchange routes with an EVPN instance.

    For IPv4 services, configure an IPv4 L3VPN instance.

    1. Run ip vpn-instance vpn-instance-name

      A VPN instance is created, and its view is displayed.

    2. Run ipv4-family

      The VPN instance IPv4 address family is enabled, and its view is displayed.

    3. Run route-distinguisher route-distinguisher

      An RD is configured for the VPN instance IPv4 address family.

    4. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ]

      The VPN targets used by the current VPN instance IPv4 address family to exchange routes with the L3VPN instance on the remote PE are configured.

    5. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ] evpn

      The VPN targets used by the current VPN instance IPv4 address family to exchange routes with the EVPN instance are configured.

    6. Run evpn mpls routing-enable

      The function to generate and advertise EVPN IP prefix routes and IRB routes is enabled.

    7. (Optional) Run tnl-policy policy-name evpn

      The specified tunnel policy is associated with EVPN routes leaked into the VPN instance IPv4 address family.

    8. (Optional) Run import route-policy policy-name evpn

      The VPN instance IPv4 address family is associated with an import route-policy that is used to filter routes imported from the EVPN instance into the VPN instance IPv4 address family. To control route import from an EVPN instance into the VPN instance IPv4 address family more precisely, perform this step to specify an import route-policy to filter routes and set attributes for eligible routes.

    9. (Optional) Run export route-policy policy-name evpn

      The VPN instance IPv4 address family is associated with an export route-policy that is used to filter routes advertised from the VPN instance IPv4 address family to the EVPN instance. To control route advertisement from the VPN instance IPv4 address family to an EVPN instance more precisely, perform this step to specify an export route-policy and set attributes for eligible routes.

    10. Run quit

      Exit the VPN instance IPv4 address family view.

    11. Run quit

      Exit the VPN instance view.

    For IPv6 services, configure an IPv6 L3VPN instance.

    1. Run ip vpn-instance vpn-instance-name

      A VPN instance is created, and its view is displayed.

    2. Run ipv6-family

      The VPN instance IPv6 address family is enabled, and its view is displayed.

    3. Run route-distinguisher route-distinguisher

      An RD is configured for the VPN instance IPv6 address family.

    4. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ]

      The VPN targets used by the current VPN instance IPv6 address family to exchange routes with the L3VPN instance on the remote PE are configured.

    5. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ] evpn

      The VPN targets used by the current VPN instance IPv6 address family to exchange routes with the EVPN instance are configured.

    6. Run evpn mpls routing-enable

      The function to generate and advertise EVPN IP prefix routes and IRB routes is enabled.

    7. (Optional) Run tnl-policy policy-name evpn

      The specified tunnel policy is associated with EVPN routes leaked to the VPN instance IPv6 address family.

    8. (Optional) Run import route-policy policy-name evpn

      The VPN instance IPv6 address family is associated with an import route-policy that is used to filter routes imported from the EVPN instance into the VPN instance IPv6 address family. To control route import from an EVPN instance into the VPN instance IPv6 address family more precisely, perform this step to specify an import route-policy to filter routes and set route attributes for eligible routes.

    9. (Optional) Run export route-policy policy-name evpn

      The VPN instance IPv6 address family is associated with an export route-policy that is used to filter routes advertised from the VPN instance IPv6 address family to the EVPN instance. To control route advertisement from the VPN instance IPv6 address family to an EVPN instance more precisely, perform this step to specify an export route-policy to filter routes and set route attributes for eligible routes.

    10. Run quit

      Exit the VPN instance IPv6 address family view.

    11. Run quit

      Exit the VPN instance view.

  4. Establish on the local DCI-PE a BGP EVPN peer relationship with the remote DCI-PE, and enable the local DCI-PE to advertise routes re-originated by the EVPN address family to the BGP EVPN peer.
    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      BGP is enabled, and its view is displayed.

    3. (Optional) Run router-id ipv4-address

      A BGP router ID is configured.

    4. Run peer ipv4-address as-number { as-number-plain | as-number-dot }

      The remote PE is configured as a peer.

    5. (Optional) Run peer ipv4-address connect-interface interface-type interface-number [ ipv4-source-address ]

      A source interface and a source address are specified for the setup of a TCP connection with the BGP peer.

      If loopback interfaces are used to establish a BGP connection, you are advised to run the peer connect-interface command on both ends to ensure the connectivity. If this command is run on only one end, the BGP connection may not be established.

    6. Run l2vpn-family evpn

      The BGP-EVPN address family view is displayed.

    7. Run peer { ipv4-address | group-name } enable

      The function to exchange EVPN routes with a specified peer or peer group is enabled.

    8. Run peer { ipv4-address | group-name } import reoriginate

      The function to add the re-origination flag to routes received from BGP EVPN peers is enabled.

    9. Configure types of routes to be advertised:

      • If you want the network to carry only Layer 2 services, perform the following configurations:
        1. To configure EVPN route re-origination and enable the function to advertise re-originated EVPN routes to BGP EVPN peers, run the peer { ipv4-address | group-name } advertise route-reoriginated evpn { mac-ip | mac } command.

        2. To enable the function to advertise ARP (ND) routes, run the peer { ipv4-address | group-name } advertise { arp | nd } command.

      • If you want the network to carry only Layer 3 services, perform the following configurations:
        1. To configure EVPN route re-origination and enable the function to advertise re-originated EVPN routes to BGP EVPN peers, run the peer { ipv4-address | group-name } advertise route-reoriginated evpn { mac-ip | ip | mac-ipv6 | ipv6 } command.

        2. To enable the function to advertise IRB/IRBv6 routes, run the peer { ipv4-address | group-name } advertise { irb | irbv6 } command.

      • If you want the network to carry both Layer 2 and Layer 3 services, perform the following configurations:
        1. To configure EVPN route re-origination and enable the function to advertise re-originated EVPN routes to BGP EVPN peers, run the peer { ipv4-address | group-name } advertise route-reoriginated evpn { mac | mac-ip | ip | mac-ipv6 | ipv6 } command.

        2. To enable the function to advertise IRB/IRBv6 routes, run the peer { ipv4-address | group-name } advertise { irb | irbv6 } command.

  5. (Optional) Configure AC access to the DCI backbone network on the DCI-PE. This enables flexible device deployment on the network.
    1. Run evpn

      The EVPN global configuration view is displayed.

    2. Run dci local-route advertise-to-mpls

      The function to advertise local routes carrying the VXLAN attribute based on the encapsulation type on the peer end is enabled.

    3. Run advertise vxlan-tunnel mac

      The function to advertise MAC routes learned from the static VXLAN side based on the encapsulation type on the peer end is enabled.

    4. Run quit

      Exit the EVPN global configuration view.

    5. Run bridge-domain bd-id

      The view of the BD to be bound to an EVPN instance is displayed.

    6. Run vxlan vni vni-id split-horizon-mode

      A VNI is created and bound to a BD, and split horizon is configured for packet forwarding.

    7. Run evpn binding vpn-instance vpn-instance-name [ bd-tag bd-tag ]

      The BD is bound to an EVPN instance. By specifying different bd-tag values, you can bind multiple BDs with different VLANs to the same EVPN instance and isolate services in these BDs.

    8. Run evpn-dci support ac-access

      AC access is configured on the stitching node.

    9. Run quit

      Exit the BD view.

  6. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >