< Home

propagate mapping

Function

The propagate mapping for ip-prefix command allows the system to filter out the received routes using an IP prefix list. LDP uses routes that match the addresses in the prefix list to establish an LSP.

The undo propagate mapping command restores the default setting.

By default, when LDP establishes an LSP, LDP does not filter out received routes.

Format

propagate mapping for ip-prefix ip-prefix-name

undo propagate mapping

Parameters

Parameter Description Value
ip-prefix ip-prefix-name Specifies the name of an IP prefix list used to filter out routes. The value is an existing IP prefix list name.

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After MPLS LDP is enabled, LDP LSPs are automatically established, leading to a large number of LSPs and wasting resources. Run the propagate mapping command to configure a policy for establishing an LSP, allowing LDP to use routes that match the specified conditions to establish LSPs.

Prerequisites

MPLS LDP has been enabled globally using the mpls ldp (system view) command.

Precautions

Creating an IP prefix list before it is referenced is recommended. By default, nonexistent IP prefix lists cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent IP prefix list is referenced using the current command, the device does not filter received routes.

Example

# Allow routes that match the IP prefix list named policy1 to set up an LSP.

<HUAWEI> system-view
[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 >