No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
apply-label per-nexthop

apply-label per-nexthop

Function

The apply-label per-nexthop command enables the ASBR to allocate labels for IPv4 VPN routes based on the next hop.

The undo apply-label per-nexthop command disables the ASBR from allocating labels for IPv4 VPN routes based on the next hop.

By default, next-hop-based label allocation for VPN routes is disabled on the ASBR, and a label is allocated to each VPNv4 route.

NOTE:

Only CE8860EI, CE8850EI, CE7855EI, CE7850EI, CE6870EI, CE6860EI, CE6856HI, CE6855HI, CE6851HI, CE6850HI, and CE6850U-HI support this command.

Format

apply-label per-nexthop

undo apply-label per-nexthop

Parameters

None

Views

BGP-VPNv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In inter-AS VPN Option B or HoVPN networking, if MPLS label resources on the ASBR or SPE are insufficient for the advertised VPNv4 routes to use, the apply-label per-nexthop command can be run to minimize MPLS label consumption on the ASBR.

By default, the ASBR allocates a label to each VPNv4 route when advertising it to an MP-BGP peer. If the apply-label per-nexthop command is run, the ASBR will allocate one label to all the routes with the same next hop and outgoing label. To make the routes learned from the same next hop have the same outgoing label, run the apply-label per-instance command on the PE. Otherwise, the effect of the apply-label per-nexthop command will be affected.

You can run the display ip fib statistics command to check the number of VPN routes.

Configuration Impact

After next-hop-based label allocation is enabled or disabled, the label allocated by the ASBR to a route changes, which leads to a transient loss of VPN packets.

Example

# In the BGP-VPNv4 view, enable the ASBR to allocate labels to IPv4 VPN routes based on the next hop.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family vpnv4
[HUAWEI-bgp-af-vpnv4] apply-label per-nexthop
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 42871

Downloads: 328

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next