R3303-HP HSR6800 Routers MPLS Command Reference

331
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
Related commands
peer upe