System information
Configuring BGP
12-59
To define a route map, use the route-map command in Global Configuration mode,
as shown below:
MOT(config)#route-map <name> [permit | deny] <sequence-number>
where:
name uniquely identifies a route map.
permit specifies consider the route for further operation.
deny specifies do not consider the route for further operation.
sequence-number uniquely identifies an instance of the route map. Instances with
lower sequence numbers are parsed first.
Match and Set Statements
Match statements define the conditions that must be met by a route. Each instance
may contain multiple match statements.If all match statements within a given instance
match for a given route, the route meets the conditions of the instance. Therefore, the
ordering of match statements within an instance does not matter. If an instance has no
match statements, all routes meet the conditions of the instance (unless they are
denied by an instance with a lower sequence-number).
Set statements define the conditions that are applied to the route. If the match
conditions of a given instance are met by a route, all set statements within the instance
are applied to the route. Therefore, the ordering of set statements within an instance
does not matter since either all or none are applied.
If an instance has no set statements and all the match statements in the instance match,
nothing is set for the route. The route is simply redistributed, advertised, or learned as
is (depending on where the route map is applied).
Table 12-1 shows match commands for creating route maps.
Table 12-1 match Commands
Command Description
match as-path Matches a BGP AS_path access list.
match community Matches a BGP community list.