nerdexam
Cisco

350-401 · Question #824

Lab Simulation 3 Guidelines This is a lab item in which tasks will be performed on virtual devices. - Refer to the Tasks tab to view the tasks for this lab item. - Refer to the Topology tab to access

OSPF Lab Simulation - Full Explanation --- Overall Goal This lab configures OSPF (Open Shortest Path First) between two routers with three specific requirements: interface-level OSPF advertisement, point-to-point network type, and MD5 authentication. The lab tests your knowledge

Submitted by lars.no· Mar 6, 2026Infrastructure

Question

Lab Simulation 3 Guidelines This is a lab item in which tasks will be performed on virtual devices. - Refer to the Tasks tab to view the tasks for this lab item. - Refer to the Topology tab to access the device console(s) and perform the tasks. - Console access is available for all required devices by clicking the device icon or using the tab(s) above the console window. - All necessary preconfigurations have been applied. - Do not change the enable password or hostname for any device. - Save your configurations to NVRAM before moving to the next item. - Click Next at the bottom of the screen to submit this lab and move to the next question. - When Next is clicked, the lab closes and cannot be reopened. Topology Tasks Configure OSPF on both routers according to the topology to achieve these goals: 1. Ensure that all networks are advertised between the routers without using the "network" statement under the "router ospf" configuration section. 2. Configure a single command on both routers to ensure: - The DR/BDR election does not occur on the link between the OSPF neighbors. - No extra OSPF host routes are generated. 3. Use md5 authentication between the p2p links Answer: Task 1. Ensure that all networks are advertised between the routers without using the "network" statement "router ospf" configuration section. -> So we will configure OSPF under interface mode with the command "ip ospf {ospf-process} area {area-number}": On both R1 & R2: R1&R2(config)#interface Ethernet 0/0 R1&R2(config-if)#ip ospf 1 area 0 R1&R2(config)#interface lo0 R1&R2(config-if)#ip ospf 1 area 0 Note: There is another version of this task which asks to advertise networks with "network" statements and configure router-id with IP address of Lo0. Here is the solution in this case: R1(config)#router ospf 1 R1(config-router)#router-id 1.1.1.1 R1(config-router)#network 192.168.0.0 0.0.0.255 area 0 R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R2(config)#router ospf 1 R2(config-router)#router-id 2.2.2.2 R2(config-router)#network 192.168.0.0 0.0.0.255 area 0 R2(config-router)#network 2.2.2.2 0.0.0.0 area 0 Task 2. Configure a single command on both routers to ensure: + The DR/BDR election does not occur on the link between the OSPF neighbors. + No extra OSPF host routes are generated. R1&R2(config)#interface Ethernet 0/0 R1&R2(config-if)#ip ospf network point-to-point Note: After configuring "ip ospf network point-to-point" command you will not see any routes changed and the number of routes remain the same. In fact, the request "no extra OSPF host routes are generated" wants to tell us "don't use ip ospf network point-to-multipoint" command as this command generates extra /32 routes. Task 3. Use md5 authentication between the p2p links Note: This task is optional. You may or may not see this task so please read the requirements of the sim carefully R1&R2(config-if)#ip ospf message-digest-key 1 md5 MY_PASSWORD R1&R2(config-if)#ip ospf authentication message-digest Save the configuration R1#, R2#, R3#copy running-config startup-config Verification R1#show ip ospf interface Ethernet 0/0 Ethernet 0/0 is up, line protocol is up Internet Address 192.168.0.1/24, Area 0, Attached via Interface Enable Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 1 ... Cryptographic authentication enabled Youngest key id is 1 R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 2.2.2.2 0 FULL/- 00:00:35 192.168.0.2 Ethernet 0/0

Exhibits

350-401 question #824 exhibit 1
350-401 question #824 exhibit 2

Explanation

OSPF Lab Simulation - Full Explanation


Overall Goal

This lab configures OSPF (Open Shortest Path First) between two routers with three specific requirements: interface-level OSPF advertisement, point-to-point network type, and MD5 authentication. The lab tests your knowledge of how OSPF can be configured beyond the traditional network statement approach.


Task 1 - Interface-Level OSPF (No network Statement)

Commands:

interface Ethernet 0/0
 ip ospf 1 area 0
interface lo0
 ip ospf 1 area 0

