< Home

propagate mapping

Function

The propagate mapping for ip-prefix command allows the system to filter the received routes using an IP prefix list. LDP uses routes that match the addresses in the prefix list to establish a Transit label switched path (LSP).

The undo propagate mapping command restores the default configuration.

By default, when LDP establishes a Transit LSP, LDP does not filter 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 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

Usage Guidelines

Usage Scenario

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

Prerequisites

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

Configuration Impact

LDP establishes LSPs based on the setting.

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 a transit LSP.

<sysname> system-view
[sysname] mpls ldp
[sysname-mpls-ldp] propagate mapping for ip-prefix policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >