mpls ldp discovery transport-address
To specify the transport address advertised in Label Distribution Protocol (LDP) Discovery Hello messages sent on an interface, use the mpls ldp discovery transport-address command in interface configuration mode. To remove the transport address advertised, use the no form of this command.
Defaults
The default behavior when this command has not been issued for an interface depends on the interface type.
Unless the interface is a label-controlled ATM (LC-ATM) interface, LDP advertises its LDP router ID as the transport address in LDP Discovery Hello messages sent from the interface.
If the interface is an LC-ATM interface, no transport address is explicitly advertised in LDP Discovery Hello messages sent from the interface.
Usage Guidelines
Establishing an LDP session between two routers requires a session TCP connection by which label advertisements can be exchanged between the routers. To establish the session TCP connection, each router must know the transport address (IP address) of the other router.
The LDP discovery mechanism provides the means for a router to advertise the transport address for its end of a session TCP connection. The transport address advertisement itself may be explicit, in which case it appears as part of the contents of Discovery Hello messages sent to the peer, or implicit, in which case it does not, and the peer uses the source IP address of received Hello messages for the peer's transport address.
The mpls ldp discovery transport-address command provides the means to modify the default behavior described above. When the interface keyword is specified, LDP advertises the IP address of the interface in LDP Discovery Hello messages sent from the interface. When the ip-address argument value is specified, LDP advertises the specified IP address in LDP Discovery Hello messages sent from the interface.
Note: When a router has multiple links connecting it to its peer device, the router must advertise the same transport address in the LDP Discovery Hello messages it sends on all such interfaces.
Examples
The following example specifies that LDP should advertise the IP address of interface POS2/0 in LDP Hello messages sent from that interface.
The following example specifies that the LDP should advertise IP address 145.22.0.56 in the LDP Hellow messages sent from interface POS3/1.
mpls ldp discovery transport-address {interface ip-address}
no mpls ldp discovery transport-address
Defaults
The default behavior when this command has not been issued for an interface depends on the interface type.
Unless the interface is a label-controlled ATM (LC-ATM) interface, LDP advertises its LDP router ID as the transport address in LDP Discovery Hello messages sent from the interface.
If the interface is an LC-ATM interface, no transport address is explicitly advertised in LDP Discovery Hello messages sent from the interface.
Usage Guidelines
Establishing an LDP session between two routers requires a session TCP connection by which label advertisements can be exchanged between the routers. To establish the session TCP connection, each router must know the transport address (IP address) of the other router.
The LDP discovery mechanism provides the means for a router to advertise the transport address for its end of a session TCP connection. The transport address advertisement itself may be explicit, in which case it appears as part of the contents of Discovery Hello messages sent to the peer, or implicit, in which case it does not, and the peer uses the source IP address of received Hello messages for the peer's transport address.
The mpls ldp discovery transport-address command provides the means to modify the default behavior described above. When the interface keyword is specified, LDP advertises the IP address of the interface in LDP Discovery Hello messages sent from the interface. When the ip-address argument value is specified, LDP advertises the specified IP address in LDP Discovery Hello messages sent from the interface.
Note: When a router has multiple links connecting it to its peer device, the router must advertise the same transport address in the LDP Discovery Hello messages it sends on all such interfaces.
Examples
The following example specifies that LDP should advertise the IP address of interface POS2/0 in LDP Hello messages sent from that interface.
Router(config#) interface pos2/0
Router(config-if)# mpls ldp discovery transport-address interface
The following example specifies that the LDP should advertise IP address 145.22.0.56 in the LDP Hellow messages sent from interface POS3/1.
Router(config#) interface pos3/1
Router(config-if)# mpls ldp discovery transport-address 145.22.0.56
Comments