set origin

Use this command to specify the origin code to be set when all match clauses in the route map match.

Syntax

set origin code
no set origin code

Parameters

code Specifies the origin attribute value to set if all match clauses in this route map match. Valid values are:

0 - IGP
1 - EGP
2 - Incomplete

Defaults

None.

Mode

BGP route map configuration.

Usage

The no set origin command removes the specified origin clause from the route map.

Example

This example shows how to set the origin attribute code to EGP, if all match clauses in the bgprm1 route map match:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->set origin 1
System(su-config-route-map-bgp)->