computer eng
CNIT 345- ONLINE LEARNING LAB MANUAL
Basic OSPF Configuration
1
ABET Learning Outcomes
1. Understand the operation of shortest path spanning trees in internetworks. (1,2)
2. Perform IP sub networking to correctly size and allocate addressing to network devices.
(1,2)
3. Design, deploy, test, and maintain enterprise-class internetworks. (1,2)
4. Identify the correct network architecture to deploy a given set of requirements. (1,2)
5. Deploy dynamic routing protocols. (1,2)
ABET Student Outcomes
1. Analyze a complex computing problem and to apply principles of computing and other
relevant disciplines to identify solutions
2. Design, implement, and evaluate a computing-based solution to meet a given set of
computing requirements in the context of the program’s discipline.
2
Basic OSPF Configuration
Aim To demonstrate basic OSPF protocol configuration in CISCO packet tracer.
Lab Topology
Figure 1 OSPF Topology
Learning Objectives:
Upon completion of this lab, you will be able to:
• Cable a network according to the Topology Diagram
• Erase the startup configuration and reload a router to the default state
• Perform basic configuration tasks on a router
• Configure and activate interfaces
• Configure OSPF routing on all routers
• Configure OSPF router IDs
• Verify OSPF routing using show commands
• Configure a static default route
• Propagate default route to OSPF neighbors
• Configure OSPF Hello and Dead Timers
• Configure OSPF on a Multi-access network
3
• Configure OSPF priority
• Understand the OSPF election process
Scenario:
In this lab activity, you will learn how to configure the routing protocol OSPF using the network shown in the topology diagram. The segments of the network have been subnetted using VLSM. OSPF is a classless routing protocol that can be used to provide subnet mask information in the routing updates. This will allow VLSM subnet information to be propagated throughout the network.
Addressing Table:
R1
Gig0/0 172.16.1.17 255.255.255.240 N/A
Se0/2/0 192.168.10.1 255.255.255.252 N/A
Se0/2/1 192.168.10.5 255.255.255.252 N/A
R2
Gig0/0 10.10.10.1 255.255.255.0 N/A
S0/2/0 192.168.10.2 255.255.255.252 N/A
S0/2/1 192.168.10.9 255.255.255.252 N/A
R3
Gig0/0 172.16.1.33 255.255.255.248 N/A
S0/2/0 192.168.10.10 255.255.255.252 N/A
S0/2/1 192.168.10.6 255.255.255.252 N/A
PC1 NIC 172.16.1.20 255.255.255.240 172.16.1.17
PC2 NIC 10.10.10.10 255.255.255.0 10.10.10.1
PC3 NIC 172.16.1.35 255.255.255.248 172.16.1.33
Examples of calculating the wild card for certain IP address: Example 1
Subnet mask 11111111.11111111.11111111.11111100
Example 2
Subnet mask 11111111.11111111.11111111.11110000
8 8 8 6 30 + + + = CIDR /30
4
N . N . N . 128 64 32 16 8 4 2 1
Task 1: Prepare the Network.
Step 1: Cable a network that is similar to the one in the figure 1.
Task 2: Perform Basic Router Configurations.
Perform basic configuration of the R1, R2, and R3 routers according to the following guidelines:
1. Configure the router hostname (R1, R2 and R3)
1 2 4 8 15 + + + = Wildcard 0.0.0.15
5
2. Disable DNS lookup. When working on Cisco Routers and switches, one gives an error command which takes it to long queue of DNS lookup. Not only is critical time wasted, it also becomes an irritant especially for newbies or ones who have started recently working on cisco commands. The router can be configured to use DNS lookups if one wishes to use the ping or traceroute commands with a host name rather than an IP address.
Click on the
Router0
Access CLI
interface
The command to change the hostname
is hostname. Try the same with other two routers
but change the name to R2 and R3 instead
of R1.
Enable command will allows you to enter privilege mode Conf t (short for Configure Terminal) will allows you to enter in global configuration mode where you can change the existing configurations (e.g. change hostname, configure interfaces etc.)
6
3. Configure an EXEC mode password.
Task 3: Configure and Activate Serial and Ethernet Addresses.
Step 1: Configure interfaces on R1, R2, and R3. Configure the interfaces on the R1, R2, and R3 routers with the IP addresses from the table under the Topology Diagram.
For R1, we need to configure three interfaces gi 0/0 (Gigabit Ethernet), Se (serial interface) 0/2/0 and 0/2/1). R1: gi 0/0 interface
First, configure gi 0/0 interface.
By applying the command interface gi 0/0 , current interface prompt will be
changed into gi 0/0 for us to assign IP address as per the
given table.
Assign the IP address and subnet mask as per the
given table. no shutdown or no shut command will make the
interface up.
7
R1: Se 0/2/0 interface
R1: Se0/2/1 interface
Now, refer the following addressing table and try the same commands with R2 and R3. (IP address and subnet mask should be changed as per the table)
Step 2: Verify IP addressing and interfaces. Use the show ip interface brief command to verify that the IP addressing is correct and that the interfaces are active. When you have finished, be sure to save the running configuration to the NVRAM of the router.
Step 3: Configure Ethernet interfaces of PC1, PC2, and PC3.
Exit from the previous interface gi 0/0 and then
enter into se 0/20/ interface for assigning IP address as
per the given table.
8
Configure the Ethernet interfaces of PC1, PC2, and PC3 with the IP addresses and default gateways from the table under the Topology Diagram.
By referring the addressing table, assign IP address to PC1,PC2 and PC3.
Double Click on PC1, navigate to IP
configuration under Desktop settings of PC1.
9
Now, configure Ethernet interfaces of PC2 and PC3 by referring the following table.
Step 4: Test the PC configuration by pinging the default gateway from the PC.
Task 4: Configure OSPF on R1 router.
Step 1: Use the router OSPF command in global configuration mode to enable OSPF on the R1 router. Enter a process ID of 1 for the process-ID parameter. R1(config)#router ospf 1
Step 2: Configure the network statement for the LAN network.
Once you are in the Router OSPF configuration sub-mode, configure the LAN network 172.16.1.16/28 to be included in the OSPF updates that are sent out of R1. The OSPF network command uses a combination of network-address and wildcard-mask similar to that which can be used by EIGRP. Unlike EIGRP, the wildcard mask in OSPF is required.
10
Use an area ID of 0 for the OSPF area-id parameter. 0 will be used for the OSPF area ID in all of the network statements in this topology (network 172.16.1.16 0.0.0.15 area 0). Step 3: Configure the router to advertise the 192.168.10.0/30 network attached to the Serial0/0/0 interface (network 192.168.10.0 0.0.0.3 area 0). Step 4: Configure the router to advertise the 192.168.10.4/30 network attached to the Serial0/0/1 interface (network 192.168.10.4 0.0.0.3 area 0). Step 5: When you are finished with the OSPF configuration for R1, return to privileged EXEC mode (end).
Task 5: Configure OSPF on the R2 and R3 Routers
In R2, apply the same command as in R1 but change the network addresses and wild card mask as below:
Provide the network address of all interfaces in R1 (Provide network address of all
interfaces of R2, if the configuration is done at R2).
11
network 10.10.10.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.3 area 0 network 192.168.10.8 0.0.0.3 area 0
In R3, apply the same command as in R1 but change the network addresses and wild card mask as below: network 172.16.1.32 0.0.0.7 area 0 network 192.168.10.8 0.0.0.3 area 0 network 192.168.10.4 0.0.0.3 area 0
Task 6: Verify OSPF Operation Step 1: On the R1 router, Use the show ip ospf neighbor command to view the information about the OSPF neighbor routers R2 and R3. You should be able to see the neighbor ID and IP address of each adjacent router, and the interface that R1 uses to reach that OSPF neighbor. R1#show ip ospf neighbor
Step 2: On the R1 router, use the show ip protocols command to view information about the routing protocol operation. Notice that the information that was configured in the previous Tasks, such as protocol, process ID, neighbor ID, and networks, is shown in the output. The IP addresses of the adjacent neighbors are also shown.
R1#show ip protocols
12
Task7: Examine OSPF Routes in the Routing Tables View the routing table on the R1 router. OSPF routes are denoted in the routing table with an “O”. R1#show ip route
Task8: Ping PC1 , PC2 and PC3 each other and you should get the response same as below.
13
That’s it. We have configured OSPF in R1, R2 and R3. Next, we will learn about configuring OSPF Router IDs, OSPF Cost. Reference: Textbook/material required:
Network Warrior, Gary A. Donahue, O'Reilly Publisher, 2nd Edition, ISBN: 9781449387860.
Supplementary video for OSPF Configuration: Design OSPF