1707
UPE is a kind of special VPNv4 peer. It accepts only one default route for each
related VPN instance on an SPE, rather than common VPNv4 routes. An SPE is a
common VPN peer.
Example # Configure peer 1.1.1.1 as a UPE.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe
policy vpn-target
Syntax policy vpn-target
undo policy vpn-target
View BGP-VPNv4 subaddress family view/BGP-L2VPN address family view
Parameter None
Description Use the
policy vpn-target command to enable VPN target filtering for received
VPNv4 routes.
Use the
undo policy vpn-target command to disable the filtering, permitting all
VPNv4 routes.
Only VPNv4 routes with export route target attributes matching the local import
route target attributes are added into the routing table.
By default, the VPN target filtering function is enabled for received VPNv4 routes.
n
The command applies to inter-provider VPN option B schemes.
Example # In BGP-VPNv4 subaddress family view, enable VPN target filtering for received
VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] policy vpn-target
# In BGP-L2VPN address family view, enable VPN target filtering for received
VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] policy vpn-target