advertise route-reoriginate (BGP-VPN instance IPv6 address family view)

Function

The advertise route-reoriginate command enables a VPN instance to advertise regenerated routes to the VPNv6 address family.

The undo advertise route-reoriginate command disables a VPN instance from advertising regenerated routes to the VPNv6 address family.

By default, a VPN instance does not advertise regenerated routes to the VPNv6 address family.

Format

advertise { best-route | valid-routes } route-reoriginate

advertise route-reoriginate

undo advertise { best-route | valid-routes } route-reoriginate

undo advertise route-reoriginate

Parameters

Parameter Description Value
best-route

Advertises only optimal routes in the BGP VPN routing table to a VPN instance for regeneration.

-

valid-routes

Advertises only valid routes in the BGP VPN routing table to a VPN instance for regeneration.

-

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In an HVPN scenario, UPEs communicate with each other through SPEs and NPEs. If there are a large number of UPEs, the one-label-per-instance mode is configured for VPN instances, and the one-label-per-next-hop mode is configured for the VPNv6 address family on the SPE, the UPEs will receive a large number of labels. If the UPE has a small resource capacity, traffic may be incorrectly forwarded.

To address this problem, you can configure an SPE to leak the received VPNv6 routes into a VPN instance, which regenerates these routes and advertises them to the VPNv6 address family. Then, you can configure the one-label-per-instance mode for the VPN instance, when the re-originated VPNv6 routes are advertised to UPEs, each instance is assigned a label. This reduces the number of VPN labels of VPNv6 routes. To enable a VPN instance to advertise regenerated routes to the VPNv6 address family, run the advertise route-reoriginate command on an SPE. The regenerated routes carry the RD configured for the VPN instance, and the RT of the VPN instance is added to the original routes.

Follow-up Procedure

To enable a device to advertise routes regenerated in the VPNv6 address family to a BGP VPNv6 peer, run the peer advertise route-reoriginated vpnv6 command.

Precautions

If best-route or valid-route is not specified, all routes in the BGP VPN routing table are advertised to the VPN instance and then regenerated.

Example

# Configure a device to advertise only optimal routes in a BGP VPN routing table to a VPN instance so that the optimal routes can be regenerated.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpna] ipv6-family
[*HUAWEI-vpn-instance-vpna-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv6] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv6] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpn1
[*HUAWEI-bgp-vpn1] advertise best-route route-reoriginate
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >