View
Routing policy view
Default level
2: System level
Parameters
preferred-value
: Preferred value, in the range of 0 to 65535.
Description
Use
apply preferred-value
to set a preferred value for BGP routes.
Use
undo apply preferred-value
to remove the clause configuration.
No preferred value is set for BGP routes by default.
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
Syntax
apply tag
value
undo apply tag
View
Routing policy view
Default level
2: System level
Parameters
value
: Tag value, in the range of 0 to 4294967295.
Description
Use
apply tag
to set a specified tag value for RIP, OSPF or IS-IS routing information.
Use
undo apply tag
to remove the clause configuration.
No routing tag is set for RIP, OSPF or IS-IS routing information by default.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: set a tag of 100 for OSPF external
routes.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match route-type external-type1
[Sysname-route-policy] apply tag 100
416