R3303-HP HSR6800 Routers MPLS Command Reference

334
Default
No routing policy is applied.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters.
peer-address: Specifies the IP address of the peer, in dotted decimal notation.
vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
route-policy-name: Specifies the name of the routing policy to be applied, a case-sensitive string of 1 to
63 characters.
Usage guidelines
A routing policy for a peer and a routing policy for the peer group to which the peer belongs are of the
same priority; the one configured last takes effect.
This configuration takes effect only after the nested VPN function is enabled.
Deleting the VPN instance to which a peer belongs will also delete the configuration of this command.
Examples
# Specify to apply routing policy comtest to VPNv4 routes received from peer group ebgp.
<Sysname> system-view
[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