< Home

inbound peer fec

Function

The inbound peer fec command configures an inbound policy, which allows the LSR to receive Label Mapping messages for IGP routes only from a specified peer.

The undo inbound peer fec command restores the default setting.

By default, no inbound policy is configured.

Format

inbound peer { peer-id | peer-group peer-group-name | all } fec { none | host | ip-prefix prefix-name }

undo inbound peer { peer-id | peer-group peer-group-name | all } fec

undo inbound peer all

Parameters

Parameter Description Value
peer-id Specifies the ID of an LDP peer. The value is in dotted decimal notation.
peer-group peer-group-name Specifies the name of a peer group. The value is an existing peer group name.
all Indicates all LDP peers. -
none Forbids all Label Mapping messages. After the parameter none is configured, the specified LSR does not receive Label Mapping messages for IGP routes from its peers. -
host Allows only Label Mapping messages for host routes. After the parameter host is configured, the specified LSR receives only Label Mapping messages for host routes from its peers. -
ip-prefix prefix-name Allows only Label Mapping messages for IGP routes that are defined in the IP prefix list. After the parameter ip-prefix is configured, the specified LSR receives Label Mapping messages only for IGP routes that are defined in the IP prefix list by its peers. The value is an existing IP prefix list name.

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, an LSR receives Label Mapping messages from all LDP peers to speed up LDP LSP convergence. This leads to establishment of a great number of unwanted LSPs, which wastes resources. To reduce the number of LSPs and save memory resources, configure an inbound policy to filter out LDP LSPs not matching the policy.

When running the inbound peer fec command to specify the peer ID and FEC of the IGP route, configure the peer to receive only Label Mapping messages for specified IGP routes.

To apply a policy associated with the same FEC range to an LDP peer group or all LDP peers receiving Label Mapping messages, configure either peer-group peer-group-name or all in the command.

Prerequisites

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

Precautions

If multiple inbound policies are configured for a specified LDP peer, the earliest configuration takes effect. For example, the following two inbound policies are configured:
inbound peer 2.2.2.2 fec host
inbound peer peer-group group1 fec none
As group1 also contains an LDP peer with peer-id of 2.2.2.2, the following inbound policy takes effect:
inbound peer 2.2.2.2 fec host
If two inbound policies are configured in sequence and the peer parameters in the two commands are the same, the second command overrides the first one. For example, the following two outbound policies are configured:
inbound peer 2.2.2.2 fec host
inbound peer 2.2.2.2 fec none
The second configuration overrides the first one. This means that the following inbound policy takes effect on the LDP peer with peer-id of 2.2.2.2:
inbound peer 2.2.2.2 fec none

Creating a peer group before it is referenced is recommended. By default, nonexistent peer groups cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent peer group is referenced using the current command, the current command applies to all LDP peers.

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 receives Label Mapping messages of all LDP FECs from the specified peer.

Example

# Configure all LSRs to receive Label Mapping messages only for host routes from peers.

<HUAWEI> system-view
[HUAWEI] mpls ldp
[HUAWEI-mpls-ldp] inbound peer all fec host
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >