Question 1,635 of 1,840
mediumMultiple ChoiceObjective-mapped
350-401 Practice Question: Interface GigabitEthernet0/1 ip address 10.1.1.1…
interface GigabitEthernet0/1 ip address 10.1.1.1 255.255.255.0
mpls ip mpls label protocol ldp !
router ospf 1 network 10.1.1.0 0.0.0.255 area 0
!
router ldp interface GigabitEthernet0/1
! What is the effect of this configuration?
⚠ Common exam trap
Cisco often tests the misconception that LDP only labels OSPF or IGP routes, when in fact LDP distributes labels for all routes in the routing table by default, including static and connected routes.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
MPLS forwarding is enabled on GigabitEthernet0/1, and LDP will distribute labels for all routes in the routing table.
The `mpls ip` command under the interface enables MPLS forwarding, and the `router ldp` configuration with the interface specified activates LDP on that interface. LDP will then distribute labels for all routes in the routing table (including OSPF, static, connected, etc.) by default, as LDP does not filter based on routing protocol. The `mpls label protocol ldp` command is indeed redundant since LDP is the default label distribution protocol in Cisco IOS, but it does not break the configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
MPLS forwarding is enabled on GigabitEthernet0/1, and LDP will distribute labels for all routes in the routing table.
Why this is correct
Correct. 'mpls ip' enables MPLS forwarding, and LDP with the interface configuration will distribute labels for all routes, including OSPF-learned ones.
- ✗
Only OSPF routes are labeled; static routes are excluded from LDP label distribution.
Why it's wrong here
Incorrect. By default, LDP distributes labels for all routes in the routing table, not just OSPF routes.
- ✗
The 'mpls label protocol ldp' command is redundant because LDP is the default.
Why it's wrong here
Incorrect. While LDP is often the default, this command explicitly sets the label protocol to LDP, which is not redundant in all IOS versions.
- ✗
The configuration will fail because 'router ldp' requires an LDP router-id to be set.
Why it's wrong here
Incorrect. LDP can use the highest loopback IP as router-id automatically; no explicit configuration is required.
Visual reference
Quick reference
Routing Protocol Comparison
| Protocol | Metric | Max Hops | Algorithm | Type |
|---|---|---|---|---|
| RIP v2 | Hop count | 15 | Bellman-Ford | Distance vector |
| OSPF | Cost (bandwidth) | Unlimited | Dijkstra (SPF) | Link state |
| EIGRP | Composite metric | Unlimited | DUAL | Hybrid |
| IS-IS | Cost | Unlimited | Dijkstra | Link state |
| BGP | Policy / attributes | Unlimited | Path vector | Path vector |
RIP's 15-hop limit makes it unsuitable for large networks. OSPF and EIGRP dominate modern enterprise deployments.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jul 4, 2026
This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.