qos default service-template

Function

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.

Format

qos default service-template service-template-name outbound

undo qos default service-template [ service-template-name ] outbound

Parameters

Parameter Description Value
service-template-name

Specifies the name of a user-defined service profile.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

outbound

Specifies the outbound direction.

-

Views

Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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.

Example

# Apply the service profile named test to a channelized sub-interface.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >