#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 eth1 | Specify the interface (eth1) to be configured. |
(config-if)#label-switching | Enable label switching on interface eth1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface eth1. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter Router mode to enable LDP. |
(config-router)#exit | Exit the Router mode and return to the Configure mode. |
(config)#interface eth1 | Specify the interface (eth1) to be configured. |
(config-if)#label-switching | Enable label switching on interface eth1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface eth1. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Specify the interface (eth2) to be configured. |
(config-if)#label-switching | Enable label switching on interface eth2. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface eth2. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter Router mode. |
(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 eth1 | Specify the interface (eth1) to be configured. |
(config-if)#label-switching | Enable label switching on interface eth1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface eth1. |
(config-if)#exit | Exit interface mode. |