Cisco Cisco IOS Software Release 12.0(13)S7

Page de 46
 
MPLS—LDP MD5 Global Configuration
  Configuration Examples for Configuring the MPLS—LDP MD5 Global Configuration Feature
17
Cisco IOS Release: Multiple releases
Configuring an LDP MD5 Password for LDP Sessions for a Specified Neighbor: Example
The following example shows how to configure an LDP MD5 password for LDP sessions for a specified 
neighbor:
enable
configure terminal
mpls ldp vrf vpn1 10.1.1.1 password nbrscrtpwd
end
This sets up nbrscrtpwd as the password to use for LDP sessions for the neighbor whose LDP router ID 
is 10.1.1.1. Communication with this neighbor is through VRF vpn1.
Configuring an LDP MD5 Password for LDP Sessions with Peers from a Specified VRF: Example
The following example shows how to configure an LDP MD5 password for LDP sessions with peers 
from a specified VRF. The password vrfpwdvpn1 is configured for use with LDP peers that communicate 
using VRF vpn1. A password is required; otherwise, LDP tears down the session.
enable
configure terminal
mpls ldp vrf vpn1 password fallback vrfpwdvpn1
mpls ldp vrf vpn1 password required
end
The following example shows how to configure a password that is used for sessions for peers that 
communicate using the global routing table:
enable
configure terminal
mpls ldp password fallback vrfpwdvppn1
end
Configuring an LDP MD5 Password for LDP Sessions with a Selected Group of Peers: Example
The following example shows how to configure an LDP MD5 password for LDP sessions with a selected 
group of peers. The required password aclpwdfor10 is configured for access list 10. Only those LDP 
router IDs permitted in access list 10 are required to use the password. 
enable
configure terminal
mpls ldp password option 25 for 10 aclpwdfor10
mpls ldp password required for 10
end
Access list 10 might look something like this:
enable
configure terminal
access-list 10 permit 10.1.1.1
access-list 10 permit 10.3.3.3
access-list 10 permit 10.4.4.4
access-list 10 permit 10.1.1.1
access-list 10 permit 10.2.2.2
end