No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


NE40E V800R010C10SPC500 Configuration Guide - QoS 01

This is NE40E V800R010C10SPC500 Configuration Guide - QoS

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Routing Policies on a BGP Route Receiver

Configuring Routing Policies on a BGP Route Receiver

This section describes how to configure routing policies on a BGP route receiver.


Do as follows on a BGP route receiver:


  1. Run system-view

    The system view is displayed.

  2. Run route-policy route-policy-name { permit | deny } node node-number

    The node of a routing policy is created, and the view of the routing policy is displayed.

  3. Run one of the following commands as needed to configure a matching rule for the routing policy on a BGP route receiver.

    • To match an AS_Path list, run the if-match as-path-filter as-path-acl-number &<1-16> command.

    • To match a community attribute list, run the if-match community-filter { basic-comm-filter-num [ whole-match ] | ext-comm-filter-num } &<1-16> command.

    • To match a route cost, run the if-match cost value command.

    The route attribute configured for a BGP route must be the same as that of the route advertised by the BGP route sender.

  4. Perform the following steps as required:

    • Run the apply qos-local-id qos-local-id command to apply a QoS policy to the route that meets the matching rule in the routing policy.

      When the QoS policy ID, configured by apply qos-local-id qos-local-id, is applied to QPPB, the ID value can be configured within the range of the QoS policy ID value using qos-local-id qos-local-id behavior behavior-name.

    • Run the apply ip-precedence ip-precedence command to apply IP preference to the route that meets the matching rule in the routing policy.
    You need to configure IP preference for the route that meets the matching rule in advance.

    A routing policy consists of multiple nodes. Each node comprises multiple if-match and apply clauses. The if-match clauses define matching rules of a node. The apply clauses define QoS behaviors that are to be implemented for the routes that match the matching rule.

    You can configure multiple if-match clauses on a node. The relationship between these rules is "AND". This means that a route passes the filtering only when it meets all the matching rules.

    The relationship between routing policy nodes is "OR". That is, if a route matches a node of a routing policy, it matches the routing policy. If none of the routing policy nodes is matched, the route does not match the routing policy.

  5. Run bgp as-number

    BGP is enabled and the BGP view is displayed.

  6. Run peer ip-address route-policy route-policy-name import

    The routing policy configured on the route receiver is applied to the routes sent from the peer (route sender).


    Ensure that BGP peer relationships have been set up before the routing policy is applied.

  7. Run commit

    The configuration is committed.

Updated: 2019-01-03

Document ID: EDOC1100055024

Views: 31054

Downloads: 146

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next