Configuring an L3VPN Instance on a DC Gateway

An L3VPN instance can be configured on a DC gateway to store and manage received UE routes and VPN routes destined for 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. 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.

  4. Run route-distinguisher route-distinguisher

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

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

    VPN targets for route exchange with L3VPN instances on remote devices are configured for the VPN instance IPv4/IPv6 address family.

    When the local device advertises EVPN routes to a remote device, the EVPN routes carry the export VPN targets configured using this command. The local device allows the EVPN routes received from remote devices to be imported into the local VPN instance IPv4/IPv6 address family routing table only when the VPN targets carried in these routes match the import VPN targets configured using this command.

  6. Run commit

    The configuration is committed.

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