Professional Documents
Culture Documents
Exercice N°2 ENARSI
Exercice N°2 ENARSI
Network Topology
Addressing Table
Device Interface IP Address Subnet Mask
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure a Multi-area OSPFv2 Network
Part 3: Exploring LSAs and Configure Stub and Totally Stub Area
Background / Scenario
To make OSPF more efficient and scalable, OSPF supports hierarchical routing using the concept
of areas. An OSPF area is a group of routers that share the same link-state information in their
link-state databases (LSDBs). When a large OSPF area is divided into smaller areas, it is called
1
multi-area OSPF. Multi-area OSPF is useful in larger network deployments to reduce processing
and memory overhead.
In the lab, you will configure a multi-area OSPFv2 network, Explore type of LSAs and Configure
Stub and Totally Stub Area.
Required Resources
▪ 3 Routers (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
▪ Console cables to configure the Cisco IOS devices via the console ports
▪ Serial cables as shown in the topology
In Part 2, you will configure a multi-area OSPFv2 network with a process ID of 1. All LAN
loopback interfaces should be passive.
2
b. Add the networks for R1 to OSPF. Write the commands used here:
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
c. Set LAN loopback interfaces, Lo1 and Lo2, as passive. Write the commands used here:
_________________________________________________________________
__________________________________________________________________
d. Create a default route to the Internet using exit interface Lo0. Write the commands used here:
_______________________________________________________________
Note: You may see the “%Default route without gateway, if not a point-to-point interface, may
impact performance” message. This is normal behavior if using a Loopback interface to simulate
a default route.
e. Configure OSPF to propagate the routes throughout the OSPF areas. Write the commands
used here:
___________________________________________________
____________________________________________________
b. Add the networks for R2 to OSPF. Add the networks to the correct area. Write the commands
used here:
____________________________________________________
___________________________________________________________
___________________________________________________________
c. Set all LAN loopback interfaces as passive. Write the commands used here:
_____________________________________________________________________
b. Add the networks for R3 to OSPF. Write the commands used here:
__________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
c. Set all LAN loopback interfaces as passive. Write the commands used here:
3
________________________________________________________________________
______________________________________________________________________
Step 5: Verify that OSPF settings are correct and adjacencies have been
established between routers.
a. Issue the show ip protocols command to verify OSPF settings on each router. Use this
command to identify the OSPF router types and to determine the networks assigned to each area.
b. Use the show ip ospf neighbor detail command to get additional information about neighbor adjacencies
c. Issue the show ip ospf neighbor command to verify that OSPF adjacencies have been
established between routers.
Reflection:
What are three advantages for designing a network with multi-area OSPF?
____________________________________________________
__________________________________________________________________
____________________________________________________________________________
a. On R3, display the list of neighbors using the show ip ospf neighbors command.
4
b. On R3, verify the OSPF routing table using the show ip route ospf | begin Gateway
command. How many interarea networks and external OSPF network are listed by the routing
table ?____________________________________________________________.
c. R3 learned about these networks from LSAs. A router maintains a LSDB for each area it has
interfaces in. Because R3 is an internal OSPF router, it will only have entries for Area 3. To
display the contents of the LSDB of R3, use the show ip ospf database command.
Notice how the command output is divided into the following five sections, indicate the type of
LSA:
o Router Link States : ______________________________________________________
o Net Link States: _________________________________________________________
o Summary Net Link States: _________________________________________________
o Summary ASB Link States:________________________________________________
o Type-5 AS External Link States:____________________________________________
d. Additional information about the Router Link States type 1 LSA can be gathered using the
show ip ospf database router command. The output provides more information about the type
1 LSAs.
e. To learn more about type 2 network LSAs, use show ip ospf database network command.
The content of the type 2 LSA describes the network segment listing the DR address, the
attached routers, and subnet mask using CIDR notation.
f. To learn more about type 3 summary LSAs, use show ip ospf database summary
command. The output lists four type LSAs. The LSAs identify the interarea networks, which
ABR advertised, and the network mask using CIDR notation.
g. To learn more about type 4 summary LSAs, use show ip ospf database asbr-summary
command. The output lists one type 4 LSA.
h. Finally, to learn more about type 5 AS external link LSAs, use show ip ospf database
external command. The output lists one type 5 LSA identifying that 0.0.0.0/0.
a. On R3, check the routing table by using show ip route ospf command to note all routes.
b. On R3, before configure stub area, please use show ip route summary command to see the
total load of the routing table in RAM. _______________________________________
c. On R2 and R3, configure area 3 as a stub area. Write the commands used here:
__________________________________________________________________________
________________________________________________________________________
d. After, check again the routing table on R3 by using show ip route ospf command. What’s
changed ? ___________________________________________________and what type of
LSA(s) is missing ?_______________________________________________
e. Then use show ip route summary command to see the new total load of the routing table in
RAM. _______________________________________
6
Step 5: Configure Totally Stub area
a. Check the routing table by using show ip route ospf command to note all routes.
b. Before configure stub area, please use show ip route summary command to see the total
load of the routing table in RAM. _______________________________________
c. On R2, configure area 3 as a Totally stub area. Write the commands used here:
__________________________________________________________________________
________________________________________________________________________
d. After, check again the routing table on R3 by using show ip route ospf command. What’s
changed ? ___________________________________________________and what type of
LSA is missing ?_________________________________________________
e. Then use show ip route summary command to see the new total load of the routing table in
RAM. _______________________________________