[Sysname-route-policy] apply cost 120
apply preference
Syntax
apply preference preference
undo apply preference
View
Route policy view
Default Level
2: System level
Parameters
preference: Routing protocol preference, in the range of 1 to 255.
Description
Use the apply preference command to set a preference for a routing protocol.
Use the undo apply preference command to remove the clause configuration.
No preference is set for a routing protocol by default.
If you have set preferences for routing protocols with the preference command, using the apply
preference command will set a new preference for the matching routing protocol. Non-matching
routing protocols still use the preferences set by the preference command.
Examples
# Configure node 10 in permit mode of route policy policy1: If a route matches existing ACL 2000, set
the preference for the routing protocol to 90.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match acl 2000
[Sysname-route-policy] apply preference 90
apply tag
Syntax
apply tag value
undo apply tag
View
Route policy view
Default Level
2: System level
6-2