The qos default service-template command applies a service profile to a channelized sub-interface.
The undo qos default service-template command removes a service profile from a channelized sub-interface.
By default, no service profile is applied to a channelized sub-interface.
Usage Scenario
The length of a packet scheduled on the downstream TM is different from that of the packet sent to the link. To perform traffic shaping accurately, you must compensate the packet with a specific length. After running the command for compensating the packet length in the service profile, you can configure the qos default service-template command to apply the service profile to a channelized sub-interface. The precision adjustment function then can be implemented on the sub-interface.
Prerequisites
A service profile has been created.
The channelization function has been enabled using the mode channel enable command.Precautions
A channelized sub-interface supports only one service profile.
To apply a service profile associated with a slot ID to a physical interface, the slot ID associated with the service profile must be the same as the slot ID of the interface. Eth-Trunk interfaces support only global service profiles.<HUAWEI> system-view [~HUAWEI] service-template test [*HUAWEI-service-template-test-slot-all] quit [~HUAWEI] interface GigabitEthernet 0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 1 [*HUAWEI-GigabitEthernet0/1/0.1] mode channel enable [*HUAWEI-GigabitEthernet0/1/0.1] qos default service-template test outbound