policy vpn-target

Use policy vpn-target to enable route target filtering for BGP MVPN routes. Only BGP MVPN routes of which the export route target attribute matches the local import route target attribute are added to the BGP MVPN routing table.

Use undo policy vpn-target to disable route target filtering for BGP MVPN routes.

Syntax

policy vpn-target

undo policy vpn-target

Default

Route target filtering is enabled for BGP MVPN routes.

Views

BGP IPv4 MVPN address family view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If the device needs to save all BGP MVPN routes, use the undo policy vpn-target command to disable route target filtering for BGP MVPN routes.

Examples

# Disable route target filtering for BGP IPv4 MVPN routes.

<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv4 mvpn
[Sysname-bgp-default-mvpn] undo policy vpn-target