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.
apply origin { egp { as-number-plain | as-number-dot } | igp | incomplete }
undo apply origin
| 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. | - |
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.