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.
- Create a CBR policy list.
host1(config)#atm policy-list polCbrhost1(config-policy-list)#- 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-priorityhost1(config-policy-list-classifier-group)#color green- Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exithost1(config)#- Create a UBR policy that maps to the strict best-effort traffic class and color red.
host1(config)#atm policy-list polUbrhost1(config-policy-list)#classifier-group *host1(config-policy-list-classifier-group)#traffic-class best-efforthost1(config-policy-list-classifier-group)#color red- Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exithost1(config)#- Attach the policies to ATM subinterfaces.
host1(config)#interface atm 0/0.100host1(config-if)#atm policy input polUbr statistics enabledhost1(config-if)#exithost1(config)#interface atm 0/0.101host1(config-if)#atm policy input polCbr statistics enabledhost1(config-if)#exit- Display the policy lists.
host1#show atm subinterface atm 0/0.100Circuit InterfaceInterface ATM-Prot VCD VPI VCI Type Encap MTU Status Type----------- -------- --- --- --- ------- ----- ---- ------ ---------ATM 0/0.100 RFC-1483 100 0 100 PVC SNAP 9180 up StaticAuto configure status : staticAuto configure interface(s) : noneDetected 1483 encapsulation : noneDetected dynamic interface : noneInterface types in lockout : noneAssigned profile (IP) : none assignedAssigned profile (BridgedEnet): none assignedAssigned profile (PPP) : none assignedAssigned profile (PPPoE) : none assignedAssigned profile (any) : none assignedSNMP trap link-status: disabledInPackets: 0InBytes: 0OutPackets: 0OutBytes: 0InErrors: 0OutErrors: 0InPacketDiscards: 0InPacketsUnknownProtocol: 0OutDiscards: 0ATM policy input polUbrStatistics are disabled1 interface(s) foundhost1#show atm subinterface atm 0/0.101Circuit InterfaceInterface ATM-Prot VCD VPI VCI Type Encap MTU Status Type----------- -------- --- --- --- ------- ----- ---- ------ ---------ATM 0/0.101 RFC-1483 101 0 101 PVC SNAP 9180 up StaticAuto configure status : staticAuto configure interface(s) : noneDetected 1483 encapsulation : noneDetected dynamic interface : noneInterface types in lockout : noneAssigned profile (IP) : none assignedAssigned profile (BridgedEnet): none assignedAssigned profile (PPP) : none assignedAssigned profile (PPPoE) : none assignedAssigned profile (any) : none assignedSNMP trap link-status: disabledInPackets: 0InBytes: 0OutPackets: 0OutBytes: 0InErrors: 0OutErrors: 0InPacketDiscards: 0InPacketsUnknownProtocol: 0OutDiscards: 0ATM policy input polCbrclassifier-group *3096 packets, 377678 bytestraffic-class best-effortcolor green1 interface(s) found