Configuring Route Import Across Address Families

In the BGP VPNv4/v6 address family, import remote EVPN IP prefix routes to generate VPNv4/v6 routes. In the EVPN address family, import remote VPNv4/v6 routes to generate EVPN IP prefix routes. Apply for SIDs in one-SID-per-route or one-SID-per-next-hop mode, so that traffic can be exchanged between the EVPN side and VPNv4/v6 side.

Procedure

  1. Run system-view

    The ASBR's system view is displayed.

    Perform the following steps to configure BGP VPNv4 and EVPN interworking.

    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. Run ipv4-family vpnv4

      The VPNv4 address family is enabled, and its view is displayed.

    4. Run import-rib evpn srv6 ip-prefix

      The function to import EVPN IP prefix routes to the BGP VPNv4 routing table is enabled.

    5. Run quit

      Exit the VPNv4 address family view.

    6. Run l2vpn-family evpn

      The EVPN address family is enabled, and its view is displayed.

    7. Run import-rib vpnv4 mpls

      The function to import BGP VPNv4 routes to the EVPN routing table is enabled.

    8. Run segment-routing ipv6 apply-sid per-nexthop import-rib vpnv4

      The function to apply for SIDs in one-SID-per-next-hop mode for imported VPNv4 routes is enabled.

    9. Run quit

      Exit the EVPN address family view.

    10. Run quit

      Exit the BGP instance view.

    11. Run commit

      The configuration is committed.

    Perform the following steps to configure BGP VPNv6 and EVPN interworking.

    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. Run ipv6-family vpnv6

      The VPNv6 address family is enabled, and its view is displayed.

    4. Run import-rib evpn srv6 ip-prefix

      The function to import EVPN IP prefix routes to the BGP VPNv6 routing table is enabled.

    5. Run quit

      Exit the VPNv6 address family view.

    6. Run l2vpn-family evpn

      The EVPN address family is enabled, and its view is displayed.

    7. Run import-rib vpnv6 mpls

      The function to import BGP VPNv6 routes to the EVPN routing table is enabled.

    8. Run segment-routing ipv6 apply-sid per-nexthop import-rib vpnv6

      The function to apply for SIDs in one-SID-per-next-hop mode for imported VPNv6 routes is enabled.

    9. Run quit

      Exit the EVPN address family view.

    10. Run quit

      Exit the BGP instance view.

    11. Run commit

      The configuration is committed.

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