A SERVICE OF

logo

1192 CHAPTER 78: ROUTING POLICY COMMON CONFIGURATION COMMANDS
apply local-preference
Syntax apply local-preference preference
undo apply local-preference
View Routing policy view
Parameters preference: BGP local preference, in the range 0 to 4294967295.
Description Use the
apply local-preference command to apply the specified local
preference to BGP routes.
Use the
undo apply local-preference command to remove the clause
configuration.
No local preference is set for BGP routing information by default.
Related commands: route-policy.
Examples # Create routing policy policy1 with node 10, matching mode as permit. If a route
matches AS-path-ACL 1, set the local preference for the route to 130.
<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
Syntax apply mpls-label
undo apply mpls-label
View Routing policy view
Parameters None
Description Use the
apply mpls-label command to set MPLS label for routing information.
Use the undo apply mpls-label command to remove the clause configuration.
No MPLS label is set by default.
If MPLS label failed to apply, the routing information can not be advertised.
Examples # Create routing policy policy1 with node 10, matching mode as permit. If a route
matches AS-path-ACL 1, set MPLS label for the route.