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. |
Parameter | Description | Value |
---|---|---|
ip-precedence | IP precedence | The value can be a preference value or a keyword:
|
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.