8.1.2 Lab - Troubleshoot OSPFv2 - ILM
8.1.2 Lab - Troubleshoot OSPFv2 - ILM
8.1.2 Lab - Troubleshoot OSPFv2 - ILM
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.
Topology
Addressing Table
Device Interface IPv4 Address Subnet Mask
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
Objectives
Troubleshoot network issues related to the configuration and operation of OSPFv2.
Background / Scenario
Your University network is using multiarea OSPFv2. The 10.3.1.0/24 network has a single end device which
connects to an observatory. Reading the network design documentation, you notice two key items regarding
this connection:
The connection from R3 to the observatory is a microwave link. Because this link can be unstable, it
is required to be in its own OSPFv2 area.
The data from the observatory is sent to an astronomy research team on the 10.1.3.0/24 network
(PC1).
Although the topology has a limited number of routers, you should use the appropriate troubleshooting
commands to help find and solve the problems in the three trouble tickets as if this were a much more
complex topology with many more routers and networks.
You will be loading configurations with intentional errors onto the network. Your tasks are to FIND the error(s),
document your findings and the command(s) or method(s) used to fix them, FIX the issue(s) presented here
and then test the network to ensure both of the following conditions are met:
1) the complaint received in the ticket is resolved
2) full reachability is restored
Note: The routers used with CCNP hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4
(universalk9 image). The switches used in the labs are Cisco Catalyst 3650 with Cisco IOS XE Release
16.9.4 (universalk9 image) and Cisco Catalyst 2960s with Cisco IOS Release 15.2(2) (lanbasek9 image).
Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco IOS
version, the commands available and the output produced might vary from what is shown in the labs. Refer to
the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
Note: Make sure that the switches have been erased and have no startup configurations. If you are unsure,
contact your instructor.
Instructor Note: Refer to the Instructor Lab Manual for the procedures to initialize and reload devices.
Required Resources
3 Routers (Cisco 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable)
2 Switches (Cisco 3560 with Cisco IOS XE Release 16.9.4 universal image or comparable)
1 PC (choice of operating system with terminal emulation program installed)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Instructions
Device Command
o All routers should have the 10.2.1.0/24 network in their routing tables.
o All area 2 internal OSPF routers should only receive a default route via OSPF, they should not have
any interarea routes.
o PC1 should be able to ping 10.2.1.1/24.
o R3, D1, and D2 should see the 10.2.1.0/24 network in their routing table.
o R2 should only have a single OSPF route in its routing table, and that should be a default route
learned via OSPF.
o When you have fixed the ticket, change the MOTD on EACH DEVICE using the following command:
banner motd # This is $(hostname) FIXED from ticket <ticket number> #
o Then save the configuration by issuing the wri command (on each device).
o Inform your instructor that you are ready for the next ticket.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
o After the instructor approves your solution for this ticket, issue the reset.now privileged EXEC
command This script will clear your configurations and reload the devices.
Instructor Notes:
This trouble ticket contains 2 intentional errors:
1) R1: OSPF area 2 is configured as a stub area instead of a totally stubby area.
2) R2: OSPF area 2 is configured as a normal area.
The commands used to fix these errors should be:
R1(config)# router ospf 1
R1(config-router)# no area 2 stub
R1(config-router)# area 2 stub no-summary
Device Command
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
This creates overlapping subnets causing port-channel 1 to be shutdown. Port-channel 2 was also configured
the wrong subnet mask.
The commands used to fix these errors should be:
D2(config)# interface port-channel 1
D2(config-if)# ip address 10.0.2.2 255.255.255.0
D2(config-if)# no shutdown
D2(config-if)# exit
D2(config)# interface port-channel 2
D2(config-if)# ip address 10.1.1.2 255.255.255.0
D2(config-if)# no shutdown
Note: The no shutdown command will be required on at least one interface.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
R2
Lo1 10.2.1.1 255.255.255.0
R3 G0/0/0 10.3.0.1 255.255.255.0
R3
G0/0/1 10.0.3.1 255.255.255.0
R3
Lo1 10.3.1.1 255.255.255.0
Scenario:
The 10.3.1.0/24 network has a single end device which connects to an observatory. Reading the network
design documentation, you notice three key items:
o The connection from R3 to the observatory is a microwave link. Because this link can be unstable, it
is required to be in its own OSPFv2 area. The data from the observatory is sent to an astronomy
research team on the 10.1.3.0/24 network (PC5).
o For redundancy purposes the design team had installed a new link between R2 and R3. This link
results in an additional path from R1 to PC5. The primary path is through D2 to R3. The new backup
path is through R2 to R3. This is verified using traceroute.
o Although redundancy is helpful, the most important requirement is that 101.3.0/24 is in its own OSPF
area.
A troubleshooting ticket has just been received by the help desk. During construction of a new building on
campus, the link between R3 and D2 was cut. It may take four or five days before this link can be restored.
The astronomy team has informed your manager that they are not receiving the data from the observatory
and they cannot wait more than a day for the data from the observatory. Your manager is confused about why
the data is not being forwarded using the redundant connection via R2.
Your task is to diagnose this problem and resolve it. Connectivity between the 10.3.1.0/24 and 10.1.3.0/24
networks is critical. In addition, the 10.3.1.0/24 network must be in its own area so the unstable link does not
affect other areas.
Note: OSPF area 2 and area 3 are both normal OSPF areas.
Use the commands listed below to load the configuration files for this trouble ticket:
Instructor Note: Commands for creating these files are at the end of this document.
Device Command
Note: To simulate the link being cut, shut down the G0/0/1 interface on R3:
R3(config)# inter g 0/0/1
R3(config-if)# shutdown
o PC1 should be able to ping the 10.3.1.1.
o Network 10.3.1.0/24 must be in its own area.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
o When you have fixed the ticket, change the MOTD on EACH DEVICE using the following command:
banner motd # This is $(hostname) FIXED from ticket <ticket number> #
o Then save the configuration by issuing the wri command (on each device).
o Inform your instructor that you are ready for the next ticket.
o After the instructor approves your solution for this ticket, issue the reset.now privileged EXEC
command. This script will clear your configurations and reload the devices.
Instructor Notes:
This trouble ticket contains a design error. ABR R2 belongs to two areas, area 2 and area 3. The OSPF
specification states that an ABR is restricted to considering LSA 3s only from the backbone area (area 0) to
avoid routing loops. After the link between R3 and D2 went down, the networks in area 3 were no longer
reachable via OSPF from other areas. R2 will not be propagating LSA 3s from area 3 (a non-backbone area)
into area 2.
A virtual link will need to be created between R1 and R2 to restore connectivity.
The commands used to fix these errors should be:
R1(config)# router ospf 1
R1(config-router)# area 2 virtual-link 2.2.2.2
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An example
of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be used in
Cisco IOS commands to represent the interface.
End of document
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
typeahead "\n"
erase startup-config
delete /force vlan.dat
delete /force multiple-fs
ios_config "sdm prefer lanbase-routing"
typeahead "\n"
puts "Reloading the switch in 1 minute, type reload cancel to halt"
typeahead "\n"
reload
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
no shut
inter g 0/0/1
ip add 10.0.1.1 255.255.255.0
no shut
int lo0
ip add 64.100.10.1 255.255.255.0
router ospf 1
router-id 1.1.1.1
network 10.0.1.0 0.0.0.255 area 0
network 10.2.0.0 0.0.0.255 area 2
default-information originate always
exit
ip route 0.0.0.0 0.0.0.0 lo0
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
yes
}
tclquit
!R2 - Trouble Ticket # 2
tclsh
puts [ open "flash:/enarsi/8.1.2.2-r2-config.txt" w+ ] {
hostname R2
banner motd # This is R2, Trouble Ticket 8.1.2.2 #
no ip domain lookup
line con 0
logg sync
exec-time 0 0
exit
inter g 0/0/0
ip add 10.2.0.2 255.255.255.0
no shut
inter lo 0
ip add 10.2.1.1 255.255.255.0
ip ospf network point-to-point
no shut
router ospf 1
router-id 2.2.2.2
network 10.2.1.0 0.0.0.255 area 2
network 10.2.0.0 0.0.0.255 area 2
area 2 stub
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
!R2 - Trouble Ticket # 3
tclsh
puts [ open "flash:/enarsi/8.1.2.3-r2-config.txt" w+ ] {
hostname R2
banner motd # This is R2, Trouble Ticket 8.1.2.3 #
no ip domain lookup
line con 0
logg sync
exec-time 0 0
exit
inter g 0/0/0
ip add 10.2.0.2 255.255.255.0
no shut
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
inter g 0/0/1
ip add 10.3.0.2 255.255.255.0
no shut
inter lo 0
ip add 10.2.1.1 255.255.255.0
ip ospf network point-to-point
no shut
router ospf 1
router-id 2.2.2.2
network 10.2.1.0 0.0.0.255 area 2
network 10.2.0.0 0.0.0.255 area 2
network 10.3.0.0 0.0.0.255 area 3
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
}
tclquit
!R3 - Trouble Ticket # 2
tclsh
puts [ open "flash:/enarsi/8.1.2.2-r3-config.txt" w+ ] {
hostname R3
banner motd # This is R3, Trouble Ticket 8.1.2.2 #
no ip domain lookup
line con 0
logg sync
exec-time 0 0
exit
inter g 0/0/1
ip add 10.0.3.1 255.255.255.0
no shut
inter lo 0
ip add 10.3.1.1 255.255.255.0
ip ospf network point-to-point
no shut
router ospf 1
router-id 3.3.3.3
network 10.0.3.0 0.0.0.255 area 0
network 10.3.1.0 0.0.0.255 area 3
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
!R3 - Trouble Ticket # 3
tclsh
puts [ open "flash:/enarsi/8.1.2.3-r3-config.txt" w+ ] {
hostname R3
banner motd # This is R3, Trouble Ticket 8.1.2.3 #
no ip domain lookup
line con 0
logg sync
exec-time 0 0
exit
inter g 0/0/0
ip add 10.3.0.1 255.255.255.0
no shut
inter g 0/0/1
ip add 10.0.3.1 255.255.255.0
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
no shut
inter lo 0
ip add 10.3.1.1 255.255.255.0
ip ospf network point-to-point
no shut
router ospf 1
router-id 3.3.3.3
network 10.0.3.0 0.0.0.255 area 0
network 10.3.0.0 0.0.0.255 area 3
network 10.3.1.0 0.0.0.255 area 3
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/2
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/3
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
exit
interface g 1/0/4
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
exit
inter port-channel 1
ip add 10.0.2.1 255.255.255.0
no shut
exit
inter port-channel 2
ip add 10.1.1.1 255.255.255.0
no shut
exit
inter range g1/0/5-10, g1/0/12-22
shut
router ospf 1
router-id 4.4.4.4
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
network 10.1.2.0 0.0.0.255 area 1
network 10.1.3.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
tclquit
!D1 - Trouble Ticket # 2
tclsh
puts [ open "flash:/enarsi/8.1.2.2-d1-config.txt" w+ ] {
hostname D1
banner motd # This is D1, Trouble Ticket 8.1.2.2 #
hostname D1
no ip domain lookup
ip routing
line con 0
logg sync
exec-time 0 0
exit
inter g 1/0/11
no switchport
ip add 10.0.1.2 255.255.255.0
no shut
exit
inter g 1/0/23
no switchport
ip add 10.1.2.1 255.255.255.0
no shut
exit
inter g 1/0/24
no switchport
ip add 10.1.3.1 255.255.255.0
no shut
exit
interface g 1/0/1
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/2
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/3
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
exit
interface g 1/0/4
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
exit
inter port-channel 1
ip add 10.0.2.1 255.255.255.0
no shut
exit
inter port-channel 2
ip add 10.1.1.1 255.255.255.0
no shut
exit
inter range g1/0/5-10, g1/0/12-22
shut
router ospf 1
router-id 4.4.4.4
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
network 10.1.2.0 0.0.0.255 area 1
network 10.1.3.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
!D1 - Trouble Ticket # 3
tclsh
puts [ open "flash:/enarsi/8.1.2.3-d1-config.txt" w+ ] {
hostname D1
banner motd # This is D1, Trouble Ticket 8.1.2.3 #
no ip domain lookup
ip routing
line con 0
logg sync
exec-time 0 0
exit
inter g 1/0/11
no switchport
ip add 10.0.1.2 255.255.255.0
no shut
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
exit
inter g 1/0/23
no switchport
ip add 10.1.2.1 255.255.255.0
no shut
exit
inter g 1/0/24
no switchport
ip add 10.1.3.1 255.255.255.0
no shut
exit
interface g 1/0/1
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/2
description Channel to D2
no switchport
channel-group 1 mode on
no shutdown
exit
interface g 1/0/3
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
exit
interface g 1/0/4
description Channel to D2
no switchport
channel-group 2 mode on
no shutdown
exit
inter port-channel 1
ip add 10.0.2.1 255.255.255.0
no shut
exit
inter port-channel 2
ip add 10.1.1.1 255.255.255.0
no shut
exit
inter range g1/0/5-10, g1/0/12-22
shut
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 19 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
router ospf 1
router-id 4.4.4.4
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
network 10.1.2.0 0.0.0.255 area 1
network 10.1.3.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 20 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
interface g 1/0/4
description Channel to D1
no switchport
channel-group 2 mode on
no shutdown
inter port-channel 1
ip add 10.0.2.2 255.255.255.0
no shut
inter port-channel 2
ip add 10.1.1.2 255.255.255.0
no shut
inter range g1/0/5-10, g1/0/12-24
shut
router ospf 1
router-id 5.5.5.5
network 10.0.2.0 0.0.0.255 area 0
network 10.0.3.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
!D2 - Trouble Ticket # 2
tclsh
puts [ open "flash:/enarsi/8.1.2.2-d2-config.txt" w+ ] {
hostname D2
banner motd # This is D2, Trouble Ticket 8.1.2.2 #
no ip domain lookup
ip routing
line con 0
logg sync
exec-time 0 0
exit
inter g 1/0/11
no switchport
ip add 10.0.3.2 255.255.255.0
no shut
interface g 1/0/1
description Channel to D1
no switchport
channel-group 1 mode on
no shutdown
interface g 1/0/2
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 21 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
description Channel to D1
no switchport
channel-group 1 mode on
no shutdown
interface g 1/0/3
description Channel to D1
no switchport
channel-group 2 mode on
no shutdown
interface g 1/0/4
description Channel to D1
no switchport
channel-group 2 mode on
no shutdown
inter port-channel 1
ip add 10.0.2.2 255.255.0.0
no shut
inter port-channel 2
ip add 10.1.1.2 255.255.0.0
no shut
inter range g1/0/5-10, g1/0/12-24
shut
router ospf 1
router-id 5.5.5.5
network 10.0.2.0 0.0.0.255 area 0
network 10.0.3.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
!D2 - Trouble Ticket # 3
tclsh
puts [ open "flash:/enarsi/8.1.2.3-d2-config.txt" w+ ] {
hostname D2
ip routing
banner motd # This is D2, Trouble Ticket 8.1.2.3 #
no ip domain lookup
ip routing
line con 0
logg sync
exec-time 0 0
exit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 22 of 23 www.netacad.com
Lab - Troubleshoot OSPFv2
inter g 1/0/11
no switchport
ip add 10.0.3.2 255.255.255.0
no shut
interface g 1/0/1
description Channel to D1
no switchport
channel-group 1 mode on
no shutdown
interface g 1/0/2
description Channel to D1
no switchport
channel-group 1 mode on
no shutdown
interface g 1/0/3
description Channel to D1
no switchport
channel-group 2 mode on
no shutdown
interface g 1/0/4
description Channel to D1
no switchport
channel-group 2 mode on
no shutdown
inter port-channel 1
ip add 10.0.2.2 255.255.255.0
no shut
inter port-channel 2
ip add 10.1.1.2 255.255.255.0
no shut
inter range g1/0/5-10, g1/0/12-24
shut
router ospf 1
router-id 5.5.5.5
network 10.0.2.0 0.0.0.255 area 0
network 10.0.3.0 0.0.0.255 area 0
network 10.1.1.0 0.0.0.255 area 1
alias exec reset.now tclsh flash:/enarsi/reset.tcl
end
clear ip ospf process
yes
}
tclquit
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 23 of 23 www.netacad.com