< Home

apply origin

Function

The apply origin command sets the Origin attribute of BGP routes.

The undo apply origin command cancels the configuration.

By default, no Origin attribute is set for BGP routes.

Format

apply origin { egp { as-number-plain | as-number-dot } | igp | incomplete }

undo apply origin

Parameters

Parameter Description Value
egp Sets the Origin attribute of BGP routes as EGP. -
as-number-plain Integral AS number The value is an integer ranging from 1 to 4294967295.
as-number-dot AS number in dotted notation The value is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively.
igp Sets the Origin attribute of BGP routes as IGP. -
incomplete Sets the Origin attribute of BGP routes as unknown. -

Views

Route-policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The Origin attribute, as a proprietary attribute of BGP, defines the origin of a route. It identifies how a BGP route is generated. You can use the apply origin command to set the Origin attribute of BGP routes.

Prerequisites

The apply origin command can be used only after the route-policy command is used.

Configuration Impact

After a BGP route matches a route-policy, the Origin attribute of the BGP route is changed.

Example

# Set the Origin attribute of BGP routes as IGP.

<sysname> system-view
[sysname] route-policy policy permit node 10
[sysname-route-policy] apply origin igp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >