R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

970
Examples
# Create node 10 in permit mode of routing policy policy1: If a route has a tag of 8, set the cost type for
the route to IS-IS internal route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8
[Sysname-route-policy] apply cost-type internal
apply local-preference
Syntax
apply local-preference preference
undo apply local-preference
View
Routing policy view
Default level
2: System level
Parameters
preference: Local preference for BGP routes, in the range of 0 to 4294967295.
Description
Use apply local-preference to configure the specified local preference for BGP routes.
Use undo apply local-preference to remove the clause configuration.
No local preference is configured for BGP routing information by default.
Examples
# Configure node 10 in permit mode of routing policy policy1: If a route matches AS-PATH list 1,
configure a local preference of 130 for the route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply local-preference 130
apply origin
Syntax
apply origin { egp as-number | igp | incomplete }
undo apply origin
View
Routing policy view
Default level
2: System level