(Optional) Configuring Route Regeneration

On an HVPN, UPEs can communicate with each other through SPEs and NPEs. You can configure route regeneration on SPEs to reduce the number of VPN labels assigned to VPNv4 routes received by the UPEs.

Context

On the HVPN shown in Figure 1, different UPEs communicate with each other through SPEs and NPEs. When there are a large number of UPEs, if the per instance per label mode is configured for the VPN instances and the per next hop per label mode is configured for the VPNv4 address family of the SPEs, the UPEs have to receive a large number of labels. If the UPEs have comparatively low capacity, a traffic forwarding error may occur.

To solve this problem, configure route regeneration on the SPEs so that the VPNv4 routes received by the SPEs are imported into the VPN instances. The VPN instances regenerate these routes and then advertise them to the VPNv4 address family. Because the per instance per label mode is configured for the VPN instances, one label is allocated per VPN instance when the regenerated routes are advertised to the UPEs, which reduces the number of VPN labels assigned to VPNv4 routes.

Figure 1 HVPN topology

Perform the following steps on each SPE.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family vpn-instance vpn-instance-name

    The BGP-VPN instance IPv4 address family view is displayed.

  4. Run advertise [ best-route | valid-routes ] route-reoriginate

    The VPN instance is configured to advertise regenerated routes to the VPNv4 address family.

  5. Run commit

    The configuration is committed.

  6. Run quit

    Return to the system view.

  7. Run bgp as-number

    The BGP view is displayed.

  8. Run ipv4-family vpnv4

    The BGP-VPNv4 address family view is displayed.

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

    The ability to exchange BGP VPNv4 routes with the specified BGP peer is enabled.

  10. Run peer { ipv4-address | group-name } advertise route-reoriginated vpnv4

    The SPE is configured to advertise regenerated routes in the VPNv4 address family to the BGP VPNv4 peer.

  11. Run commit

    The configuration is committed.

    To reduce the number of VPN routes assigned to the VPNv4 routes received by a UPE and use a route policy to prevent an SPE from advertising its received original routes to a peer, perform configurations according to Using a Routing Policy to Filter the BGP Routes to Be Advertised.

Verifying the Route Regeneration Configuration

Run the display bgp vpnv4 all routing-table network to check information about the VPNv4 routes. Each regenerated VPNv4 route is displayed with the reoriginated attribute.

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