R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

331
Usage guidelines
UPE is a kind of special VPNv4 peer. It accepts only one default route for each related VPN instance on
an SPE and routes from SPEs that are permitted by the routing policy. An SPE is a common VPN peer.
Examples
# C on f ig u re p e e r 1.1.1.1 as a U P E.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe
peer upe route-policy
Use peer upe route-policy to specify to advertise routes permitted by a routing policy to UPEs.
Use undo peer upe route-policy to restore the default.
Syntax
peer { group-name | ip-address } upe route-policy route-policy-name export
undo peer { group-name | ip-address } upe route-policy route-policy-name export
Default
No routes are advertised to peers.
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.
ip-address: Specifies the IP address of the peer.
route-policy-name: Specifies the name of the routing policy, a case-sensitive string of 1 to 63 characters.
export: Applies the filtering policy to routes to be advertised.
Usage guidelines
This command must be used together with the peer upe command
Examples
# In BGP-VPNv4 subaddress family view, configure peer 1.1.1.1 as a UPE and specify to advertise routes
permitted by routing policy hope t o 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 200
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 enable
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe route-policy hope export