The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
The MPLS LDP Autoconfiguration feature enables you to globally configure Label Distribution Protocol (LDP) on every interface associated with a specified Interior Gateway Protocol (IGP) instance.
The MPLS LDP Autoconfiguration feature enables you to globally enable Label Distribution Protocol (LDP) on every interface associated with an Interior Gateway Protocol (IGP) instance. This feature is supported on Open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (IS-IS) IGPs. It provides a means to block LDP from being enabled on interfaces that you do not want enabled. The goal of the MPLS LDP Autoconfiguration feature is to make configuration easier, faster, and error free.
You issue the mpls ldp autoconfig command to enable LDP on each interface that is running an OSPF or IS-IS process. If you do not want some of the interfaces to have LDP enabled, you can issue the no mpls ldp igp autoconfig command on those interfaces.
1.
enable
2.
configure
terminal
3.
mpls
ip
4.
mpls label
protocol ldp
5.
interface
type
number
6.
ip address
prefix
mask
7.
mpls
ip
8.
exit
9.
router
ospf
process-id
10.
network
ip-address
wildcard-mask
area
area-id
11.
mpls ldp
autoconfig [area
area-id]
12.
end
When you issue the mpls ldp autoconfig command, all the interfaces that belong to an Open Shortest Path First (OSPF) area are enabled for the Label Distribution Protocol (LDP). To remove LDP from some interfaces, use the no mpls ldp igp autoconfig command on those interfaces. The following configuration steps show how to disable LDP from some of the interfaces after they were configured with the MPLS LDP Autoconfiguration feature with the mpls ldp autoconfig command.
1.
enable
2.
configure terminal
3.
interface
type
number
4.
no mpls ldp igp autoconfig
5.
end
1.
enable
2.
show mpls interfaces [type
number |
vrf
vpn-name] [all] [detail] [internal]
3.
show mpls ldp discovery [vrf
vpn-name |
all] [detail]
1.
enable
2.
configure terminal
3.
interface
type number
4.
ip address
prefix
mask
5.
ip router isis
6.
exit
7.
mpls ip
8.
mpls label protocol ldp
9.
router isis
10.
mpls ldp autoconfig [level-1 |
level-2]
11.
end
When you issue the mpls ldp autoconfig command, all the interfaces that belong to an Intermediate System-to-Intermediate System (IS-IS) process are enabled for the Label Distribution Protocol (LDP). To remove LDP from some interfaces, use the no mpls ldp igp autoconfig command on those interfaces. The following configuration steps show how to disable LDP from some of the interfaces after they were configured with the MPLS LDP Autoconfiguration feature with the mpls ldp autoconfig command.
1.
enable
2.
configure terminal
3.
interface
type
number
4.
no mpls ldp igp autoconfig
5.
end
1.
enable
2.
show isis mpls ldp
You can use the debug mpls ldp autoconfig command to display events that are related to the MPLS LDP Autoconfiguration feature.
The following configuration commands enable the Label Distribution Protocol (LDP) for Open Shortest Path First (OSPF) process 1 area 3. The mpls ldp autoconfig area 3 command and the OSPF network commands enable LDP on POS interfaces 0/0, 0/1, and 1/1. The no mpls ldp igp autoconfig command on POS interface 1/0 prevents LDP from being enabled on POS interface 1/0, even though OSPF is enabled for that interface.
configure terminal interface POS 0/0 ip address 10.0.0.1 255.0.0.0 ! interface POS 0/1 ip address 10.0.1.1 255.0.0.1 ! interface POS 1/1 ip address 10.1.1.1 255.255.0.0 ! interface POS 1/0 ip address 10.1.0.1 0.1.0.255 exit ! router ospf 1 network 10.0.0.0 0.0.255.255 area 3 network 10.1.0.0 0.0.255.255 area 3 mpls ldp autoconfig area 3 end interface POS 1/0 no mpls ldp igp autoconfig
The following example shows the configuration of the MPLS LDP Autoconfiguration feature on POS0/2 and 0/3 interfaces, which are running Intermediate System-to-Intermediate System (IS-IS) processes:
configure terminal interface POS 0/2 ip address 10.0.0.1 255.0.0.1 ip router isis ! interface POS 0/3 ip address 10.1.1.1 255.0.1.0 ip router isis exit mpls ip mpls label protocol ldp router isis mpls ldp autoconfig