R3102-R3103-HP 6600/HSR6600 Routers IP Multicast Command Reference

242
peer route-policy (MBGP address family view)
Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer
group.
Use undo peer route-policy to remove the configuration.
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 routes from/to the peer or the peer group.
Views
IPv4 MBGP address family view
Default command level
2: System level
Parameters
group-name: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address: Specifies an IPv4 MBGP peer by its IP address.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
export: Specifies the outbound direction.
import: Specifies the inbound direction.
Usage guidelines
The peer route-policy command does not apply the if-match interface clause in the referenced routing
policy. For more information, see Layer 3—IP Routing Command Reference.
Examples
# In IPv4 MBGP address family view, apply the routing policy test-policy to routes outgoing to the peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer test as-number 200
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer test enable
[Sysname-bgp-af-mul] peer test route-policy test-policy export
preference (MBGP address family view)
Use preference to configure preferences for external, internal, and local routes.
Use undo preference to restore the default.
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }