R3303-HP HSR6800 Routers MPLS Command Reference
1
Basic MPLS commands
Commands configured in MPLS LDP view apply to the public network and those configured in MPLS LDP
VPN instance view apply to the MPLS VPN instance.
accept-label
Use accept-label to configure a label acceptance policy.
Use undo accept-label to restore the default.
Syntax
accept-label peer peer-id ip-prefix ip-prefix-name
undo accept-label peer peer-id
Default
An LSR accepts all label bindings received from its LDP peers.
Views
MPLS LDP view, MPLS LDP VPN instance view
Default command level
2: System level
Parameters
peer peer-id: Specifies an LDP peer. The peer-id argument is the LSR ID of the LDP peer.
ip-prefix ip-prefix-name: Specifies the IP prefix list to be used for filtering received FEC-label bindings. The
ip-prefix-name argument is the name of the IP prefix list, a string of 1 to 19 characters.
Usage guidelines
A label acceptance policy is for filtering the FEC-label bindings received. With such a policy configured,
an upstream LSR filters the label bindings received from the specified downstream LSR by the specified IP
prefix list, and accepts and saves only bindings with the FEC destinations permitted by the specified IP
prefix list.
When the label acceptance control configuration on an LSR is changed (for example, the label
acceptance policy is deleted by using the undo accept-label command), you must execute the reset mpls
ldp command to reset LDP sessions so that the downstream LSR re-advertises its label bindings and the
upstream LSR can obtain the label bindings not accepted before.
Examples
# Configure the device to accept only the label bindings of FECs with destination addresses on subnet
10 .1.1. 0 / 24 a n d 10 . 2.1. 0 / 24 f r o m L D P p e e r 1.1.1. 9.
<Sysname> system-view
[Sysname] ip ip-prefix prefix-from-RTA index 1 permit 10.1.1.0 24
[Sysname] ip ip-prefix prefix-from-RTA index 2 permit 10.2.1.0 24
[Sysname] mpls ldp
[Sysname-mpls-ldp] accept-label peer 1.1.1.9 ip-prefix prefix-from-RTA










