< Home

policy vpn-target (BGP-EVPN address family view)

Function

The policy vpn-target command enables a device to filter received EVPN routes by the EVPN-VPN target.

The undo policy vpn-target command cancels EVPN-VPN target-based filtering of received EVPN routes.

By default, EVPN-VPN target-based filtering of received EVPN routes is enabled.

Format

policy vpn-target

undo policy vpn-target

Parameters

None

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Usage Guidelines

After EVPN-VPN target-based filtering is enabled, only EVPN routes whose export EVPN-VPN target attribute matches the import EVPN-VPN target attribute are received.

Example

# Enable a device to implement EVPN-VPN target-based filtering for received EVPN routes.

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