Set origin

set origin

To set the BGP origin code, use the set origin command in route-map configuration mode. To delete an entry, use the no form of this command.

set origin {igp | egp autonomous-system | incomplete}

no set origin {igp | egp autonomous-system | incomplete}

Syntax Description

igp

Remote IGP.

egp

Local EGP.

autonomous-system

Remote autonomous system. This is an integer from 0 to 65535.

incomplete

Unknown heritage.

Defaults

Default origin, based on route in main IP routing table.

Command Modes Route-map configuration

Command History Release

Modification

10.0

This command was introduced.

Usage Guidelines

You must have a match clause (even if it points to a "permit everything" list) if you want to set tags.

Use the route-map global configuration command, and the match and set route-map configuration commands, to define the conditions for redistributing routes from one routing protocol into another. Each route-map command has a list of match and set commands associated with it. The match commands specify the match criteria—the conditions under which redistribution is allowed for the current route-map command. The set commands specify the set actions—the particular redistribution actions to perform if the criteria enforced by the match commands are met. The no route-map command deletes the route map.

The set route-map configuration commands specify the redistribution set actions to be performed when all of a route map's match criteria are met. When all match criteria are met, all set actions are performed.

Examples The following example sets the origin of routes that pass the route map to IGP:

route-map set_origin match as-path 10 set origin igp

I set origin

Related Commands Command Description

Readers' Questions

  • KATHRIN
    How to add origon o bgp?
    6 months ago
  • To add the origin attribute to the BGP (Border Gateway Protocol) routing information, follow these steps:
    1. Access the BGP configuration on your router or network device. This can typically be done through a command-line interface or web-based management interface.
    2. Identify the AS (Autonomous System) number that you belong to. This is a unique number assigned to your network, and it will be needed in the subsequent steps.
    3. Determine the specific prefix or network for which you want to add the origin attribute. This could be an IP address range or a subnet.
    4. Within your BGP configuration, locate the section where you define your network or prefix for advertisement. This is generally done using the "network" command within BGP configuration mode.
    5. Once you have located the relevant network statement, add the "origin" attribute and its value. The value can be either "igp" (Interior Gateway Protocol), "egp" (Exterior Gateway Protocol), or "incomplete" (meaning no specific origin information is available).For example, if you are using Cisco IOS syntax, the command may look like: ``` router bgp <your-AS-number> network <prefix> attribute-set origin igp ``` Replace `<your-AS-number>` with your actual AS number and `<prefix>` with the specific prefix or network you want to add the origin attribute for.
    6. Save and apply the configuration changes. This typically involves using the appropriate command to save the configuration or issuing a commit command, depending on your network device.Remember to verify the changes and test the BGP routing afterwards to ensure that the origin attribute is correctly added to the advertised networks.

    match as-path

    Matches a BGP autonomous system path access list.

    match community-list

    Matches a BGP community.

    match interface

    Distributes routes that have their next hop out one of the

    interfaces specified.

    match ip address

    Distributes any routes that have a destination network

    number address permitted by a standard or extended access

    list, or performs policy routing on packets.

    match ip next-hop

    Redistributes any routes that have a next-hop router address

    passed by one of the access lists specified.

    match ip route-source

    Redistributes routes that have been advertised by routers and

    access servers at the address specified by the access lists.

    match metric

    Redistributes routes with the metric specified.

    match route-type

    Redistributes routes of the specified type.

    match tag

    Redistributes routes in the routing table that match the

    specified tags.

    route-map

    Defines the conditions for redistributing routes from one

    routing protocol to another, or enables policy routing.

    set as-path

    Modifies an autonomous system path for BGP routes.

    set automatic-tag

    Automatically computes the tag value in a route map

    configuration.

    set community

    Sets the BGP COMMUNITIES attribute.

    set level

    Indicates where to import routes.

    set local-preference

    Specifies a preference value for the autonomous system path.

    set metric

    Sets the metric value for a routing protocol.

    set metric-type

    Sets the metric type for the destination routing protocol.

    set next-hop

    Specifies the address of the next hop.

    set tag

    Sets the value of the destination routing protocol.

    set weight

    Specifies the BGP weight for the routing table.

    set weight

    Continue reading here: Set weight

    Was this article helpful?

    0 -3