targeted-peer
Use targeted-peer to create a targeted IPv4 LDP peer and enter its view, or enter the view of an existing targeted IPv4 LDP peer. The device can send unsolicited IPv4 Targeted Hellos to the peer and can respond to IPv4 Targeted Hellos received from the peer.
Use undo targeted-peer to cancel the configuration.
Syntax
targeted-peer ipv4-address
undo targeted-peer ipv4-address
Default
No targeted LDP peers exist. The device does not send IPv4 Targeted Hellos to any peers, or respond to IPv4 Targeted Hellos received from any peers.
Views
LDP view
Predefined user roles
network-admin
Parameters
ipv4-address: Specifies the peer IPv4 address.
Usage guidelines
If you do not specify the LDP transport address, LDP sends the local LSR ID to the peer specified by this command in IPv4 Targeted Hellos.
To ensure a successful IPv4 Targeted Hello adjacency, make sure the following requirements are met:
The peer IPv4 address configured on the local LSR is the same as the IPv4 transport address configured in LDP peer view on the peer.
A route exists between the local IPv4 transport address and the peer IPv4 address.
LDP automatically sends Targeted Hellos to the specified peer after one of the following features is configured:
LDP session protection.
LDP over MPLS TE.
To modify the Targeted Hello/Keepalive hold time and interval, you must use this command to create the LDP peer, and then perform the modification in the LDP peer view.
Examples
# Configure the device to send IPv4 Targeted Hellos to peer 3.3.3.3, and enter LDP peer view.
<Sysname> system-view [Sysname] mpls ldp [Sysname-ldp] targeted-peer 3.3.3.3 [Sysname-ldp-peer-3.3.3.3]
Related commands
display mpls ldp discovery
display mpls ldp peer