device# configure terminal
device(config)# ip prefix-list list1 permit 10.2.2.2/32
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# advertise-fec list1
device(config-router-mpls-ldp)# Ctrl-z
device# show running-config router mpls ldp router mpls ldp .... advertise-fec list1 ! !
device# show mpls ldp database Session 10.3.3.3:0 - 10.5.5.2:0 Downstream label database: Label Prefix State Upstream label database: Label Prefix 3 10.2.2.2/32
The following configuration is an example of the previous steps.
device(config)# ip prefix-list list1 permit 10.2.2.2/32 device(config)# router mpls device(config-router-mpls)# ldp device(config-router-mpls-ldp)# advertise-fec list1