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

287
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.
as-number: Specifies an autonomous system number for EGP routes, in the range of 1 to 4294967295.
igp: Sets the origin attribute of BGP routing information to IGP.
incomplete: Sets the origin attribute of BGP routing information to unknown.
Examples
# Configure node 10 in permit mode of routing policy policy1. If BGP routing information matches AS
path list 1, set the origin attribute of the routing information to IGP.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply origin igp
apply preference
Use apply preference to set a preference for a routing protocol.
Use undo apply preference to remove the clause configuration.
Syntax
apply preference preference
undo apply preference
Default
No preference is set for a routing protocol.
Views
Routing policy view
Default command level
2: System level
Parameters
preference: Specifies a routing protocol preference in the range of 1 to 255.
Usage guidelines
If you have set preferences for routing protocols with the preference command, using the apply
preference command sets a new preference for the matching routing protocol. Non-matching routing
protocols still use the preferences set by the preference command.