Creating a route map

The route-map command creates a route map sequence. It specifies a route map name, a permit or deny instruction, and, optionally, a sequence number. All sequences that have the same route map name belong to the same route map. For more information, see Route maps.

Syntax:

route-map name [ permit | deny ] [seq seq-num]

Creates a route map and enters the route map context.

name

Specifies the name of the route map.

permit

Instructs the policy engine to permit the route if the match succeeds.

deny

Instructs the policy engine to deny the route if the match succeeds.

seq seq-num

Specifies a sequence number for the route-map. If a sequence number is not specified at the first instance of the route-map name command, the switch uses a default value of 10.

Deleting all or part of a route map

Use The no form of the route-map command to delete a sequence or an entire route map.

Syntax:

no route-map name [seq seq-num]

Deletes a route map or a route map sequence.

name

Specifies the name of the route map.

seq seq-num

Optional sequence number. Specifies a sequence to delete from the named route map.

If no sequence number is specified, the entire route map is deleted.

To delete a match or set clause from a route-map, first enter the context of that route map and then issue The no form of the clause to delete it.

Example

To delete the match metric 25 clause from sequence 20 of Map4, you would use the following commands:

HP Switch(config)# route-map Map4 permit seq 20
HP Switch(route-map-Map4-20)# no match metric 25

Viewing route maps

Syntax:

show route-map [name]

Displays the commands in all route maps or in a specified route map.

[name]

Optionally specifies the name of a route map to display. If no name is specified, all route maps are displayed.

All sequences of a route map are displayed. For example:

HP Switch(config)# show route-map Map3
 Routemap information
 
route-map "Map3" permit seq 10
   match interface vlan 11 12 13
   match metric 25
   exit
route-map "Map3" permit seq 20
   match interface vlan 21 22 23
   match metric 25
   exit