Configuring apply clauses

Except for the apply commands used for setting the next hop for IPv4 and IPv6 routes, all apply commands are the same for IPv4 and IPv6 routing.

To configure apply clauses:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter routing policy node view.

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

N/A

3. Set a cost for routes.

apply cost [ + | - ] cost-value

By default, no cost is set for routes.

4. Set a cost type for routes.

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

By default, no cost type is set for routes.

5. Set the next hop for routes.

  • Set the next hop for IPv4 routes:apply ip-address next-hop ip-address [ public ]

  • Set the next hop for IPv6 routes:apply ipv6 next-hop ipv6-address

By default, no next hop is set for IPv4 or IPv6 routes.

The apply ip-address next-hop and apply ipv6 next-hop commands do not apply to redistributed IPv4 and IPv6 routes.

6. Set an IP precedence for matching routes.

apply ip-precedence { value | clear }

By default, no IP precedence is set.

7. Set a preference.

apply preference preference

By default, no preference is set.

8. Set a prefix priority.

apply prefix-priority { critical | high | medium }

By default, no prefix priority is set, which means the prefix priority is low.

9. Set a tag value for IGP routes.

apply tag tag-value

By default, no tag value is set for IGP routes.

10. Set a backup link for fast reroute (FRR).

  • Set an IPv4 backup link for FRR:apply fast-reroute { backup-interface interface-type interface-number [ backup-nexthop ip-address ] | backup-nexthop ip-address }

  • Set an IPv6 backup link for FRR:apply ipv6 fast-reroute { backup-interface interface-type interface-number [ backup-nexthop ipv6-address ] | backup-nexthop ipv6-address }

By default, no backup link is set for FRR.