371
policy vpn-target
Description
Use the
policy vpn-target
command to enable VPN target filtering for received VPNv6 routes.
Use the
undo policy vpn-target
command to disable the filtering, permitting all VPNv6 routes.
Only VPNv6 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 VPNv6 routes.
The command applies to inter-AS VPN option B schemes.
Syntax
policy vpn-target
undo policy vpn-target
View
BGP-L2VPN address family view, VPLS address family view, BGP-VPNv6 subaddress family view
Default level
2: System level
Parameters
None
Examples
# 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
# In BGP-VPNv6 subaddress family view, enable VPN target filtering for received VPNv6 routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-af-vpnv6] policy vpn-target
reflect between-clients
Description
Use the
reflect between-clients
command to enable route reflection between clients.
Use the
undo reflect between-clients
command to disable the function.
By default, route reflection between clients is enabled.