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.
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.<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] ipv4-family [*HUAWEI-mpls-ldp-ipv4] propagate mapping for ip-prefix policy1