interface GigabitEthernet0/1 ip address 10.1.1.1 255.255.255.0 mpls ip ! interface GigabitEthernet0/2 ip address 10.2.2.1 255.255.255.0 mpls ip ! router ospf 1 network 10.0.0.0 0.255.255.255 area 0 ! router ldp interface GigabitEthernet0/1 ! What is the effect of this configuration?
LDP hello messages are multicast on interfaces where LDP is explicitly enabled, typically via the 'mpls ldp' configuration. Because GigabitEthernet0/2 lacks this LDP configuration, it does not participate in LDP neighbor discovery or label binding exchange. Consequently, the LDP adjacency is confined to GigabitEthernet0/1, and only that interface exchanges label mappings; MPLS forwarding may still occur on Gi0/2 using labels learned from other sources, but no dynamic LDP labels are exchanged there.
Why this answer
LDP is explicitly enabled only on GigabitEthernet0/1 under the 'router ldp' configuration. Although MPLS IP is enabled on GigabitEthernet0/2, LDP does not automatically form an adjacency or exchange labels on that interface unless it is explicitly configured under the LDP router process. LDP adjacencies are interface-specific and require the 'interface' command under 'router ldp' to be activated.
Exam trap
Cisco often tests the distinction between 'mpls ip' (which enables MPLS forwarding) and LDP configuration (which controls label distribution adjacencies), trapping candidates who assume that enabling MPLS on an interface automatically activates LDP.
How to eliminate wrong answers
Option B is wrong because enabling 'mpls ip' on an interface does not automatically enable LDP; LDP must be explicitly configured under 'router ldp' with the specific interface. Option C is wrong because the configuration will not fail; LDP can be selectively enabled on a subset of MPLS-enabled interfaces, and MPLS forwarding can still occur on other interfaces via static labels or other label distribution protocols. Option D is wrong because OSPF has no mechanism to automatically enable LDP; LDP is a separate protocol that must be configured independently, regardless of the IGP.