R0106-HP MSR Router Series MPLS Command Reference(V7)

30
[Sysname-ldp] accept-label peer 1.1.1.9 prefix-list prefix-from-RTA
Related commands
display mpls ldp peer verbose
ip prefix-list (Layer 3—IP Routing Command Reference)
advertise-label
Use advertise-label to configure a label advertisement policy.
Use undo advertise-label to delete a label advertisement policy.
Syntax
advertise-label prefix-list prefix-list-name [ peer peer-prefix-list-name ]
undo advertise-label prefix-list prefix-list-name
Default
No label advertisement policy is configured. The device advertises label mappings permitted by the LSP
generation policy to all peers.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
Parameters
prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63
characters. This prefix list filters advertised label mappings.
peer peer-prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63
characters. This prefix list filters LDP peers. If you do not specify this option, the device advertises label
mappings to all peers.
Usage guidelines
Use a label advertisement policy to filter label mappings advertised to peers.
You can configure multiple label advertisement policies by executing this command multiple times.
If a label mapping is permitted by an advertisement policy, LDP advertises the mapping by following
these rules:
If the policy has no peer IP prefix list (peer peer-prefix-list-name not specified), LDP advertises the
label mapping to all peers.
If the policy has a peer IP prefix list, LDP advertises the label mapping to the peers permitted by the
peer IP prefix list.
If a label mapping is permitted by multiple advertisement policies, LDP advertises the label mapping
according to the first configured policy.
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 using the label advertisement policy to reduce network load.