The tnl-policy command configures a VSI to reference a tunnel policy.
The undo tnl-policy command restores the default configuration.
By default, no tunnel policy is configured for a VSI.
Usage Scenario
By default, VPLS forwards packets over LDP LSPs on the public network, and load balancing is performed if there are more than one LDP LSP to the same destination address.
If you want to change the type of the public network tunnel used for packet forwarding or if you want to enable load balancing among multiple tunnels, you can run the tunnel-policy command in the system view to configure a tunnel policy and the tnl-policy command in the VSI view to reference this tunnel policy.Prerequisites
The tunnel policy to be referenced has been created.
Configuration Impact
Precautions
In addition to running this command to reference a tunnel policy, you can run the peer command in the VSI view to specify the peer address and the tunnel policy to be referenced by the VSI. The tunnel policy specified in the peer command has a higher priority than that specified in the tnl-policy command in the VSI view. If tunnel policies are specified in both the tnl-policy and peer commands, the tunnel policy specified in the peer command is preferred.
<HUAWEI> system-view [~HUAWEI] tunnel-policy policy1 [~HUAWEI-tunnel-policy-policy1] quit [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi company1 [*HUAWEI-vsi-company1] tnl-policy policy1