Why this works: Normally, you'd go into router ospf 1 and use network 192.168.0.0 0.0.0.255 area 0 to match interfaces. The ip ospf <process> area <area> command applied directly on the interface is an equivalent but more explicit alternative - it attaches OSPF directly to that interface without needing wildcard mask matching.

Why both interfaces matter:

  • Ethernet 0/0 - the inter-router link; must be advertised so the neighbor relationship forms and routes are exchanged
  • Loopback0 - typically used as the router-id and represents the router itself in the OSPF topology; without it, the loopback network disappears from the OSPF database

What goes wrong if skipped: If you only configure Ethernet 0/0, the loopback network won't be advertised. If you configure neither and leave the network statement out, OSPF won't run at all.

Memory tip: Think of ip ospf 1 area 0 as "enrolling this interface in OSPF class 1, section 0" - the interface itself raises its hand to participate.


Task 2 - Point-to-Point Network Type

Command:

interface Ethernet 0/0
 ip ospf network point-to-point

Why this solves both requirements simultaneously:

RequirementWhy point-to-point solves it
No DR/BDR electionDR/BDR elections only happen on broadcast and non-broadcast network types. Point-to-point skips the election entirely.
No extra /32 host routespoint-to-multipoint generates individual /32 routes for each neighbor. point-to-point does not - it installs a single route to the remote subnet.

Why not other network types:

  • broadcast (default on Ethernet) - holds a DR/BDR election, which wastes time on a 2-router link and is unnecessary
  • point-to-multipoint - no DR/BDR election , but does generate extra /32 host routes - - this is explicitly what the question forbids
  • point-to-point - satisfies both constraints with a single command

Verification signal: After this change, show ip ospf neighbor shows FULL/- (the - means no DR/BDR role), confirming the election was suppressed.

What goes wrong if skipped: The neighbor relationship still forms, but a DR/BDR election occurs. On a two-router link this is harmless functionally, but it fails the lab requirement. Routing also works, but the question is specifically testing whether you know the correct network type.

Memory tip: "Two routers, one wire = point-to-point." Any time you have exactly two OSPF peers on a link and want the cleanest operation, point-to-point is the answer.


Task 3 - MD5 Authentication

Commands:

interface Ethernet 0/0
 ip ospf message-digest-key 1 md5 MY_PASSWORD
 ip ospf authentication message-digest

Two commands, two distinct roles:

  1. ip ospf message-digest-key 1 md5 MY_PASSWORD - defines the key itself: key ID 1, algorithm md5, passphrase MY_PASSWORD. You can have multiple keys (for key rotation); the ID lets routers match them.

  2. ip ospf authentication message-digest - activates MD5 authentication on this interface. Without this second command, the key is defined but never used - OSPF hellos remain unauthenticated.

Why both routers need identical configuration: OSPF authentication is peer-to-peer. If R1 sends an MD5-authenticated hello but R2 isn't configured to authenticate, R2 drops the packet. If the key ID or password doesn't match, the neighbor relationship never reaches FULL state.

What goes wrong if skipped:

  • Skip the key definition -> authentication command references a nonexistent key -> neighbor drops
  • Skip the authentication message-digest line -> key is silently unused, no authentication occurs -> lab requirement unmet
  • Mismatch passwords or key IDs -> neighbor stuck in EXSTART/EXCHANGE, never reaches FULL

Memory tip: "Define it, then activate it." Key definition without activation = a lock with no door. Activation without a key definition = a door with no lock.


Order Dependency

Tasks 1 and 2 can technically be done in either order on the interface, but Task 1 must complete before OSPF neighbors form - you need OSPF running before authentication matters. The logical order is:

Enable OSPF on interfaces -> Set network type -> Add authentication

Configuring authentication before OSPF is enabled on the interface is harmless but confusing. The neighbor relationship won't form until both sides have matching authentication, so Task 3 is effectively the last gate before FULL adjacency.


Verification Checklist

show ip ospf interface Ethernet 0/0
  -> Network Type: POINT_TO_POINT
  -> Cryptographic authentication enabled

show ip ospf neighbor
  -> State: FULL/-   (the "-" confirms no DR/BDR)

show ip route ospf
  -> Remote loopback and subnet routes present, no extra /32s

If any of these checks fail, trace back to the corresponding task above.

Topics

#OSPF Configuration#OSPF Network Types#OSPF Authentication#Interface-level OSPF

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice