R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

325
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test reflect-client
# In BGP-L2VPN address family view, configure the local device as an RR and peer group test as the
client of the RR.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer test reflect-client
# In BGP-VPLS address family view, configure the local device as an RR and peer group test as the client
of the RR.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer test reflect-client
peer route-policy (BGP-VPNv4 subaddress family view)
Use peer route-policy to apply a routing policy to a peer or peer group.
Use undo peer route-policy to remove the application.
Syntax
peer { group-name | ip-address } route-policy route-policy-name { export | import }
undo peer { group-name | ip-address } route-policy route-policy-name { export | import }
Default
No routing policy is applied to a peer or peer group.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: IP address of the peer.
route-policy-name: Name of the routing policy, a case-sensitive string of 1 to 63 characters.
export: Filters the routes to be advertised to the peer or peer group.
import: Filters the routes received from the peer or peer group.
Examples
# In BGP-VPNv4 subaddress family view, apply routing policy test-policy to filter the routes received from
peer group test.
<Sysname> system-view
[Sysname] bgp 100