This section presents configuration procedures and tables including command description and syntax in the following policy areas: profile, classification, and display.
Procedure 1 describes how to configure policy roles and related functionality.
Procedure 1
Step | Task | Command(s) |
---|---|---|
1 | Create a policy role.
|
configure policy profile profile-index [name name] [pvid-status {enable | disable}] [pvid pvid] [cos-status {enable | disable}] [cos cos] [egress-vlans egress-vlans] [untagged-vlans untagged-vlans] [append] [clear] [tci-overwrite {enable | disable}] |
2 | Optionally, for enhanced policy capable devices, assign the
action the device will apply to an invalid or unknown policy.
|
configure policy invalid action {default-policy | drop | forward} |
3 | Optionally, for enhanced policy capable devices, set a policy maptable entry that associates a VLAN with a policy profile. | configure policy maptable {vlan-list profile-index} |
4 | Optionally, set a policy maptable response.
|
configure policy maptable response {tunnel | policy | both} |
Procedure 2 describes how to configure classification rules as an administrative profile or to assign policy rules to a policy role.
Procedure 2
Step | Task | Command(s) |
---|---|---|
1 | Optionally set an administrative profile to assign traffic
classifications to a policy role. See Administrative Policy and Policy Rule Traffic Classifications for traffic classification-type descriptions and enhanced policy
information. See the set policy rule command discussion in the
command reference guide that comes with your device for traffic
classification data and mask information.
|
configure policy rule admin-profile {macsource | port} [data] [mask mask] port-string port-string [storage-type {non-volatile | volatile}] [admin-pid admin-pid] |
2 | Optionally configure policy rules to
associate with a policy role. See Administrative Policy and Policy Rule Traffic Classifications for traffic classification-type
descriptions and enhanced policy information. See the configure policy rule
command discussion in the command reference guide that comes with
your device for traffic classification data and mask information.
|
configure policy rule profile-index classification-type [data] [mask mask] [port-string port-string] [storage-type {non-volatile | volatile}] | [drop | forward] [admin-pid admin-pid] [cos cos] |
3 | Optionally, for enhanced policy capable devices, assign a policy role to a port. | configure policy port <ports> admin-id admin_id |
The following table describes how to display policy information and statistics.
Displaying Policy Configuration and Statistics
Task | Command(s) |
---|---|
Display policy role information. | show policy profile {all | profile-index [-detail]} |
Display the action the device should take if asked to apply an invalid or unknown policy, or the number of times the device has detected an invalid/unknown policy, or both action and count information. | show policy invalid {action | count | all} |
Display VLAN-ID to policy role mappings table. | show policy maptable [vlan-list] |
Display policy classification and admin rule information. | show policy rule [classification-type] [data] [mask mask] [port-string port-string] [storage-type {non-volatile | volatile}] | [drop | forward] [dynamic-pid dynamic-pid] [cos cos] [admin-pid admin-pid] [-verbose] [-wide] |
Display all policy classification capabilities for this device. | show policy capability |
Display a list of currently supported traffic rules applied to the administrative profile for one or more ports. | show policy allowed-type ports [detail] |
Display status of dynamically assigned roles. | show policy dynamic override |