Match community-list – Enterasys Networks X-Pedition XSR CLI User Manual
Page 307
Route Map Commands
XSR CLI Reference Guide 6-111
Syntax of the “no” Form
The no form of this command removes the patch list number:
no match as-path path-list-number
Mode
Route‐map configuration:
XSR(config-route-map)#
Example
This example sets the match as‐path in the context of configuring a route map and as‐path ACL 33.
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 33
XSR(config-route-map)#set local-preference 300
XSR(config-route-map)#exit
XSR(config)#ip as-path access-list 33 permit “.* 550 .*”
Route map 1 is configured with the optional permit keyword and sequence number 1. If these
values are omitted, a route map will default to the permit keyword and sequence number 10.
After route map 1 is defined via the
route-map
command, you enter the
match as-path
command which references as‐path access list 33 ‐ the last configuration statement in the example.
AS‐path access list 33 ends with a regular expression “.* 550 .*”, indicating a match will occur if the
as_path variable in a BGP update message contains AS number 550.
If a match occurs, then the
set local-preference
command sets the local preference attribute
for the matching BGP updates to 300, overriding the default value of 100. A route flagged with a
higher local preference value is more preferable to a route with a lower local preference.
Consequently, the routes passing through AS 550 become more preferable to other routes for the
same destinations.
match community-list
This command matches the community attribute in a BGP routing update message with the
values of the community attribute identified through the community access list.
A route must match at least one match statement of a
route-map
command. If a route does not
match any match statements, the route is not advertised on outbound route maps and is not
accepted on inbound route maps.
Syntax
match community-list community-list-number
Syntax of the “no” Form
The no form of this command removes the community list number:
no match community-list community-list-number
community-list-number
Community ACL to match by number, ranging from 1 to 199.