< Home

policy vpn-target

Function

The policy vpn-target command filters the VPN routes or label blocks received with VPN-Target attribute.

The undo policy vpn-target command cancels the VPN-Target 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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the networking of BGP/MPLS IP VPN, Kompella VLL, Kompella VPLS and BGP AD 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 (PRs or ASBRs)

Example

# Perform VPN-Target filtering for the VPNv4 routes received.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] ipv4-family vpnv4
[sysname-bgp-af-vpnv4] policy vpn-target
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >