CCNP Infrastructure Practice Question
A network engineer is configuring a Cisco IOS router to authenticate OSPF neighbors using MD5. The engineer enters the following commands under the OSPF process: area 0 authentication message-digest, and under the interface: ip ospf message-digest-key 1 md5 Cisco123. However, the neighbor relationship does not form. What is the most likely cause?
⚠ Common exam trap
The trap here is assuming that only the key string matters, when in fact the key ID and the area authentication mode must also match.
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
✓
The key ID and key string must match on both routers, and the area authentication command must be consistent.
OSPF MD5 authentication requires consistent configuration on both neighbors: the same key ID, the same key string, and the same authentication mode (area or interface). The area authentication command enables MD5 for the area, and the interface command provides the key. If any of these differ, OSPF authentication fails, and the routers will not become adjacent.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The area authentication command must be configured on all routers in the area, but the interface command is optional.
Why it's wrong here
The area authentication command enables authentication for the area, but the interface command is required to specify the key. Without the interface command, no key is present, and authentication will fail. Both commands are necessary for MD5 authentication to work.
- ✗
The key ID must match on both routers, but the key string can be different.
Why it's wrong here
OSPF MD5 authentication requires both the key ID and the key string to match on both routers. If the key string differs, authentication fails and the neighbor relationship will not form. This statement is false; both parameters must be identical.
- ✓
The key ID and key string must match on both routers, and the area authentication command must be consistent.
Why this is correct
For OSPF MD5 authentication to succeed, both routers must have the same key ID, the same key string, and the same authentication type configured for the area or interface. The area authentication command enables MD5 for the area, and the interface command provides the key. If any of these parameters differ, the neighbor relationship will not form.
- ✗
The router must be reloaded for the MD5 key to take effect.
Why it's wrong here
OSPF MD5 keys take effect immediately after configuration; no reload is required. The issue is not about applying the key but about matching parameters. A reload would not resolve a mismatch in key ID or key string.
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
One of 1,923 original 350-401 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Cisco exam blueprint
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.