< Home

apply ip-precedence

Function

The apply ip-precedence command sets the QoS parameter ip-precedence for routes.

The undo apply ip-precedence command restores the configuration.

By default, no IP preference is set.

Product

Support

S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S

Supported.

S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI

Not supported.

Format

apply ip-precedence ip-precedence

undo apply ip-precedence

Parameters

Parameter Description Value
ip-precedence IP precedence
The value can be a preference value or a keyword:
  • The value is an integer ranging from 0 to 7.
  • The preference keyword can be Routine, Priority, Immediate, Flash, Flash-override, Critical, Internet, or Network.
Table 1 shows the relationship between preference values and keywords.
Table 1 Relationship between preference values and keywords

Value

Keyword

0

Routine

1

Priority

2

Immediate

3

Flash

4

Flash-override

5

Critical

6

Internet

7

Network

Views

Route-policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After receiving routes, a BGP route receiver matches the attributes of the BGP routes based on the import route-policy, sets the IP precedence, delivers the BGP routes together with the associated QoS parameters, and applies QoS traffic policies to the classified data. In this case, the BGP route receiver can apply QoS policies to the data sent to the destination network segment based on the IP precedence. This applies QoS policies in BGP.

Prerequisites

The apply ip-precedence command can be used only after the route-policy command is used.

Configuration Impact

If a route matches a route-policy, you can change the value of the Precedence field in the IP header. The Precedence field is the first three bits of the Type of Service (ToS) field in the IP header.

Precautions

If an integer is used to specify ip-precedence, the preference is saved as an integer in the configuration file. If a keyword is used to specify ip-precedence, the preference is saved as a keyword in the configuration file.

Example

# Set the IP precedence in the route-policy named test.

<HUAWEI> system-view
[HUAWEI] route-policy test permit node 10
[HUAWEI-route-policy] apply ip-precedence internet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >