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 [ + | - ] value

By default, no cost is set for routes.

4. 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/IPv6 routes.

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

5. Set a preference.

apply preference preference

By default, no preference is set.

6. Set a prefix priority.

apply prefix-priority { critical | high | medium }

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

7. Set a tag value for IGP routes.

apply tag value

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

8. 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-nexthop ipv6-address

By default, no backup link is set for FRR.