policy vpn-target
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.
The command applies to inter-provider VPN option B schemes.
Syntax
policy vpn-target
undo policy vpn-target
View
BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, VPLS address family view
Default level
2: System level
Parameters
None
Examples
# 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
# In VPLS address family view, enable VPN target filtering for received VPNv4 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] policy vpn-target
preferred-path interface tunnel
Description
Use the preferred-path interface tunnel command to configure a preferred tunnel and specify a tunnel
interface for it.
Use the undo preferred-path interface tunnel command to remove a preferred tunnel.
329