OcNOS-RON : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : LDP Configuration : Configure LDP MD5 for Targeted LDP Session
Configure LDP MD5 for Targeted LDP Session
In this example, MD5 authentication is configured for the targeted LDP session established between R1 and R3.
Figure 6-3: Topology for Targeted Session MD5
R1
 
#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.
R2
 
#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.
R3
 
#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.
Last modified date: 07/13/2023