Config Lab: Big OSPF Lab 1
As with all the Config Labs with “BIG” in the title, this lab is different than most. This BIG lab collects many of the configuration topics in Volume 1, Part 6 of the CCNA Official Cert Guide, and lets you configure them. For this lab, you have a great opportunity to review VLAN, VLAN trunking, IP addressing, and interface configuration to understand the lab’s initial state. Then you enable OSPF on seven different routers. The lab gives you some parameters, leaving you to determine the configuration. In some cases, the lab asks you to decide which optional OSPF features to use. Finally, you should verify each feature while configuring – you’ll learn as much by verifying OSPF as you do by configuring it. Enjoy!
Part 1: Learn About the Initial Config
The first task, which is fairly large, is to understand the topology and initial configuration. At this point in your studies, you should be comfortable navigating the Cisco CLI. So rather than placing large amounts of config here in this post, your job is to take a guided tour of the configuration in Cisco Packet Tracer. You can also watch my lab intro video on YouTube, where I walk you through the initial state.
So download the .pkt file, open it, and start systematically using show commands. Refer to Figure 1, and then work through the list that follows the figure.

Figure 1: Lab Topology
Use this list of discovery tasks to learn about the initial state of the lab. The list refers to each major step as a “Discovery”, with the configuration tasks that follow labelled as “Tasks”.
Discovery 1: Explore the pre-configured Core LAN
-
- Look to the left side of the figure for switches A1 (Access1), A2 (Access2), D1 (Dist1), and D2 (Dist2).
- A1 and A2 act as access switches, with access ports in VLANs 101 and 102.
- VLAN trunks exist between each access switch and each of the two distribution switches (D1 and D2).
- On the far left, the PCs and servers use static IPv4 settings to avoid the oddities of DHCP in Cisco Packet Tracer (CPT).
- The distribution switches perform layer 3 switching and, together, act as the default gateway for each LAN-based subnet, using HSRP to share those duties.
- Use the switch CLI and PC command prompts to explore and get comfortable with the VLANs, VLAN trunks, and IP addresses of the devices. (See upcoming reference tables.
Discovery 2: Explore VLANs 101 and 102 and the D1/D2 Matching VLAN Interfaces
-
- Identify the access ports in each VLAN (on the access switches).
- Identify the operating VLAN trunks.
- View the SVIs (VLAN interfaces) on both D1 and D2.
- Note the configured IP address and mask, and calculate the subnet ID and the address range for each subnet.
Discovery 3: Explore the Default Gateway settings and standby commands on D1/D2.
-
- On a few PCs and servers, note the preconfigured default gateway settings, which should point to addresses that end in .10.
- Examine the configuration on both D1 and D2, for the VLAN interfaces. Note the addresses configured with the ip address commands. What is the last octet of those addresses?
- Notice the standby command under each VLAN interface, which defines the IP address used as the default gateway for hosts in that subnet. Note that the standby commands define the IP address that serves as the default gateway for each subnet. Note that when HSRP is in use, addresses configured with the ip address subcommand will not be used as the default gateway.
Discovery 4: Explore Layer 3 LAN Links and Settings
-
- On the far left, revisit the VLAN interface IP addresses and masks on D1/D2. Make sure you know the subnet IDs and masks of those two subnets.
- Envision the upper right of the figure as branch 1, with two routers. Routers B11 and B12 both connect to the same LAN switch, to the same VLAN, where another subnet resides. Find the subnet/ID and mask for that subnet.
- Router B12 has some embedded LAN switch ports. Review the related configuration to find the VLAN, SVI, and subnet ID.
- Router B21 resides at a separate branch – think of it as branch 2 – with one LAN switch and VLAN. Learn about the VLAN on the switch and the subnet used on that VLAN.
Discovery 5: Examine Layer 3 Transit Links
-
- OSPF refers to links between routers, which are not typically the destinations for user traffic, as transit links.
- Next, focus on the six WAN links between the Core site and a branch router. Discover the IP subnet and mask used in each case.
- Then look at the three layer 3 links in the LAN core at the central site and identify the subnets in use.
- Spot check connectivity by pinging the IP addresses on either end of any of these WAN links. Note that OSPF and static routes are not preconfigured, so pings will only work for addresses in a connected subnet, such as a neighboring router.
Discovery 6: Check the Internet Link
-
- Router Core1 connects to an ISP router, so you can test a default route in OSPF. The ISP router and the ISP’s web server are preconfigured, but router Core1’s default route configuration is incomplete; this is a task for you in this lab.
- Discover the subnets used on the links connected to the ISP1 router. Note that the addresses that begin with 198 are represent public IPv4 addresses for the purposes of this exercise.
The following table lists the preconfigured IP addresses for the hosts in the lab.
| Device | DNS Name | Address |
|---|---|---|
| A1 | 10.0.101.41 | |
| A2 | 10.0.101.42 | |
| B1 | 10.0.102.41 | |
| B2 | 10.0.102.42 | |
| www-A | www-A.example.com | 10.0.101.11 |
| www-B | www-B.example.com | 10.0.102.11 |
| www-ISP | www-ISP | 198.51.100.2 |
| DHCP Server | 10.0.101.20 | |
| DNS Server | 10.0.101.19 |
Table 1: Hosts Used for Ping/Trace Tests
Config Lab Intro Video
The above lab intro – the text, figures, and initial configuration – tells you all you need to know. But if you want a little more, with a little different slant on what to do in this lab, watch this lab intro video!
Part 2: Configure OSPF Features
This lab organizes the work into six tasks. Some tasks require configuration on all routers, some on a few routers, and one task requires config on a single router. It’s up to you to examine each task, choose the required configuration for each device, configure the devices, and test the features to confirm they work.
You should pause and test the function of each task. For instance, in task one, you enable OSPF on all relevant interfaces in the topology, all in area 0. All routers should learn routes for all subnets in network 10.0.0.0 as a result. You should be able to examine IP routing tables in each router and confirm each router knows routes to each subnet.
Figure 2 repeats the earlier figure, just to reduce scrolling, with the configuration tasks detailed under the figure.

Figure 2: Lab Topology
Your lab tasks:
Task 1: Enable OSPF, in Area 0, and Configure Router IDs
-
- Enable OSPF on routers.
- When this lab refers to “routers”, that includes layer 3 switches – any device that performs routing.
- All links are in area 0.
- Assign router IDs per Table 2 (found after the task list). Use any config method you like.
- For variety, for the four routers at the core site (Dist1, Dist2, Core1, Core2), use network commands but no interface subcommands to enable OSPF on interfaces. For the network commands, you have two style options:
- You choose the number of network commands, you choose the wildcard masks, and make it work.
- Challenge: Use only one network command per router. You may only use wildcard masks with 0’s and 255’s, and use as few 255’s as possible to achieve the goal.
- For variety, use interface subcommands, but no network commands, on the branch routers.
Task 2: Tune OSPF Metrics
-
- Note that all physical interfaces in the topology happen to use 1 Gbps.
- Adjust the OSPF reference bandwidth to 100 Gbps.
- Influence routes that use WAN links to prefer routes to/from Core1, rather than Core2, by:
- Double the cost on both ends of the three WAN links that connect to Core2.
- Clarification: That is, after changing the reference bandwidth, determine the cost the router could calculate, and configure to override that metric with twice what the router would use.
Task 3: Use a Default Route to Send Traffic into the Internet
-
- Note: the ISP1 router is pre-configured with all required commands.
- On router Core1, configure a static route to forward all traffic that is not matched by any other route to the neighboring router ISP1.
- Configure OSPF as needed so that all routers learn a default route with OSPF.
Task 4: Tune LAN OSPF Hello and Dead Intervals
-
- Change the OSPF intervals on the various LAN interfaces as follows:
- Hello: 5 seconds
- Dead: 15 seconds
- For the purposes of this lab, “LAN interfaces” are those shown in the figure, connected to the yellow and blue rectangles, with the subnet IDs listed. They include: The VLAN interfaces in Dist1 and Dist2, the Go/o interfaces in B11, B12, and B21, and the VLAN interface in B12.
- Change the OSPF intervals on the various LAN interfaces as follows:
Task 5: Choose and Enable Good OSPF Passive Interfaces
-
- Some router interfaces can be made passive, without breaking neighbor relationships. Some cannot. Choose which router interfaces can be made passive without breaking any neighbor relationships.
- Configure those interfaces as passive to OSPF.
Task 6: Migrate from Broadcast to Point-to-Point network type
-
- On the six WAN links, on both ends, configure the routers to use point-to-point network type instead of broadcast.
- On the three routed links between Core1, Dist1, Dist2, and Core2, think about whether you would also want to use point-to-point on those links.
- If you decide you like the idea, also migrate to use point-to-point on the routed links at the core site.
The following table lists the router IDs (RIDs) to configure in lab:
| Device | RID |
|---|---|
| Core1 | 1.1.1.1 |
| Core2 | 2.2.2.2 |
| Dist1 | 3.3.3.3 |
| Dist2 | 4.4.4.4 |
| B11 | 11.11.11.11 |
| B12 | 12.12.12.12 |
| B21 | 21.21.21.21 |
Table 2: OSPF RIDs in Lab
Part 3: Verifying What You Configured
The best way to learn about OSPF is to explore each feature after each task. I can suggest a few approaches to do just that:
- Use your own skills and knowledge, and exercise those skills, to verify that the features in each task work.
- Use the following list of suggested commands and actions to verify the features.
- Use my YouTube lab review video. The video breaks down the discussion into the six major tasks, first showing the suggested configuration and then demonstrating how to verify that the feature works.
Below is a list of suggested verification actions to verify the OSPF features for each task.
Note: You will learn a lot doing these verification steps! But when you want a little help, watch the lab review video at the bottom of this post. Use the video chapters feature to find the demo for the specific task you’re interested in!
Verify 1: Check Neighbors, Interfaces, OSPF Routes
-
- When this lab refers to “routers”, that includes layer 3 switches – any device that performs routing.
- Think about the lab topology, focusing on the seven routers. Predict which routers should be OSPF neighbors with which other routers. Draw it, listing the RIDs beside each router.
- Use show ip ospf neighbor on each router to confirm all the neighbor relationships exist.
- Use show ip ospf interface brief on each router to confirm you enabled OSPF on all the expected interfaces. You may find the show ip interface brief command useful in comparison.
- Confirm all routers have routes to the LAN subnets, that is, the five subnets whose subnet IDs appear on this blog page.
- Use show ip route ospf to see only OSPF-learned routes.
- Spend some time considering the details of those routes, particularly the metrics and outgoing interfaces. Those will change in Task 2.
- For transit subnets – subnets with no endpoints, but only routers – you can examine the routes. All routers should have routes for those as well, but you can ignore them for this lab.
Verify 2: Verify Configured Settings and Route Metrics
-
- First, verify what you configured, starting with the reference bandwidth.
- You can only see it with the show running-config command, looking in OSPF config mode.
- It should be configured to a setting of 100000, on ALL the routers.
- For the task to override the default cost on some links:
- On links running at 1 Gbps, the calculated OSPF metric will be 100.
- So, you should have configured ip ospf cost 200 on both ends of the three WAN links that connect to Core2.
- On the routers on both ends of the link, use show ip ospf interface and show ip ospf interface brief to confirm the default cost of 100 and the configured cost of 200 as appropriate.
- Examine the routes to each LAN subnet (five of them) from Core1.
- Predict the cost of the route, calculated as the sum of the costs of the outgoing interfaces in the route.
- See that Core1 has cost 200 routes to two branch subnets (10.1.10.0/23 and 10.1.14.0/23).
- However, because of a quirk in Cisco Packet Tracer (CPT), you will see a much higher cost of 1100 to subnet 10.1.12.0/23 (the other branch subnet.)
- You will also see a cost 1100 route to the core site LAN subnets, due to the same CPT quirk (next topic).
- On Dist1, Dist2, and B12, investigate the odd CPT behavior that made those few routes have a much higher metric.
- CPT assigns a default bandwidth of 100,000 (Kbps) to the VLAN interfaces on these routers.
- The OSPF calculated metric, with a reference bandwidth of 100,000 (Mbps), is 1000.
- For instance, if using real Cisco switches for Dist1 and Dist2, the VLAN interfaces would have a default bandwidth of 1,000,000 Kbps, with the cost calculated as 100.
- The higher cost routes are not causing a problem. You could choose to change the costs using configuration if you like. I’m just letting you know about why it is happening.
- First, verify what you configured, starting with the reference bandwidth.
Verify 3: Examine the OSPF-Learned Default Routes
-
- Start on Core1 and verify the static default route.
- Ping the www-isp server’s address (198.51.100.2) to confirm the route works. Also, try a traceroute to the same address.
- Display the IP routing table (show ip route) to see the presence of the “Gateway of Last Resort” and the default route (0.0.0.0/0) in the routing table.
- Select a few routers – at least one at the core site and one branch router – and examine the OSPF-learned default route on those routers.
- Display the IP routing table (show ip route) to see the presence of the “Gateway of Last Resort” and the default route (0.0.0.0/0) in the routing table.
- Note the origin (far-left code) on the route to 0.0.0.0/0.
- Start on Core1 and verify the static default route.
Verify 4: Check OSPF Timers
-
- The “LAN” interfaces in the topology, as described on this page, are interfaces connected to the five subnets whose subnet IDs are shown in the figure. Those include:
- Interface VLAN101 and VLAN102 on both Dist1 and Dist2
- B11, B12, and B21’s G0/0 interfaces
- B12’s VLAN202 interface
- Examine the OSPF interval settings on those interfaces:
- For physical interfaces, you can use show ip ospf interface g0/0 and show ip ospf interface brief.
- Due to a CPT quirk, for VLAN interfaces, you will need to use show ip ospf interface, and scroll a bit, or show ip ospf interface brief.
- You should look for a Hello of 5 and Dead interval of 15.
- The “LAN” interfaces in the topology, as described on this page, are interfaces connected to the five subnets whose subnet IDs are shown in the figure. Those include:
Verify 5: Identify and Confirm OSPF Passive Interfaces
-
- Think again about where you could have used OSPF passive interfaces in this lab topology:
- Not on the WAN links. Those are transit links (links with two or more routers) that need to send Hellos to establish and maintain neighbor relationships.
- Not on the three routed links between Core1-Dist1, Dist1-Dist2, and Dist2-Core2 – for the same reasons.
- Additionally, three LAN subnets have two routers connected to them. Those include the two core subnets (10.0.101.0 and 10.0.102.), and the Branch 1 subnet 10.1.10.0/23. If you make those routers passive, they will not become OSPF neighbors on those LAN links.
- Only B12, on its VLAN interface, and B21, on its LAN (G0/0) interface, can be made passive without breaking an OSPF neighbor.
- Check your configuration of passive interfaces on B12 and B21:
- Use show ip protocols, and look for the list of passive interfaces, for VLAN202 (B12) and G0/0 (B21).
- Use show running-config, and look for the OSPF configuration near the bottom of the output.
- Think again about where you could have used OSPF passive interfaces in this lab topology:
Verify 6: Confirm Neighbors on Links with OSPF Point-to-Point Network Type
-
- For this task, you made many changes across different interfaces, which could cause neighbor issues. Verify that you changed the network type on all interfaces on all routers on the link so the neighbors will still work.
- Start on Core1 with this approach:
- Use show ip ospf neighbor to confirm neighbor relationships w/ B11, B12, B21, and Dist1.
- Confirm that the neighbors are not using a DR based on the absence of notations about a DR or BDR.
- Use the show ip ospf interface brief command with the STATE column to confirm which interfaces now use network type point-to-point.
- Confirm the use of point-to-point using the show ip ospf interface g0/0/0 command or similar.
- Follow that same pattern of commands on Core2, B11, B12, and B21, and on Dist1 and Dist2 as needed.
Answer Options - Click Tabs to Reveal
You can learn a lot and strengthen real learning of the topics by creating the configuration – even without a router or switch CLI. In fact, these labs were originally built to be used solely as a paper exercise!
To answer, just think about the lab. Refer to your primary learning material for CCNA, your notes, and create the configuration on paper or in a text editor. Then check your answer versus the answer post, which is linked at the bottom of the lab, just above the comments section.
You can also implement the lab using the Cisco Packet Tracer network simulator. With this option, you use Cisco’s free Packet Tracer simulator. You open a file that begins with the initial configuration already loaded. Then you implement your configuration and test to determine if it met the requirements of the lab.
(Use this link for more information about Cisco Packet Tracer.)
Use this workflow to do the labs in Cisco Packet Tracer:
- Download the .pkt file linked below.
- Open the .pkt file, creating a working lab with the same topology and interfaces as the lab exercise.
- Add your planned configuration to the lab.
- Test the configuration using some of the suggestions below.
Lab Answers Below: Spoiler Alert
Lab Answers: Configuration (Click Tab to Reveal)
Answers

Figure 3: Lab Topology
Given the length of this lab exercise, I’ve broken the lab answers by device, and within each device, by task. In cases where multiple tasks require the same config mode, I’ve included the CLI navigation commands. You could take the supplied .pkt file, and copy/paste the entire config text for each device into the config mode on the respective devices, to create the final working configuration.
### Task 1: Core OSPF Config
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.255.255.255 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
### Task 3: OSPF Default Route
! Only router w/ a static default route!
ip route 0.0.0.0 0.0.0.0 198.51.100.9
!
router ospf 1
default-information originate
### Task 4: Tune OSPF LAN Timers
! I decided to NOT change the Hello and Dead intervals on the routed links
! at the core site.
### Task 5: Passive Interfaces
! none on this router.
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
interface g0/0
! connected to Dist1
ip ospf network point-to-point
!
interface g0/0/0
! connected to B11
ip ospf network point-to-point
!
interface g0/1/0
! connected to B12
ip ospf network point-to-point
!
interface g0/2/0
! connected to B21
ip ospf network point-to-point
Example 1: Core1 (Router) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 2.2.2.2
network 10.0.0.0 0.255.255.255 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
! No cost changes on this router
!
interface g0/0/0
! to B12
ip ospf cost 200
interface g0/1/0
! to B11
ip ospf cost 200
interface g0/2/0
! to B21
ip ospf cost 200
### Task 3: OSPF Default Route
! only router w/ config for this is Core1
### Task 4: Tune OSPF LAN Timers
! I decided to NOT change the Hello and Dead intervals on the routed links
! at the core site.
### Task 5: Passive Interfaces
! none on this router.
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
interface g0/0
! connected to Dist2
ip ospf network point-to-point
!
interface g0/0/0
! connected to B11
ip ospf network point-to-point
!
interface g0/1/0
! connected to B12
ip ospf network point-to-point
!
interface g0/2/0
! connected to B21
ip ospf network point-to-point
Example 2: Core2 (Router) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 3.3.3.3
network 10.0.0.0 0.255.255.255 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
! No cost changes on this router
### Task 3: OSPF Default Route
! No configuration required on this router.
### Task 4: Tune OSPF LAN Timers
interface vlan 101
ip ospf hello-interval 5
ip ospf dead-interval 15
!
interface vlan 102
ip ospf hello-interval 5
ip ospf dead-interval 15
### Task 5: Passive Interfaces
! none on this L3 switch.
! If VLAN interfaces are made passive, Dist1 and Dist2 would not become neighbors over the
! VLANs.
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
interface g1/1/1
! connected to Core1
ip ospf network point-to-point
!
interface g1/1/3
! connected to Dist2 G1/1/3
ip ospf network point-to-point
Example 3: Dist1 (Multilayer Switch) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 4.4.4.4
network 10.0.0.0 0.255.255.255 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
! No cost changes on this router
### Task 3: OSPF Default Route
! No configuration required on this router.
### Task 4: Tune OSPF LAN Timers
interface vlan 101
ip ospf hello-interval 5
ip ospf dead-interval 15
!
interface vlan 102
ip ospf hello-interval 5
ip ospf dead-interval 15
### Task 5: Passive Interfaces
! none on this L3 switch.
! If VLAN interfaces are made passive, Dist1 and Dist2 would not become neighbors over the
! VLANs.
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
interface g1/1/1
! connected to Core2
ip ospf network point-to-point
!
interface g1/1/3
! connected to Dist2 G1/1/3
ip ospf network point-to-point
Example 4: Dist2 (Multilayer Switch) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 11.11.11.11
!
interface g0/0/0
! to Core1
ip ospf 1 area 0
!
interface g0/1/0
! to Core2
ip ospf 1 area 0
!
interface g0/0
! to B12
ip ospf 1 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
!
!
interface g0/1/0
! to Core1
ip ospf cost 200
### Task 3: OSPF Default Route
! Only Core1 needs config for this feature
### Task 4: Tune OSPF LAN Timers
! Add this for G0/0 LAN Interface
interface g0/0
ip ospf hello-interval 5
ip ospf dead-interval 15
### Task 5: Passive Interfaces
! Can't be passive on g0/0, or B11 won't be a neighbor w/ B12.
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
!
interface g0/0/0
! connected to Core1
ip ospf network point-to-point
!
interface g0/1/0
! connected to Core2
ip ospf network point-to-point
Example 5: B11 (Router) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 12.12.12.12
!
interface g0/0/0
! to Core1
ip ospf 1 area 0
!
interface g0/1/0
! to Core2
ip ospf 1 area 0
!
interface g0/0
! to B11
ip ospf 1 area 0
!
interface vlan 202
! For integrated LAN interfaces
ip ospf 1 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
!
interface g0/1/0
! to Core1
ip ospf cost 200
### Task 3: OSPF Default Route
! Only Core1 needs config for this feature
### Task 4: Tune OSPF LAN Timers
! Add this for G0/0 LAN Interface
interface g0/0
ip ospf hello-interval 5
ip ospf dead-interval 15
!
interface vlan202
ip ospf hello-interval 5
ip ospf dead-interval 15
### Task 5: Passive Interfaces
router ospf 1
passive-interface vlan202
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
!
interface g0/0/0
! connected to Core1
ip ospf network point-to-point
!
interface g0/1/0
! connected to Core2
ip ospf network point-to-point
Example 6: B12 (Router) Config
### Task 1: Core OSPF Config
router ospf 1
router-id 21.21.21.21
!
interface g0/0/0
! to Core1
ip ospf 1 area 0
!
interface g0/1/0
! to Core2
ip ospf 1 area 0
!
interface g0/0
! stub network
ip ospf 1 area 0
### Task 2: Metrics
router ospf 1
auto-cost reference-bandwidth 100000
!
!
interface g0/1/0
! to Core1
ip ospf cost 200
### Task 3: OSPF Default Route
! Only Core1 needs config for this feature
### Task 4: Tune OSPF LAN Timers
! Add this for G0/0 LAN Interface
interface g0/0
ip ospf hello-interval 5
ip ospf dead-interval 15
### Task 5: Passive Interfaces
router ospf 1
passive-interface g0/0
### Task 6: Point-to-point
! Configuring routed interfaces to use point-to-point!
!
interface g0/0/0
! connected to Core1
ip ospf network point-to-point
!
interface g0/1/0
! connected to Core2
ip ospf network point-to-point
Example 7: B21 (Router) Config
Commentary, Issues, and Verification Tips (Click Tabs to Reveal)
Commentary
This is a BIG lab – it even has BIG in the title. So how do you sift through the configuration? You have two options, and you can use either or both.
First, in this commentary, I’ll hit the highlights, using the six configuration tasks to guide the discussion. Don’t neglect the verification task – you’ll learn a lot there, too – but in this commentary, I’ll focus on the config.
Second, use the YouTube review video shown at the bottom of this lab blog post. That video weaves from config task to verification demo, back and forth, for each of the six config tasks. Use the YouTube video table of contents at the bottom of the video to navigate to the task you’re interested in right now.
On to the comments! Note that because Step 1 in this lab focuses on learning details about the Core router’s LAN, I did not see the need to comment on it.
Task 1: Configure OSPF and Router IDs
The lab instructions specify using a single-area design, with all interfaces in area 0. However, it leaves the choice of OSPF process-id up to you. In the answers, I used process-id 1 on all routers, with the router ospf 1 global command.
For the router Id (RID), you again had the option to choose how to configure each router so it uses the requested RID. For the answers, I used the straightforward method, using the router-id x.x.x.x OSPF subcommand.
As for enabling OSPF on the interfaces, the lab does give some specific instructions, just so you’ll practice using the OSPF network command and the ip ospf interface subcommand. You should use network commands only on the four routers at the core site (Core1, Core2, Dist1, and Dist2). As long as you did that, and enabled OSPF on all the correct interfaces, so it advertised all the subnets and became neighbors as appropriate, you got this part right. However, the lab instructions offered a “challenge”:
Use one network command only on each router. Use a wildcard with only 0’s and 255’s. Use as few 255’s in the wildcard as you can.
Basically, those instructions force you to use a single solution on each router: the network 10.0.0.0 0.255.255.255 area 0 command.
On branch routers, use interface subcommands. Just add ip ospf 1 area 0 as a subcommand on all interfaces that need to be enabled for OSPF.
Task 2: Tune OSPF Metrics
Most enterprises that use OSPF scale the OSPF metric because of modern network interface speeds. To do that, all the routers use a larger number for the OSPF reference bandwidth. The value should be set to a number that is greater than or equal to the fastest link in the network. With a unit of Mbps, the default setting of 100 (meaning 100 Mbps) is too small.
The lab tells you to set the value equal to the speed of a 100 Gbps link. 100 Gbps = 100,000 Mbps, so you should configure auto-cost reference-bandwidth 100000 (no comma) in OSPF config mode. On ALL the routers.
All physical links in the network should be running at 1 Gbps, with an interface bandwidth setting of 1,000,000 Kbps. 1,000,000 Kbps = 1,000 Mbps. With the reference-bandwidth at 100,000 Mbps, the ratio of reference-bandwidth to interface-bandwidth is 100,000/1,000 = 100. By default, all physical interfaces in the lab network should have an OSPF cost of 100. Why does that matter? The lab asks you to change the three WAN links connected to Core2 to use a cost twice that, on both ends of the link. So, under each of those interfaces, configure ip ospf cost 200.
Task 3: Configure Default Routing
This task requires only a little configuration. First, you need to configure a static default route, which begins ip route 0.0.0.0 0.0.0.0. It ends with the next-hop IP address, in this case, router ISP1’s IP address on the common link between Core1 and ISP1. That happens to be 198.51.100.9, leaving a final command of: ip route 0.0.0.0 0.0.0.0 198.51.100.9.
The rest of the routers learn a default route because OSPF advertises it. If you add this command on Core1 in OSPF config mode, default-information originate, it will be advertised.
Note that the other OSPF routers will calculate the best route to reach Core1 and use that next-hop and outgoing interface for their OSPF-learned default route.
Task 4: Configure LAN Hello and Dead Intervals
First, this lab asks you to change these timers on LAN interfaces only, and then the lab clarifies that as interfaces connected to the five highlighted subnets in the figure. Those interfaces include:
- Interfaces VLAN101 and VLAN102 on both Dist1 and Dist2
- G0/0 on B11, B12, and B21
- Interface VLAN202 on B12
Note that some of those LAN interfaces have two routers connected to the same subnet. If you happen to change the Hello and Dead intervals on one interface, but not the other, the two routers in that subnet will no longer become neighbors in that subnet.
The configuration is relatively straightforward once you know where to configure. Just add these two commands in interface config mode on each interface:
- ip ospf hello-interval 5
- ip ospf dead-interval 15
Task 5: Choose and Use OSPF Passive
This task again asks you to consider those LAN interfaces. On which LAN interfaces can you make the interfaces passive in OSPF without breaking an existing OSPF neighbor relationship? Well, in these cases, two routers connect to the same subnet over LAN interfaces. Existing neighbor relationships exist, so you can’t change those interfaces to be passive.
- Dist1 VLAN101 and Dist2 VLAN101
- Dist1 VLAN102 and Dist2 VLAN102
- B11 G0/0 and B12 G0/0
That leaves only B12’s interface VLAN 202 and B21’s G0/0 interface. In both cases, those are the only interfaces connected to the LAN. To make them passive, just add the passive-interface interface-id command in router config mode.
Task 6: Use Network Type Point-to-Point
First, consider using OSPF network type point-to-point on the WAN links. All the WAN links appear to use a point-to-point topology, meaning only two routers are on the link. That is the classic case of when it is best to use OSPF network type point-to-point.
To configure that setting, just add the ip ospf network point-to-point command under each interface. For those six WAN links, you need to do that on both ends, for a total of 12 interfaces.
The lab also suggested the option to use point-to-point on the three routed LAN links between Core1-Dist1, Dist1-Dist2, and Dist2-Core2. I think that would be reasonable. Again, you need to do so on both ends of each of the three links, with the same command.
Known Issues in this Lab
This section of each Config Lab Answers post hopes to help with those issues by listing any known issues with Packet Tracer related to this lab. In this case, the issues are:
| # | Summary | Detail |
| 1 | The show ip route command omits the prefix length mask on OSPF-learned routes. | On a real Cisco router, the show ip route command lists the subnet ID, a /, and the prefix length mask value for each route. |
| 2 | The show ip ospf interface brief command lists the mask in DDN format. | In a real Cisco router, this command lists the mask in prefix format. |
| 3 | The show ip ospf interface brief command, if VLAN interfaces are present, omits the VLAN interface number. | In a real Cisco router, this command lists the full interface ID, e.g., “VLAN202” instead of “VLAN”. |
| 4 | The show ip ospf interface brief command, under the “State” column, uses the word “POINT” instead of “P2P” | In a real Cisco router, this command lists the state of “P2P” when the interface is configured with the ip ospf network point-to-point command. |
| 5 | IOS assigns incorrect default bandwidth settings on VLAN interfaces, which impacts default OSPF costs. | It is difficult to discern the rules both CPT and real Cisco switches use, but generally, in Cisco switches, the VLAN interface bandwidth is set based on the slowest active link in the VLAN. CPT appears to use a fixed value of 100,000 Kbps (equivalent to 100 Mbps). |
| 6 | In this lab, the ip ospf 1 area 0 subcommand, under interface vlan202 on router B12, disappears when saving and re-opening the .pkt file. | Pretty weird, huh? You need to go configure it again each time you re-open the file. |
| 7 | Making many configuration changes may confuse Packet Tracer. | If you see unexpected results during this lab, after configuring many config commands, the problem may be Packet Tracer, not your config. If so, exit Packet Tracer completely, saving your file. Then restart Packet Tracer, open the file, and test again. |
| 8 | CPT routers do not allow the vlan id global command. | On a real Cisco router, the vlan id global command creates a VLAN, which is required on routers with embedded LAN switch ports. In CPT, instead, you must configure the embedded switch port’s access VLAN, which causes the CPT router to create the VLAN internally. |
| 9 | The show ip ospf interface interface-id command does not work for VLAN interface types. | Instead, use the show ip ospf interface command and scroll. |
Why Would Cisco Packet Tracer Have Issues?
(Note: The below text is the same in every Config Lab.)
Cisco Packet Tracer (CPT) simulates Cisco routers and switches. However, CPT does not run the same software as real Cisco routers and switches. Instead, developers wrote CPT to predict the output a real router or switch would display given the same topology and configuration – but without performing all the same tasks, an actual device has to do. On a positive note, CPT requires far less CPU and RAM than a lab full of devices so that you can run CPT on your computer as an app. In addition, simulators like CPT help you learn about the Cisco router/switch user interface – the Command Line Interface (CLI) – without owning real devices.
CPT can have issues compared to real devices because CPT does not run the same software as Cisco devices. CPT does not support all commands or parameters of a command. CPT may supply output from a command that differs in some ways from what an actual device would give. Those differences can be a problem for anyone learning networking technology because you may not have experience with that technology on real gear – so you may not notice the differences. So this section lists differences and issues that we have seen when using CPT to do this lab.
Unlike the more typical and shorter Config Labs, this lab has an extensive set of verification tasks listed in the core of the lab. In this tab, I don’t have a lot more to offer you, but I do have a few suggestions.
This lab asks you to configure OSPF and then optimize it. Most of the configuration has to do with optimization. So, a ping test is useful, but doesn’t really tell you if you optimized OSPF correctly.
If you’re willing to draw the network for yourself, and record the IP addresses and interface IDs for reference, you can check your optimizations. Map out the network, and then use the traceroute (tracert) command on the PCs and servers spread around the lab. They are pre-configured with static IP addresses with the correct default gateway and DNS settings. You should be able to confirm not only that OSPF works, but that the expected routes are used.
The following table lists the preconfigured IP addresses for the hosts in the lab.
| Device | DNS Name | Address |
|---|---|---|
| A1 | 10.0.101.41 | |
| A2 | 10.0.101.42 | |
| B1 | 10.0.102.41 | |
| B2 | 10.0.102.42 | |
| www-A | www-A.example.com | 10.0.101.11 |
| www-B | www-B.example.com | 10.0.102.11 |
| www-ISP | www-ISP | 198.51.100.2 |
| DHCP Server | 10.0.101.20 | |
| DNS Server | 10.0.101.19 |
Table: Host IP Addresses in Lab
Config Lab Review Video
Want to hear more about this lab’s solution? Check out the video to the left.
