The tnl-policy command associates an EVPN instance with a tunnel policy.
The undo tnl-policy command restores the default configuration.
By default, a EVPN instance is not associated with any tunnel policy.
Usage Scenario
To enable EVPN PEs to transmit traffic over TE tunnels, run the tnl-policy command to associate the EVPN instance with a tunnel policy.
Prerequisites
An RD has been configured for an EVPN instance using the route-distinguisher command.
If the associated tunnel policy does not exist, run the tunnel-policy command to create the tunnel policy.Precautions
An EVPN instance cannot use GRE tunnels. If a tunnel policy involves the use of GRE tunnels, this tunnel policy cannot be applied to an EVPN instance.
<HUAWEI> system-view [~HUAWEI] tunnel-policy po2 [*HUAWEI-tunnel-policy-po2] tunnel select-seq cr-lsp load-balance-number 3 [*HUAWEI-tunnel-policy-po2] quit [*HUAWEI] evpn vpn-instance bvrf b-evpn [*HUAWEI-b-evpn-instance-bvrf] route-distinguisher 100:1 [*HUAWEI-b-evpn-instance-bvrf] tnl-policy po2
<HUAWEI> system-view [~HUAWEI] tunnel-policy po1 [*HUAWEI-tunnel-policy-po1] tunnel select-seq cr-lsp load-balance-number 2 [*HUAWEI-tunnel-policy-po1] quit [*HUAWEI] evpn vpn-instance vrf bd-mode [*HUAWEI-evpn-instance-vrf] route-distinguisher 1:1 [*HUAWEI-evpn-instance-vrf] tnl-policy po1