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).
policy vpn-target

policy vpn-target

Function

The policy vpn-target command configures a device to implement VPN target-based filtering for received routes.

The undo policy vpn-target command cancels VPN target-based filtering.

By default, the VPN-Target filtering is enabled.

NOTE:

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

Format

policy vpn-target

undo policy vpn-target

Parameters

None

Views

BGP-VPNv4 address family view, BGP-EVPN address family view, BGP multi-instance EVPN address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the networking of BGP/MPLS IP VPN, VPN target attributes are used to filter received VPN routes or label blocks. If VPN target attributes are not configured, received VPN routes or label blocks are discarded.

VPNs and VPN target attributes are not configured on the following devices in certain networking scenarios:
  • RRs in BGP/MPLS IP VPN
  • ASBRs (not functioning as PEs) in inter-AS BGP/MPLS IP VPN OptionB
In this case, VPN routes or label blocks are not saved on the RRs or ASBRs.

The RRs or ASBRs, however, need to save all VPN routes or label blocks sent from PEs. Therefore, the undo policy vpn-target command can be configured on the RRs or ASBRs to disable the filtering of VPN routes or label blocks.

Precautions

Running the undo policy vpn-target makes all VPN routes or label blocks from PEs received. Therefore, this command is configured only on devices of particular roles (RRs or ASBRs)

Example

# Configure a device to implement VPN target-based filtering for received VPNv4 routes.

<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] policy vpn-target
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 68705

Downloads: 374

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