12-7
undo apply origin
View
Route policy view
Default Level
2: System level
Parameters
egp
: Sets the origin attribute of BGP routing information to EGP.
as-number
: 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.
Description
Use the
apply origin
command to set the specified origin attribute for BGP routes.
Use the
undo apply origin
command to remove the clause configuration.
No origin attribute is set for BGP routing information by default.
Related commands:
if-match interface
,
if-match acl
,
if-match ip-prefix
,
if-match ip
next-hop
,
if-match cost
,
if-match tag
,
route-policy
,
apply ip-address next-hop
,
apply
local-preference
,
apply cost
,
apply tag
.
Examples
# C 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
Syntax
apply preference
preference
undo apply preference
View
Route policy view
Default Level
2: System level
Parameters
preference
: Routing protocol preference, in the range of 1 to 255.
Description
Use the
apply preference
command to set a preference for a routing protocol.
Use the
undo apply preference
command to remove the clause configuration.
No preference is set for a routing protocol by default.