Use Route-map Continue Statements

Continuation statements can be configured in a route map. This task configures a route map instance and adds two route-map continue statements to the route map instance.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the route-map command using the permit parameter and specifying a route map name to create a route map instance and allow a matching pattern.
    device(config)# route-map mcontroutemap1 permit 1
  3. Enter the match command with the metric parameter and specify a value to match a route metric in the route-map instance.
    device(config-route-map-mcontroutemap1/permit/1)# match metric 10
  4. Enter the set weight command and specify a value to set a BGP weight for the routing table in the route-map instance.
    device(config-route-map-mcontroutemap1/permit/1)# set weight 10
  5. Enter the continue command and specify a value to configure a route-map instance number that goes in a continue statement in the route-map instance.
    device(config-routemap-mycontroutemap/permit/1)# continue 2
  6. Enter the exit command to exit route map configuration mode.
    device(config-routemap-mycontroutemap/permit/1)# exit
  7. Enter the route-map command using the permit parameter and specifying a route map name to create a route map instance and allow a matching pattern.
    device(config)# route-map mcontroutemap1 permit 2
  8. Enter the match command with the metric parameter and specify a value to match a route metric in the route-map instance.
    device(config-route-map-mcontroutemap1/permit/2)# match metric 10
  9. Enter the set weight command and specify a value to set a BGP weight for the routing table in the route-map instance.
    device(config-route-map-mcontroutemap1/permit/2)# set weight 20
  10. Enter the continue command and specify a value to configure a route-map instance number that goes in a continue statement in the route-map instance.
    device(config-routemap-mycontroutemap/permit/2)# continue 3

Example

The following example configures a route map instance and adds two route-map continue statements to the route map instance.

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