bgp inject-map exist-map



bgp inject-map exist-map

To inject a more specific route into a Border Gateway Protocol (BGP) routing table, use the bgp inject-map exist-map command in address family or router configuration mode. To disable the conditional injection of a selected route, use the no form of this command.

bgp inject-map {inject-map-name} exist-map {exist-map-name}[copy-attributes]
no bgp inject-map {inject-map-name} exist-map {exist-map-name}[copy-attributes]

Syntax: inject-map-name
Description: Defines the prefixes that will be created and installed to the local BGP table.

Syntax: exist-map-name
Description: Specifies the prefix that the BGP speaker will track.


Syntax: copy-attributes
Description: (Optional) Configures the injected route to inherit the attributes of the aggregate route.

Defaults: The BGP Conditional Route Injection feature is not enabled by default.

Command Modes: Address family configuration, Router configuration

Usage Guidelines:
If the copy-attributes keyword is not specified when the bgp inject-map command is used, thecomponents will use the default attributes for locally originated routes. If the copy-attribute keyword is used, the components will inherit the same attributes as the aggregate route.

To enable conditional route injection, the exist-map must contain both the match ip address prefix-list and match ip route-source prefix-list match clauses in the route map paragraph.

Examples:

The following example configures the router for conditional route injection:

(config-router)# bgp inject-map map1 exist-map map2 copy-attributes

Related Commands:
  • ip prefix-list -> Displays information about a prefix list or prefix list entries.
  • neighbor remote-as -> Adds an entry to the BGP or multiprotocol BGP neighbor table.
  • route-map (IP) -> Defines the conditions for redistributing routes from one routing protocol into another, or enables policy routing.
  • show ip bgp -> Displays entries in the BGP routing table.
  • show ip bgp injected-paths -> Displays injected paths in the BGP routing table.