R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

286
Parameters
preference: Specifies a local preference for BGP routes in the range of 0 to 4294967295.
Examples
# Configure node 10 in permit mode of routing policy policy1. If a route matches AS path list 1, configure
a local preference of 130 for the route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply local-preference 130
apply mpls-label
Use apply mpls-label to set MPLS labels for routing information.
Use undo apply mpls-label to remove the clause configuration.
Syntax
apply mpls-label
undo apply mpls-label
Default
No MPLS label is set for routing information.
Views
Routing policy view
Default command level
2: System level
Usage guidelines
If this command fails to assign an MPLS label to a route, the route cannot be advertised.
Examples
# Configure node 10 in permit mode of routing policy policy1. Set MPLS labels for routes matching AS
path list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply mpls-label
apply origin
Use apply origin to set the specified origin attribute for BGP routes.
Use undo apply origin to remove the clause configuration.
Syntax
apply origin { egp as-number | igp | incomplete }
undo apply origin