set extended-community ip-route-target

Use this command to specify an action for an extended community IP route target when all match clauses match for this route map.

Syntax

set extended-community ip-route-target set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
no set extended-community ip-route-target set-value {remove-all | remove-specific | set-specific | remove-all-and-set}

Parameters

set-value Specifies that an IPv4 specific route-target extended community with a set value in the format: valid IPv4 address followed by a colon (:) followed by a number in the range 0 - 65535 as defined in RFC 4360.
remove-all Specifies that the action is to remove all extended communities from the route.
remove-specific Specifies that the action is to remove all matching extended communities from the route.
set-specific Specifies that the action is to append the specified extended community to the route.
remove-all-and-set Specifies that the action is to replace any existing extended communities in the route with the specified extended community

Defaults

None.

Mode

BGP route map configuration.

Usage

The route target community is an extended community that identifies one or more routers that may receive a set of routes carried by BGP. This is transitive across the AS boundary.

The no set extended-community ip-route-target command removes the specified IP route target set clause from the route map.

Example

This example shows how remove all matching extended communities from the IP route target 1.1.1.1:150 when all match clauses match for route map bgprm1:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->set extended-community ip-route-target 1.1.1.1:150 remove-specific
System(su-config-route-map-bgp)->