R3303-HP HSR6800 Routers IP Multicast Command Reference

243
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 }
undo preference
Default
The default preference values of external, internal and local BGP routes are 255, 255, and 130,
respectively.
Views
IPv4 MBGP address family view
Default command level
2: System level
Parameters
external-preference: Specifies the preference of EBGP routes, in the range of 1 to 255.
internal-preference: Specifies the preference of IBGP routes, in the range of 1 to 255.
local-preference: Specifies the preference of local routes, in the range of 1 to 255.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Using a routing policy, you can set preferences for the routes that match the policy. The routes that do not
match the policy use the default preferences.