Lab5 2
Lab5 2
Lab5 2
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and Verify Single-Area OSPFv2 for Basic Operation
Part 3: Optimize and Verify the Single-Area OSPFv2 Configuration
Background / Scenario
You have been tasked with configuring a small company’s network using OSPFv2. R1 will share the default route
information to R2. After the initial configuration, the organization has asked for the configuration to be optimized to
reduce protocol traffic and ensure that R1 remains in control of routing.
Note: The equipment required for this activity is located in the wiring closet on the utility shelf.
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
Instructions
Part 1: Build the Network and Configure Basic Device Settings
Step 2: Configure basic settings for the two routers and two switches.
a. On the Cable Pegboard, click a Console cable.
b. Connect the console cable between the device and the Laptop. For the switches, Inspect Rear to locate the
Console port.
c. Assign a name to the device according to the Topology.
Router(config)# hostname R1
d. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though
they were host names.
R1(config)# no ip domain-lookup
e. Assign class as the privileged EXEC encrypted password.
R1(config)# enable secret class
f. Assign cisco as the console password and enable login.
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
g. Assign cisco as the vty password and enable login.
R1(config)# line vty 0 4
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
Which router is identified as the DR? Which is the BDR? What was the selection criteria?
Router2. router1. The one has the most neighbors, the router with a higher id can be the DR. _ _
i. On R1, issue the show ip route ospf command to verify that the R2 G0/0/0 network is present in the routing
table.
R1# show ip route ospf
<output omitted>
Gateway of last resort is not set
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.0 [110/2] via 10.53.0.2, 00:20:26, GigabitEthernet0/0/1
j. Click Laptop > Command Prompt, and then ping the Web Server at 172.16.1.10. After one or two timeouts,
the ping should be successful. If not, troubleshoot your physical connections and configurations.
Packet Tracer PC Command Line 1.0
C:\> ping 172.16.1.10
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
C:\>
c. On R1, remove the OSPF network command for 172.16.1.0, and then configure a default static route that uses
interface G0/0/0 as the exit interface. Finally, propagate the default route into OSPF. Note the console message
after setting the default route.
R1(config)# router ospf 56
R1(config-router)# no network 172.16.1.0 0.0.0.255 area 0
R1(config-router)# exit
R1(config)# ip route 0.0.0.0 0.0.0.0 g0/0/0
%Default route without gateway, if not a point-to-point interface, may impact
performance
R1(config)# router ospf 56
R1(config-router)# default-information originate
d. Change the reference bandwidth on each router to 1Gbs. After this configuration, restart OSPF using the
clear ip ospf process command. Note the console message after setting the new reference bandwidth.
R1(config)# router ospf 56
R1(config-router)# auto-cost reference-bandwidth 1000
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
c. On R2, issue the show ip route ospf command. The only OSPF route information should be the default route
that R1 is propagating.
R2# show ip route ospf
O*E2 0.0.0.0/0 [110/1] via 10.53.0.1, 00:01:58, GigabitEthernet0/0/1
d. From the Laptop, ping the Web Server again. The ping should be successful.
C:\> ping 172.16.1.10
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 www.netacad.com
Configure Single-Area OSPFv2 - Physical Mode
C:\>
e. Compare the following two routes:
From R1:
O 192.168.1.0/24 [110/11] via 10.53.0.2, 00:04:28, GigabitEthernet0/0/1
From R2:
O*E2 0.0.0.0/0 [110/1] via 10.53.0.1, 00:00:08, GigabitEthernet0/0/1
Why is the OSPF cost for the default route different than the OSPF cost at R1 for the 192.168.1.0/24 network?
The difference in OSPF cost is due to the difference in bandwidth of the outgoing interfaces on R1 and R2. R2's
interface GigabitEthernet0/0/1 may have a higher bandwidth (lower cost) compared to R1's interface
GigabitEthernet0/0/1, resulting in a lower OSPF cost for the default route via R2. _ _ _
2019 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com