< Home

apply ip-precedence (Route-Policy view)

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.

Format

apply ip-precedence { precedence | routine | priority | immediate | flash | flash-override | critical | internet | network }

undo apply ip-precedence

Parameters

Parameter Description Value
precedence Specifies the preference of IP packets. The value is an integer ranging from 0 to 7. The preference keyword can be used to represent the preference value. The Table 1 table lists the relationship between keywords and values.
routine Specifies the preference of IP packets as 0. -
priority Specifies the preference of IP packets as 1. -
immediate Specifies the preference of IP packets as 2. -
flash Specifies the preference of IP packets as 3. -
flash-override Specifies the preference of IP packets as 4. -
critical Specifies the preference of IP packets as 5. -
internet Specifies the preference of IP packets as 6. -
network Specifies the preference of IP packets as 7. -
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

The apply ip-precedence command is generally applicable to QoS Policy Propagation Through the Border Gateway Protocol (QPPB), in which the IP precedence is a QoS parameter that can be set. 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.

The apply ip-precedence command is mutually exclusive with the apply qos-local-id command and the apply behavior command.

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.

<sysname> system-view
[sysname] route-policy test permit node 10
[sysname-route-policy] apply ip-precedence 3

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

<sysname> system-view
[sysname] route-policy test1 permit node 20
[sysname-route-policy] apply ip-precedence internet

# Delete the IP precedence from the route-policy named test.

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