HP VPN Firewall Appliances Network Management Command Reference

1063
apply local-preference
Use apply local-preference to configure the specified local preference for BGP routes.
Use undo apply local-preference to remove the clause configuration.
Syntax
apply local-preference preference
undo apply local-preference
Default
No local preference is configured for BGP routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
preference: Local preference for BGP routes, in the range of 0 to 4294967295.
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
Use apply origin to set the specified ORIGIN attribute for BGP routes.
Use undo apply origin to remove the clause configuration.
Syntax
apply origin { egp as-number | igp | incomplete }
undo apply origin
Default
No ORIGIN attribute is set for BGP routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
egp: Sets the ORIGIN attribute of BGP routing information to EGP.