The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To enable the Policy Based Routing (PBR) feature, use the feature pbr command. To disable the PBR feature use the no form of this command.
feature pbr
no feature pbr
This command has no arguments or keywords.
None
Global configuration mode
Release |
Modification |
---|---|
6.2(2) |
This command was introduced. |
This command does not require a license.
This example shows how to enable the policy-based routing feature:
switch(config)# feature pbr switch(config)#
Command |
Description |
---|---|
class-map |
Creates or modifies a class map. |
To specify a set of mappings of input field values to output field values in a table map, use the from command.
from source-value to dest-value
source-value |
Source value in the range from 0 to 63. |
dest-value |
Destination value in the range from 0 to 63. |
To configure the default mapping action for table maps, see the default (table map) command.
Table map configuration
Default table map configuration
Release |
Modification |
---|---|
4.0 |
This command was introduced. |
This command does not require a license.
This example shows how to create a mapping from three source values to the corresponding destination values:
switch(config)# table-map my_table1 switch(config-tmap)# from 0 to 7 switch(config-tmap)# from 1 to 6 switch(config-tmap)# from 2 to 5
Command |
Description |
---|---|
default (table map) |
Specifies the default action for mapping of the input field value to the output field value in a table map. |
show table-map |
Displays table maps. |