Example: QoS Profile Attachment to Port
In Figure 38, the major ATM interface, 11/0, has QoS profile qp1 explicitly attached. The major ATM interface has three ATM subinterfaces configured:
- ATM 11/0.1No QoS profile is explicitly attached
- ATM 11/0.2QoS profile qp2 is attached
- ATM 11/0.3No QoS profile is explicitly attached
The qp1 profile overrides the QoS port-type profile, atm-default, on subinterfaces 1 and 3. It does not override profile qp2, which was explicitly attached to subinterface 2.
![]()
- Create and configure QoS profile qp1.
host1(config)#qos-profile qp-1host1(config-qos-profile)#atm-vp node scheduler-profile sp1host1(config-qos-profile)#atm-vc queue traffic-class tc1 scheduler-profile sp1 queue-profile qp1host1(config-qos-profile)#atm-vc queue traffic-class tc2 scheduler-profile sp2 queue-profile qp2host1(config-qos-profile)#atm-vc queue traffic-class tc3 scheduler-profile sp3 queue-profile qp3host1(config-qos-profile)#atm-vc queue traffic-class tc4 scheduler-profile sp4 queue-profile qp4host1(config-qos-profile)#atm-vc queue traffic-class tc5 scheduler-profile sp5 queue-profile qp5host1(config-qos-profile)#exit- Create and configure QoS profile qp2.
host1(config)#qos-profile qp2host1(config-qos-profile)#atm-vp node scheduler-profile sp1host1(config-qos-profile)#atm-vc queue traffic-class tc1 scheduler-profile sp1 queue-profile qp1host1(config-qos-profile)#atm-vc queue traffic-class tc2 scheduler-profile sp2 queue-profile qp2host1(config-qos-profile)#atm-vc queue traffic-class tc3 scheduler-profile sp3 queue-profile qp3host1(config-qos-profile)#exit- Attach QoS profile qp1 to ATM interface 11/0.
host1(config)#interface atm 11/0host1(config-if)#qos-profile qp1host1(config-if)#exit- Attach QoS profile qp2 to ATM subinterface 11/0.2.
host1(config)#interface atm 11/0.2host1(config-subif)#qos-profile qp2host1(config-subif)#exithost1(config)#exit- Display the QoS interface hierarchy for ATM 11/0.
host1#show qos interface-hierarchy interface atm 11/0qos interface rule traffic scheduler queue t-classprofile type type class profile profile group------- --------- ---- ------- --------- ------- -------@ATM11/0 atm queue best-effort default defaultqp1@ATM11/0 atm-vp node sp1 defaultqp1@ATM11/0 atm-vc queue tc1 sp1 qp1qp1@ATM11/0 atm-vc queue tc2 sp2 qp2qp1@ATM11/0 atm-vc queue tc3 sp3 qp3qp1@ATM11/0 atm-vc queue tc4 sp4 qp4qp1@ATM11/0 atm-vc queue tc5 sp5 qp5attachment@ atm-vc ATM11/0.2:qos interface rule traffic scheduler queue t-classprofile type type class profile profile group------- --------- ---- ------- --------- ------- -------qp2@ATM11/0.2 atm-vp node sp1 defaultqp2@ATM11/0.2 atm-vc queue tc1 sp1 qp1qp2@ATM11/0.2 atm-vc queue tc2 sp2 qp2qp2@ATM11/0.2 atm-vc queue tc3 sp3 qp3@ATM11/0 atm queue best-effort default defaultqp1@ATM11/0 atm-vc queue tc4 sp4 qp4qp1@ATM11/0 atm-vc queue tc5 sp5 qp5
- ATM best-effort queues are created on ATM interface @ATM11/0 and ATM 11/0.2.
- ATM 11/0.2 subinterface has three queues (traffic classes tc1, tc2, and tc3) that come from QoS profile qp2. Traffic class tc3 is defined in both QoS profile qp1 and qp2. The QoS profile attached closest to the leaf node is used, however. Traffic class tc3 comes from QoS profile qp2, which is attached to ATM subinterface ATM 11/0.2.
- Queues for traffic classes tc4 and tc5 come from QoS profile qp1, which is attached at the ATM major interface.