< Home

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.

Format

policy vpn-target

undo policy vpn-target

Parameters

None

Views

BGP-VPNv4 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the networking of BGP/MPLS IP VPN, Kompella VLL, and Kompella VPLS, 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, Kompella VPLS, or Kompella VLL
  • 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >