# Creating Policy Lists for ATM

In the following example, you create two policies: one for CBR traffic and one for UBR traffic. One policy is attached to an interface that contains CBR traffic and the other to an interface that contains UBR traffic.

1. Create a CBR policy list.
   host1(config)#atm policy-list polCbr host1(config-policy-list)#
2. Create the classification group and assign a strict priority traffic class and color green.
   host1(config-policy-list)#classifier-group * host1(config-policy-list-classifier-group)#traffic-class strict-priority host1(config-policy-list-classifier-group)#color green
3. Exit Policy List Configuration mode to save the configuration.
   host1(config-policy-list-classifier-group)#exit host1(config-policy-list)#exit host1(config)#
4. Create a UBR policy that maps to the strict best-effort traffic class and color red.
   host1(config)#atm policy-list polUbr host1(config-policy-list)#classifier-group * host1(config-policy-list-classifier-group)#traffic-class best-effort host1(config-policy-list-classifier-group)#color red
5. Exit Policy List Configuration mode to save the configuration.
   host1(config-policy-list-classifier-group)#exit host1(config-policy-list)#exit host1(config)#
6. Attach the policies to ATM subinterfaces.
   host1(config)#interface atm 0/0.100 host1(config-if)#atm policy input polUbr statistics enabled host1(config-if)#exit host1(config)#interface atm 0/0.101 host1(config-if)#atm policy input polCbr statistics enabled host1(config-if)#exit
7. Display the policy lists.

       host1#show atm subinterface atm 0/0.100

       Circuit                   Interface
        Interface  ATM-Prot VCD VPI VCI  Type   Encap MTU  Status   Type
       ----------- -------- --- --- --- ------- ----- ---- ------ ---------
       ATM 0/0.100 RFC-1483 100   0 100 PVC     SNAP  9180 up     Static

       Auto configure status         : static
       Auto configure interface(s)   : none
       Detected 1483 encapsulation   : none
       Detected dynamic interface    : none
       Interface types in lockout    : none

       Assigned profile (IP)         : none assigned
       Assigned profile (BridgedEnet): none assigned
       Assigned profile (PPP)        : none assigned
       Assigned profile (PPPoE)      : none assigned
       Assigned profile (any)        : none assigned

       SNMP trap link-status: disabled

       InPackets:                0
       InBytes:                  0
       OutPackets:               0
       OutBytes:                 0
       InErrors:                 0
       OutErrors:                0
       InPacketDiscards:         0
       InPacketsUnknownProtocol: 0
       OutDiscards:              0
       ATM policy input polUbr
         Statistics are disabled
       1 interface(s) found

       host1#show atm subinterface atm 0/0.101

                                        Circuit                   Interface
        Interface  ATM-Prot VCD VPI VCI  Type   Encap MTU  Status   Type
       ----------- -------- --- --- --- ------- ----- ---- ------ ---------
       ATM 0/0.101 RFC-1483 101   0 101 PVC     SNAP  9180 up     Static

       Auto configure status         : static
       Auto configure interface(s)   : none
       Detected 1483 encapsulation   : none
       Detected dynamic interface    : none
       Interface types in lockout    : none

       Assigned profile (IP)         : none assigned
       Assigned profile (BridgedEnet): none assigned
       Assigned profile (PPP)        : none assigned
       Assigned profile (PPPoE)      : none assigned
       Assigned profile (any)        : none assigned

       SNMP trap link-status: disabled

       InPackets:                0
       InBytes:                  0
       OutPackets:               0
       OutBytes:                 0
       InErrors:                 0
       OutErrors:                0
       InPacketDiscards:         0
       InPacketsUnknownProtocol: 0
       OutDiscards:              0
       ATM policy input polCbr
         classifier-group *
           3096 packets, 377678 bytes
           traffic-class best-effort
           color green
       1 interface(s) found

#### Related Documentation

- atm policy-list