ecmp-prefer

Function

The ecmp-prefer command configures whether the routes with a TE tunnel interface or an IPv4 interface as the outbound interface are preferentially selected to load-balance IS-IS traffic.

The undo ecmp-prefer command restores the default configuration.

By default, routes are equally selected to load-balance IS-IS traffic, regardless of whether the outbound interface is a TE tunnel interface or an IPv4 interface.

Format

ecmp-prefer { te-tunnel | intact }

undo ecmp-prefer

Parameters

Parameter Description Value
te-tunnel

Indicates that the routes with a TE tunnel interface as the outbound interface are preferentially selected to load-balance IS-IS traffic.

-

intact

Indicates that the routes with a TE tunnel interface as the outbound interface and at least one route with an IPv4 interface as the outbound interface are selected to load-balance IS-IS traffic.

-

Views

IS-IS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
isis write

Usage Guidelines

Usage Scenario

When an IGP Shortcut-enabled TE tunnel is configured on an IS-IS network, you can specify one of the following parameters in the ecmp-prefer command based on the network type to configure whether the routes with a TE tunnel interface or an IPv4 interface as the outbound interface are preferentially selected to load-balance IS-IS traffic.

  • te-tunnel: Specify this parameter when devices between the two devices connected by the TE tunnel do not support MPLS. If you specify this parameter, routes with a TE tunnel interface as the outbound interface are preferentially selected to load-balance IS-IS traffic, which prevents traffic loss.
  • intact: Specify this parameter so that at least one route with an IPv4 interface as the outbound interface is selected along with the routes with a TE tunnel interface as the outbound interface to load-balance IS-IS traffic. If the TE tunnel fails, traffic can be forwarded along the route with an IPv4 interface as the outbound interface, which prevents traffic loss.

Prerequisites

An IS-IS process has been created and the IS-IS view has been displayed using the isis command.

Example

# Configure the routes with a TE tunnel interface as the outbound interface to be preferentially selected to load-balance traffic in IS-IS process 1.
<HUAWEI> system-view
[~HUAWEI] isis 1
[*HUAWEI-isis-1] ecmp-prefer te-tunnel
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >