route-map (BGP)

Creates or modifies a route-map under Border Gateway Protocol (BGP).

Syntax

route-map name { permit | deny } stanza
no route-map name { permit | deny } stanza

Parameters

name
Specifies the name of the route map. The string must be between 1 and 63 ASCII characters in length.
permit
Allows a matching pattern.
deny
Disallows a matching pattern.
stanza
Specifies the stanza ID. Valid values range from 1 through 65535. A route map can support up to 1024 stanzas.

Modes

Global configuration mode

Usage Guidelines

This command is used in conjunction with the match and set commands.

The continue command configures the route map to continue to evaluate and execute match statements after a successful match occurs. The continue statement proceeds to the route map with the specified sequence number. If no sequence number is specified, the statement proceeds to the route map with the next sequence number (as an "implied" continue).

The no form of this command deletes a route-map stanza.

Examples

The following example configures a route map that allows a matching pattern.

device# configure terminal
device(config)# route-map test permit 5

The following example configures continue statements in a route map.

device# configure terminal
device(config)# route-map mcontroutemap1 permit 1
device(config-route-map-mycontroutemap/permit/1)# match metric 10
device(config-route-map-mycontroutemap/permit/1)# set weight 10
device(config-route-map-mycontroutemap/permit/1)# match metric 10
device(config-route-map-mycontroutemap/permit/1)# continue 2
device(config-route-map-mycontroutemap/permit/1)# route-map mcontroutemap1 permit 2
device(config-route-map-mycontroutemap/permit/2)# match tag 10
device(config-route-map-mycontroutemap/permit/2)# set weight 20