R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
330
[Sysname] bgp 10
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer ebgp vpn-instance vpn1 route-policy comtest import
policy vpn-target (BGP-VPNv4 subaddress family
view/BGP-L2VPN address family view/BGP-VPLS address
family view)
Use policy vpn-target to enable route target filtering for received VPNv4 routes.
Use undo policy vpn-target to disable the filtering, permitting all VPNv4 routes.
Syntax
policy vpn-target
undo policy vpn-target
Default
The route target filtering function is enabled for received VPNv4 routes.
Views
BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, BGP-VPLS address family view
Default command level
2: System level
Usage guidelines
The command applies to an inter-AS option B VPN.
Examples
# In BGP-VPNv4 subaddress family view, disable route target filtering for received VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] undo policy vpn-target
# In BGP-L2VPN address family view, disable route target filtering for received VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] undo policy vpn-target
# In BGP-VPLS address family view, disable route target filtering for received VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] undo policy vpn-target
preferred-path
Use preferred-path interface tunnel to configure a preferred tunnel and specify a tunnel interface for it.










