#configure terminal | Enter configure mode. |
(config)#router ldp | Enter Router mode. |
(config-router)#neighbor 10.10.10.2 auth md5 password 0 pwd1 | Configure the MD5 authentication and password, pwd1, for the neighbor, 10.10.10.2. |
(config-router)#targeted-peer ipv4 3.3.3.3 | Configure the targeted peer IP address (R3 loopback address). |
(config-router-targeted-peer)#exit | Exit targeted peer mode. |
(config-router)#neighbor 3.3.3.3 auth md5 password 0 pwd2 | Configure the MD5 authentication and password, pwd2, for the targeted peer, 3.3.3.3. |
(config-router)#exit | Exit the Router mode and return to the Configure mode. |
(config)#interface lo | Specify the loopback interface (lo) to be configured. |
(config-if)#ip address 1.1.1.1/32 secondary | Set the IP address of the loopback interface to 1.1.1.1/ 32. |
(config-if)#commit | Commit the transaction. |
(config)#interface xe1 | Specify the interface (xe1) to be configured. |
(config-if)#ip address 10.10.10.1/24 | Set the IP address of the interface to 10.10.10.1/24. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe1. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter Router mode to enable LDP. |
(config)#router-id 2.2.2.2 | Configure the router ID. |
(config-router)#transport-address ipv4 2.2.2.2 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. |
(config-router)#exit | Exit the Router mode and return to the Configure mode. |
(config)#interface lo | Specify the loopback (lo) interface to be configured. |
(config-if)#ip address 2.2.2.2/32 secondary | Set the IP address of the loopback interface to 2.2.2.2/32 |
(config-if)#exit | Exit interface mode. |
(config)#interface xe1 | Specify the interface (xe1) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe1. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Specify the interface (xe2) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe2. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe2. |
(config-if)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter Router mode. |
(config-router)#router-id 3.3.3.3 | Configure the router-id |
(config-router)#transport-address ipv4 3.3.3.3 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configure the targeted peer IP address (R1 loopback address). |
(config-router-targeted-peer)#exit | Exit targeted peer mode. |
(config-router)#neighbor 1.1.1.1 auth md5 password 0 pwd2 | Configure the MD5 authentication and password, pwd2, for the targeted peer, 1.1.1.1. |
(config-router)#exit | Exit the Router mode and return to the Configure mode. |
(config)#interface lo | Specify the loopback (lo) interface to be config. |
(config-if)#ip address 3.3.3.3/32 secondary | Set the IP address of the loopback interface to 3.3.3.3/32 |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Specify the interface (xe2) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe2. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe2. |
(config-if)#commit | Commit the transaction. |