mpls te service-class

Function

The mpls te service-class command specifies a service class for packets to be allowed to pass through an MPLS TE tunnel.

The undo mpls te service-class command deletes a service class for packets to be allowed to pass through an MPLS TE tunnel.

By default, no service class is specified for packets to be allowed to pass through an MPLS TE tunnel.

Format

mpls te service-class { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } *

mpls te service-class default

undo mpls te service-class

Parameters

Parameter Description Value
be

Specifies the service class for packets over an MPLS TE tunnel to be BE.

-

af1

Specifies the service class for packets over an MPLS TE tunnel to be AF1.

-

af2

Specifies the service class for packets over an MPLS TE tunnel to be AF2.

-

af3

Specifies the service class for packets over an MPLS TE tunnel to be AF3.

-

af4

Specifies the service class for packets over an MPLS TE tunnel to be AF4.

-

ef

Specifies the service class for packets over an MPLS TE tunnel to be EF.

-

cs6

Specifies the service class for packets over an MPLS TE tunnel to be CS6.

-

cs7

Specifies the service class for packets over an MPLS TE tunnel to be CS7.

-

default

Sets a service class for packets over an MPLS TE tunnel to default.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

When services recurse to multiple TE tunnels, the mpls te service-class command is run on the TE tunnel interface to set a service class so that a TE tunnel transmits services of a specified service class.

Precautions

This command is used only on the ingress of an MPLS TE tunnel.

The mpls te service-class and load-balance mpls unequal-cost enable commands are mutually exclusive. If both commands are run, the load-balance mpls unequal-cost enable command takes effect.

If the mpls te service-class command is run repeatedly on a tunnel interface, the latest configuration overrides the previous one.

If a non-be service class is set for packets to be allowed to pass through an MPLS TE tunnel using the mpls te service-class command, service traffic with the be service class can still be forwarded through the MPLS TE tunnel without being interrupted.

Example

# Set service classes to af1 and af2 for packets to pass through MPLS TE tunnels.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[~HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol mpls te
[*HUAWEI-Tunnel1] mpls te service-class af1 af2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >