Scenario

Same three routers, but now they should learn the networks from each other with OSPF. R2 is already configured: it runs OSPF process 1 in area 0 with router ID 2.2.2.2. Configure R1 and R3 so they become its neighbours and the two LANs can reach each other.

Topology

R1R2R3

Requirements

  1. 1R1 uses router ID 1.1.1.1
  2. 2R1 and R2 are neighbours in the FULL state
  3. 3R3 and R2 are neighbours in the FULL state
  4. 4R1 learns 192.168.3.0/24 through OSPF
  5. 5R3 learns 192.168.1.0/24 through OSPF
  6. 6PC1 can ping PC3

R2 already runs OSPF. R1 and R3 do not. Pick a router above, type ? for the commands you can use, and start with: enable

R1> show running-config

CCNA lab · about 20 min

Single-area OSPFv2

Let the routers find each other and share routes instead of typing them. Configure OSPF on two routers and check the neighbours.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Same three routers, but now they should learn the networks from each other with OSPF. R2 is already configured: it runs OSPF process 1 in area 0 with router ID 2.2.2.2. Configure R1 and R3 so they become its neighbours and the two LANs can reach each other.

About 20 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

What does the wildcard mask do?

In a network statement it says which bits of the interface address must match. It is the inverse of a subnet mask, so 0.0.0.3 matches a /30 and 0.0.0.255 matches a /24.

Why set a router ID?

OSPF uses it to name each router. If you do not set one, the router picks the highest interface address, which can change when the network does.

Is this a real Cisco router?

No. It is a simulator written by CertAce that models OSPF neighbours and routes for one area. Real OSPF has many more states, timers and options.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.