The apply tunnel-policy command applies a tunnel policy to a tunnel selector.
The undo apply tunnel-policy command cancels the setting.
By default, no tunnel policy is configured for tunnel selector.
Usage Scenario
In BGP/MPLS IP VPN networking, VPNv4 and labeled BGP routes direct traffic to LSPs by default, and load balancing is not performed. If you want to select other types of tunnels or configure load balancing for VPNv4 or labeled BGP routes, run the apply tunnel-policy command to apply a tunnel policy. The apply tunnel-policy command can be used in the following situations:
Prerequisites
A tunnel selector has been created using the tunnel-selector command.
The if-match clauses have been configured as needed.Follow-up Procedure
If the tunnel policy specified in the apply tunnel-policy command does not exist in the system, run the tunnel-policy command to create the tunnel policy.
<HUAWEI> system-view [~HUAWEI] tunnel-policy policy1 [*HUAWEI-tunnel-policy-policy1] tunnel select-seq cr-lsp lsp load-balance-number 1 [*HUAWEI-tunnel-policy-policy1] quit [*HUAWEI] ip rd-filter 1 deny 100:3 [*HUAWEI] tunnel-selector tps permit node 10 [*HUAWEI-tunnel-selector] if-match rd-filter 1 [*HUAWEI-tunnel-selector] apply tunnel-policy policy1