propagate mapping for ip-prefix

Function

The propagate mapping for ip-prefix command uses an IP prefix list to filter the received routes and enables LDP to use the routes that match addresses in the prefix list to establish transit LSPs.

The undo propagate mapping command restores the default IP prefix list policy.

By default, the received routes are not filtered before being used by LDP to set up transit LSPs.

Format

propagate mapping for ip-prefix ip-prefix-name

undo propagate mapping

Parameters

Parameter Description Value
ip-prefix-name

Specifies the name of an IP prefix list used to filter routes.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

MPLS-LDP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

After MPLS LDP is enabled, a large number of transit LSPs may be automatically established, which consumes resources. To reduce resource consumption, run the propagate mapping command to establish transit LSPs over the routes that match the specified IP prefix list only.

Configuration Impact

LDP will automatically establish LSPs.

The propagate mapping command takes effect in either the MPLS-LDP view or MPLS LDP IPv4 view. If the command is configured in both views, only the latter configuration takes effect.

Example

# Configure LDP to establish transit LSPs only using the routes that match the IP prefix list named policy1.
<HUAWEI> system-view
[~HUAWEI] ip ip-prefix policy1 permit 10.1.192.0 24
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] propagate mapping for ip-prefix policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >