class-map type traffic (BGP-flowspec)
To define a traffic class and the associated rules that match packets to the class, use the class-map type traffic command inGlobal configuration mode. To remove an existing class map from the router, use the no form of this command.
class-map type traffic match-all class-map-name
Syntax Description
match-all |
Specifies a match on all of the match criteria. |
class-map-name |
Name of the class for the class map. |
Command Default
None
Command Modes
Global configurationCommand History
Release | Modification |
---|---|
Release 5.2.0 |
This command was introduced. |
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
Examples
This example shows how to specify class305 as the name of a class and defines a class map for this class.
RP/0/RSP0/CPU0:router# config
RP/0/RSP0/CPU0:router(config)# class-map type traffic match-all class305
RP/0/RSP0/CPU0:router(config-cmap)# match destination-address ipv4 59.2.1.2 255.255.255.0