Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 6 Routing Policy Configuration Commands
6-9
Examples
# Create routing policy
policy1
with node 10, matching mode as permit. If a route
matches OSPF external route type, set the preference for the routing protocol 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
6.1.11 apply preferred-value
Syntax
apply preferred-value
preferred-value
undo apply preferred-value
View
Routing policy view
Parameters
preferred-value
: Preferred value, in the range of 0 to 65535.
Description
Use the
apply preferred-value
command to apply a preferred value to 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
# Create routing policy
policy1
with node 10, matching mode as permit. If a BGP route
matches AS-path-ACL 1, set the preferred value 66 for the BGP route.
<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
6.1.12 apply tag
Syntax
apply tag
value
undo apply tag