Configuring an L3VPN Instance on a DCGW

You can configure an L3VPN instance to store and manage received mobile phone routes and VPN routes reachable to VNFs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip vpn-instance vpn-instance-name

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

  3. Run vxlan vni vni-id

    A VNI is created and associated with the VPN instance.

  4. Enter the VPN instance IPv4/IPv6 address family view.

    • Run ipv4-family

      The VPN instance IPv4 address family view is displayed.

    • Run ipv6-family

      The VPN instance IPv6 address family view is displayed.

  5. Configure an RD for the VPN instance.

    • Run route-distinguisher route-distinguisher

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

    • Run route-distinguisher route-distinguisher

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

  6. Configure VPN targets for the VPN instance.

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

      VPN targets used to import routes into and from the remote device's L3VPN instance are configured for the VPN instance IPv4 address family.

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

      VPN targets used to import routes into and from the remote device's L3VPN instance are configured for the VPN instance IPv6 address family.

    When the local device advertises EVPN routes to the remote device, the EVPN routes carry the export VPN target configured using this command. When the local device receives an EVPN route from the remote end, the route can be imported into the routing table of the VPN instance IPv4/IPv6 address family only if the VPN target carried in the EVPN route is included in the import VPN target list of the VPN instance IPv4/IPv6 address family.

  7. Run quit

    Exit from the VPN instance IPv4/IPv6 address family view.

  8. Run quit

    Exit from the VPN instance view.

  9. Run interface vbdif bd-id

    A VBDIF interface is created, and the VBDIF interface view is displayed.

    The number of VBDIF interfaces to be created is the same as the number of planned BDs.

  10. Run ip binding vpn-instance vpn-instance-name

    The VBDIF interface is bound to the VPN instance.

  11. (Optional) Run ipv6 enable

    IPv6 is enabled on the interface. This step is mandatory if an IPv6 address is planned for the VBDIF interface.

  12. Configure an IPv4/IPv6 address for the VBDIF interface.

    • Run ip address ip-address { mask | mask-length }

      An IPv4 address is configured for the interface.

    • Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

      An IPv6 address is configured for the interface.

  13. Run vxlan anycast-gateway enable

    The distributed gateway function is enabled.

  14. Configure a DCGW to generate ARP (ND) entries for Layer 2 forwarding based on ARP/ND information in EVPN routes.

  15. Run commit

    The configuration is committed.

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