Ldp Commands; Accept-Label - HP FlexFabric 12500 Command Reference Manual

Routing switch series, mpls
Table of Contents

Advertisement

LDP commands

accept-label

Use accept-label to configure a label acceptance policy.
Use undo accept-label to remove the label acceptance policy.
Syntax
accept-label peer peer-lsr-id prefix-list prefix-list-name
undo accept-label peer peer-lsr-id
Default
No label acceptance policy is configured. LDP accepts all label mappings from all peers.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
mdc-admin
Parameters
peer peer-lsr-id: Specifies an LDP peer by its LSR ID.
prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63
characters.
Usage guidelines
This feature enables you to control the number of FEC-label mappings received from peers. LDP accepts
only the FEC-label mappings whose IP prefixes are permitted by the specified IP prefix list from the
specified peer.
To accept the previously denied label mappings from a peer, use the undo accept-label command or
change the IP prefix list for the peer. Then, execute the reset mpls ldp command to reset the LDP session
with that peer to apply the new settings.
Using a label advertisement policy on an LSR or using a label acceptance policy on its upstream LSR can
achieve the same purpose. HP recommends that you use the label advertisement policy to reduce
network load.
Examples
# Configure a label acceptance policy to accept only the FEC-label mappings containing prefixes
10.1.1.0/24 and 10.2.1.0/24 from the LDP peer 1.1.1.9.
<Sysname> system-view
[Sysname] ip prefix-list prefix-from-RTA index 1 permit 10.1.1.0 24
[Sysname] ip prefix-list prefix-from-RTA index 2 permit 10.2.1.0 24
[Sysname] mpls ldp
[Sysname-ldp] accept-label peer 1.1.1.9 prefix-list prefix-from-RTA
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flexfabric 12500e

Table of Contents