The outbound peer bgp-label-route command configures an outbound policy which allows an LSR to send Label Mapping messages for labeled BGP routes only to a specified peer.
The undo outbound peer bgp-label-route command deletes an outbound policy.
The outbound peer fec command configures an outbound policy to allow an LSR to send Label Mapping messages for specific IGP routes to a specified peer.
The undo outbound peer fec command deletes the configured outbound policy.
By default, no outbound policy is configured.
outbound peer { peer-id | peer-group peer-group-name | all } fec { none | host | ip-prefix prefix-name }
outbound peer { peer-id | peer-group peer-group-name | all } bgp-label-route { none | ip-prefix prefix-name }
undo outbound peer { peer-id | peer-group peer-group-name | all } fec
undo outbound peer { peer-id | peer-group peer-group-name | all } bgp-label-route
Parameter | Description | Value |
---|---|---|
peer-id |
Specifies the ID of an LDP peer. By default, the peer ID is specified by the mpls lsr-id command. If the lsr-id command is also run, the peer ID specified in the lsr-id command is used. |
Expressed in dotted decimal notation |
peer-group peer-group-name |
Specifies the name of a peer group. The parameter is specified by the ip ip-prefix command. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
all |
Indicates all LDP peers. |
- |
none |
Filters out all Label Mapping messages. If this parameter is configured on an LSR, the LSR does not send Label Mapping messages for routes to a specified peer. |
- |
host |
Allows only Label Mapping messages for host routes. If this parameter is configured on an LSR, the LSR sends only Label Mapping messages for host routes to a specified peer. |
- |
ip-prefix prefix-name |
Allows only Label Mapping messages for IGP routes that are defined in an IP prefix list. If this parameter is configured on an LSR, the LSR sends only Label Mapping messages for routes that are defined in an IP prefix list to a specified peer. The parameter is specified by the ip ip-prefix command. |
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. |
Usage Scenario
By default, an LSR sends Label Mapping messages to both upstream and downstream LDP peers to speed up the convergence of LDP LSPs. This results in the establishment of a large number of LSPs, wasting resources. An outbound policy can be configured to prevent LDP LSPs with routing information failing to pass the policy from being established. This policy helps reduce the number of LDP LSPs to be established and saving memory.
The outbound peer fec command can be used to specify the peer ID and FEC (to which a specified route is mapped) to allow Label Mapping messages for specific routes to be sent to a specified peer. This setting prevents unwanted Label Mapping messages from being sent. To apply a policy associated with a single FEC range to an LDP peer group or all LDP peers that send Label Mapping messages, configure either the peer-group or all parameter in the command.Precautions
If multiple outbound policies are configured for a specified LDP peer, the first configured one takes effect. For example, the following two outbound policies are configured:
outbound peer 2.2.2.2 fec host outbound peer peer-group group1 fec none As group1 also contains an LDP peer with address of 2.2.2.2, the following outbound policy takes effect: outbound peer 2.2.2.2 fec host If two outbound 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: outbound peer 2.2.2.2 fec host outbound peer 2.2.2.2 fec none The second configuration overrides the first one. This means that the following outbound policy takes effect on an LDP peer with address of 2.2.2.2: outbound peer 2.2.2.2 fec none If outbound peer all fec { none | host | ip-prefix } is configured, it overrides all previous configured outbound policies for routes. To delete all outbound policies in batches, run the undo outbound peer all command.<HUAWEI> system-view [~HUAWEI] ip ip-prefix prefix1 permit 0.0.0.0 0 greater-equal 17 less-equal 18 [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls ldp [*HUAWEI-mpls-ldp] ipv4-family [*HUAWEI-mpls-ldp-ipv4] outbound peer all bgp-label-route ip-prefix prefix1
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls ldp [*HUAWEI-mpls-ldp] ipv4-family [*HUAWEI-mpls-ldp-ipv4] outbound peer 1.1.1.1 fec host