< Home

Configuring the Apply Clause

The apply clauses specify actions to set certain route attributes.

Context

apply clauses: specify actions, that is, configuration commands used to modify certain attributes.

Procedure

  1. Access the system view.

    system-view

  2. Access the Route-Policy view.

    route-policy route-policy-name { permit | deny } node node

  3. Run the following commands as required:

    • Set the cost of the route.

      apply cost [ + | - ] cost

    • Set the cost type of an OSPF route.

      apply cost-type { type-1 | type-2 }

    • Set the cost type of an IS-IS route.

      apply cost-type { external | internal }

      For the same Route-Policy node, you cannot run the apply cost-type { type-1 | type-2 } command and the apply cost-type { external | internal } command at the same time. This is because the latest configuration overrides the previous configuration.

    • Set the next hop address of the IPv4 route.

      apply ip-address next-hop { peer-address | ipv4-address }

    • Set the area of the OSPF route.

      apply ospf { backbone | stub-area }

    • Set the route level of IS-IS.

      apply isis { level-1 | level-1-2 | level-2 }

    • Set the preference of the routing protocol.

      apply preference preference

    • Set the tag of the route.

      apply tag tag

    • Delete the specified community attribute of BGP routing information.

      apply comm-filter { comm-filter-number | comm-filter-name } delete

    • Set the extended community attributes (Router-Target) of BGP routing information.

      apply extcommunity { rt as-number : nn | rt ip-address : nn }* & <1-16> [ additive ]

    • Set the local preference of BGP routing information.

      apply local-preference preference

    • Set the origin attribute of BGP routing information.

      apply origin { egp { as-number-plain | as-number-dot } | igp | incomplete }

    • Add the specified AS number to the AS-Path attribute of BGP routing information.

      apply as-path { { as-number-plain | as-number-dot } &<1-10> { additive | overwrite } | none overwrite }

    • Set the preferred value of BGP routing information.

      apply preferred-value preferred-value

    • Set the index of the BGP traffic statistics.

      apply traffic-index traffic-index

    • Set the next hop address of the IPv6 route.

      apply ipv6 next-hop ipv6-address

    • Set the community attributes of BGP routing information.

    • Set the dampening parameters for EBGP routes.

      apply dampening half-life-reach reuse suppress ceiling

    • Set the IP precedence parameter.

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

    The commands in Step 3 can be used regardless of the order.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >