3com S7906E 参照ガイド
1-9
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: Set the preference for OSPF external
routes to 90.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match route-type external-type1or2
[Sysname-route-policy] apply preference 90
apply preferred-value
Syntax
apply preferred-value preferred-value
undo apply preferred-value
View
Route policy view
Default Level
2: System level
Parameters
preferred-value: Preferred value, in the range of 0 to 65535.
Description
Use the apply preferred-value command to set a preferred value for BGP routes.
Use the undo apply preferred-value command to remove the clause configuration.
No preferred value is set for BGP routes by default.
Examples
# Configure node 10 in permit mode of route policy policy1: Set a preferred value of 66 for BGP routing
information matching AS-PATH list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1