Courseiva
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

R1 R2 R3 R4 10 100 10 100 OSPF picks R1→R2→R4 (cost 20) over R1→R3→R4 (cost 200)

Quick reference

Routing Protocol Comparison

ProtocolMetricMax HopsAlgorithmType
RIP v2Hop count15Bellman-FordDistance vector
OSPFCost (bandwidth)UnlimitedDijkstra (SPF)Link state
EIGRPComposite metricUnlimitedDUALHybrid
IS-ISCostUnlimitedDijkstraLink state
BGPPolicy / attributesUnlimitedPath vectorPath 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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jul 4, 2026

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.

Loading comments…

Sign in to join the discussion.

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.