< Home

tnl-policy (VSI view)

Function

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.

Format

tnl-policy policy-name

undo tnl-policy

Parameters

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.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When configuring the VPLS to use tunnels for packet exchange, run the tnl-policy command.

Prerequisites

One of the following operations has been performed before this command is used:
  • 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.

Example

# Configure the tunnel policy name for the VSI.
<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] quit
[HUAWEI-vsi-company1] tnl-policy tnlpolicyofcompany1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >