The tnl-policy command sets a tunnel policy for a VSI.
The undo tnl-policy command deletes the tunnel policy of a VSI.
By default, no tunnel policy is applied to a VSI.
Parameter | Description | Value |
---|---|---|
policy-name | Specifies the policy name of a tunnel. | The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
When configuring the VPLS to use tunnels for packet exchange, run the tnl-policy command.
Prerequisites
The pwsignal bgp command and the route-distinguisher route-distinguisher command have been executed for Kompella VPLS.
The pwsignal ldp command and the vsi-id vsi-id command have been executed for Martini VPLS.
The bgp-ad command and the vpls-id vpls-id command have been executed for BGP AD VPLS.
Precautions
After the tnl-policy command is executed, the configured tunnel policy determines which tunnel between PE devices is preferred to forward traffic and whether load balancing is used. When creating a tunnel policy, specify the sequence of selecting tunnels. If no tunnel policy is configured, the default tunnel policy is used. That is, only LSP tunnels are selected and no load balancing is performed.