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

288
Examples
# Configure node 10 in permit mode of routing 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
Use apply preferred-value to set a preferred value for BGP routes.
Use undo apply preferred-value to remove the clause configuration.
Syntax
apply preferred-value preferred-value
undo apply preferred-value
Default
No preferred value is set for BGP routes.
Views
Routing policy view
Default command level
2: System level
Parameters
preferred-value: Specifies a preferred value in the range of 0 to 65535.
Examples
# Configure node 10 in permit mode of routing 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
[Sysname-route-policy] apply preferred-value 66
apply tag
Use apply tag to set a specified tag for RIP, OSPF, or IS-IS routing information.
Use undo apply tag to remove the clause configuration.
Syntax
apply tag value
undo apply tag
Default
No routing tag is set for RIP, OSPF, or IS-IS routing information.