Labs

Free today: Lab of the dayOSPF: make R1 the DR, silence the user LAN and originate a default route

Easiest on a computer, but it works here too.

Scenario

R1, R2 and R3 share the Ethernet segment 10.36.0.0/24 (Gi0/0 on R1). R2 (10.36.0.2, router ID 2.2.2.2, priority 50) and R3 (10.36.0.3, router ID 3.3.3.3, default priority 1) run OSPF process 1 in area 0, and R2 has the LAN 10.36.2.0/24. After a power cut all three routers are starting together, and the election is about to happen. Make R1 (router ID 1.1.1.1) the designated router, advertise its user LAN 10.36.10.0/24 on Gi0/1 without sending OSPF hellos there, and tell the other routers about the way out: R1 has a static default route to the ISP at 203.0.113.2 on Gi0/2.

Initial config
interface GigabitEthernet0/0
 ip address 10.36.0.1 255.255.255.0
 no shutdown
interface GigabitEthernet0/1
 ip address 10.36.10.1 255.255.255.0
 no shutdown
interface GigabitEthernet0/2
 ip address 203.0.113.1 255.255.255.252
 no shutdown

Topology click a device to open its console

Requirements

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

    Console

    Tab completes · ? lists options

    About this lab

    R1, R2 and R3 share the Ethernet segment 10.36.0.0/24 (Gi0/0 on R1). R2 (10.36.0.2, router ID 2.2.2.2, priority 50) and R3 (10.36.0.3, router ID 3.3.3.3, default priority 1) run OSPF process 1 in area 0, and R2 has the LAN 10.36.2.0/24. After a power cut all three routers are starting together, and the election is about to happen. Make R1 (router ID 1.1.1.1) the designated router, advertise its user LAN 10.36.10.0/24 on Gi0/1 without sending OSPF hellos there, and tell the other routers about the way out: R1 has a static default route to the ISP at 203.0.113.2 on Gi0/2.

    About 15 minutes. This is today’s lab of the day, free for everyone until midnight UTC; the other labs are included in the plans and the free trial.

    Questions about this lab

    Is this a real Cisco router?

    No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

    How is the DR chosen?

    The router with the highest OSPF priority on the segment wins; a tie goes to the highest router ID. The election is not preemptive: a router that joins later with a higher priority does not take the role from a working DR. Priority 0 excludes a router.

    What does passive-interface do?

    It stops OSPF from sending and receiving hellos on the interface, so no adjacency forms there. The network on the interface is still advertised if a network statement matches it. It is used on LANs with only users.

    What does default-information originate do?

    It makes the OSPF router advertise a default route into OSPF (as an external type 2 route by default). It needs a default route in the routing table of that router, unless always is added.

    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.