#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)#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. |
(config-router)#neighbor 10.10.10.1 auth md5 password 0 pwd1 | Configure the MD5 authentication and password, pwd1, for the neighbor, 10.10.10.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. |