Configuring a label acceptance policy
A label acceptance policy uses an IP prefix list to control the label mappings received from a peer.
As shown in Figure 17, LSR A uses an IP prefix list to filter label mappings from LSR B, and it does not filter label mappings from LSR C.
Figure 17: Label acceptance control diagram
A label advertisement policy on an LSR and a label acceptance policy on its upstream LSR can achieve the same purpose. As a best practice, use the label advertisement policy to reduce network load.
You must create an IP prefix list before you configure a label acceptance policy. For information about IP prefix list configuration, see Layer 3—IP Routing Configuration Guide.
To configure a label acceptance policy:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter LDP view or enter LDP-VPN instance view. |
| N/A |
3. Configure an IPv4 label acceptance policy. | accept-label peer peer-lsr-id prefix-list prefix-list-name | By default, LDP accepts all IPv4 FEC-label mappings. |