Step 1 |
enable
|
Enables
privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
ip
extcommunity-list {standard-list-number |
expanded-list-number} {permit |
deny}
[regular-expression] [rt |
soo
extended-community-value]
Device(config)# ip extcommunity-list 1 permit rt 65000:2
|
Creates an
extended community access list and controls access to it.
-
The
standard-list-number
argument is an integer from 1 to 99 that
identifies one or more permit or deny groups of extended communities.
-
The
expanded-list-number argument is an integer from
100 to 500 that identifies one or more permit or deny groups of extended
communities. Regular expressions can be configured with expanded lists but not
standard lists.
-
The
permit keyword
permits access for a matching condition.
-
The
deny keyword
denies access for a matching condition.
-
The
regular-expression
argument specifies an input string pattern to
match against. When you use an expanded extended community list to match route
targets, include the pattern RT: in the regular expression.
-
The
rt keyword
specifies the route target extended community attribute. The
rt keyword can
be configured only with standard extended community lists and not expanded
community lists.
-
The
soo keyword
specifies the site of origin (SOO) extended community attribute. The
soo keyword can
be configured only with standard extended community lists and not expanded
community lists.
-
The
extended-community-value
argument specifies the route target or site of origin. The
value can be one of the following combinations:
-
autonomous-system-number:network-number
- ip-address:network-number
The colon is
used to separate the autonomous system number and network number or IP address
and network number.
|
Step 4 |
route-map
map-name [permit |
deny]
[sequence-number]
Device(config)# route-map rtrewrite permit 10
|
Defines the
conditions for redistributing routes from one routing protocol into another or
enables policy routing and enables route-map configuration mode.
-
The
map-name argument defines a meaningful name for the route
map. The
redistribute
router configuration command uses this name to reference this route map.
Multiple route maps can share the same map name.
-
If the
match criteria are met for this route map, and the
permit keyword
is specified, the route is redistributed as controlled by the set actions. In
the case of policy routing, the packet is policy routed.
If the match
criteria are not met, and the
permit
keyword is specified, the next route map with the same map tag is tested. If a
route passes none of the match criteria for the set of route maps sharing the
same name, it is not redistributed by that set.
The
permit
keyword is the default.
-
If the
match criteria are met for the route map and the
deny keyword
is specified, the route is not redistributed. In the case of policy routing,
the packet is not policy routed, and no further route maps sharing the same map
tag name will be examined. If the packet is not policy routed, the normal
forwarding algorithm is used.
-
The
sequence-number argument is a number that
indicates the position a new route map will have in the list of route maps
already configured with the same name. If given with the
no form of
this command, the position of the route map should be deleted.
|
Step 5 |
match
extcommunity {standard-list-number |
expanded-list-number}
Device(config-route-map)# match extcommunity 1
Device(config-route-map)# match extcommunity 101
|
Matches the
Border Gateway Protocol (BGP) extended community list attributes.
-
The
standard-list-number argument is a number from 1
to 99 that identifies one or more permit or deny groups of extended community
attributes.
-
The
expanded-list-number argument is a number from 100
to 500 that identifies one or more permit or deny groups of extended community
attributes.
|
Step 6 |
set
extcomm-list
extended-community-list-number
delete
Device(config-route-map)# set extcomm-list 1 delete
|
Removes a
route target from an extended community attribute of an inbound or outbound BGP
Virtual Private Network Version 4 (VPNv4) update.
|
Step 7 |
set
extcommunity {rt
extended-community-value [additive] |
soo
extended-community-value}
Device(config-route-map)# set extcommunity rt 65000:1 additive
|
Sets BGP
extended community attributes.
The colon is
used to separate the autonomous system number and network number or IP address
and network number.
|
Step 8 |
end
Device(config-route-map)# end
|
(Optional)
Returns to privileged EXEC mode.
|
Step 9 |
show
route-map
map-name
Device# show route-map extmap
|
(Optional)
Verifies that the match and set entries are correct.
|