0% found this document useful (0 votes)
24 views12 pages

Sdasednfd

Uploaded by

barsubiasarah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views12 pages

Sdasednfd

Uploaded by

barsubiasarah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Republic of the Philippines

UNIVERSITY OF SOUTHERN MINDANAO


College of Engineering and Information Technology
Barangay Poblacion, Kabacan, Cotabato, Philippines

DEPARTMENT OF COMPUTING AND LIBRARY INFORMATION SCIENCE


____________________________________________________________________________________

Laboratory Exercise 3
Packet Tracer - Implementation of Static Routing
InfoSys 04 – IT Infrastructure and Network Technologies
1st Semester, A.Y. 2024-2025

Table of Contents
INTRODUCTION ................................................................................................................................. 2
STEPS TO CONFIGURE AND VERIFY TWO ROUTER CONNECTIONS........................................................ 2
STEP 1. DEVICES ON PACKET TRACER .............................................................................................................2
Table 1. Active and Passive Components. ........................................................................................... 2
Table 2. IP Addressing Table for PCs and Server................................................................................... 2
Figure 1. Network topology for Laboratory Exercise 3 using Packet Tracer. ............................................ 2
STEP 2: CONFIGURE THE PCS (HOSTS) WITH IPV4 ADDRESS, SUBNET MASK, AND DNS ACCORDING TO THE IP ADDRESSING
TABLE GIVEN ABOVE. ...................................................................................................................................3
Figure 2. PC IPv4 Configuration. ......................................................................................................... 3
STEP 3: CONFIGURE THE SERVER-PT WITH IPV4 ADDRESS, SUBNET MASK, AND DNS ACCORDING TO THE IP ADDRESSING
TABLE GIVEN ABOVE. ADDITIONAL CONFIGURATION FOR HTTP, HTTPS, AND DOMAIN NAME SYSTEM (DNS). ...................3
Figure 3. Server-PT IPv4 Configuration. ............................................................................................... 3
Figure 4. Server-PT Services for HTTP and HTTPS Configuration. .......................................................... 4
Figure 5. Server-PT Services for DNS Configuration. ............................................................................ 4
STEP 4: CONFIGURE ROUTER WITH IP ADDRESS AND SUBNET MASK.........................................................................5
Table 3. Router Information and Configuration. ................................................................................... 5
Table 4. Static Routing Information and Configuration ......................................................................... 5
Figure 6. Terminal connection for router configuration. ........................................................................ 5
Step 4.1. How to configure the hostname of the Router. ...................................................................... 6
Step 4.2. How to configure the IPv4 Address of WAN Serial Interface. ................................................... 6
Step 4.3. How to configure the IPv4 Address of LAN Gigabit Ethernet. .................................................. 7
Step 4.4. How to configure the Static Route of the router. .................................................................... 8
STEP 5: VERIFYING THE NETWORK BY PINGING THE IP ADDRESS OF ANY PC. YOU WILL USE THE PING COMMAND TO DO SO. . 11
Figure 7. Successful ping test results................................................................................................ 11
Step 5.1. Verifying if the Server-PT Services configuration is correct. .................................................. 11
Figure 8. A landing page of https://usm.edu.ph ................................................................................. 11
Step 5.2. Simulation. ....................................................................................................................... 12
Figure 8. Successful Simple PDU test results. ................................................................................... 12
REFERENCE(S): ................................................................................................................................ 12

Page 1 of 12
Introduction

Static routing is a routing protocol that helps to keep your network organized and to optimize
routing performance. It enables the router to assign a specific path to each network segment
and to keep track of network changes. This helps to improve network stability and continuity.
This adds security because a single administrator can only authorize routing to particular
networks.

This laboratory exercise will further develop your skills in configuring static routing on a given
network topology, where three (3) Cisco Routers function as public networks that oOer
unified connectivity across diOerent network segments.

Steps to Configure and Verify Two Router Connections


Step 1. Devices on Packet Tracer
Table 1. Active and Passive Components.
Item
Device Model Name Quantity
No.
Active Components
1. PC PC-PT 9
2. Server Server-PT 1
3. Switch 2960-24TT 3
4. Router 2911 3
5. Serial High-Speed WAN Interface Card HWIC-2T 3
Passive Components
1. Console Cable Console cable 3
2. UTP Patch Cable Copper Straight-Through 10
3. Serial Cable Serial DTE 2

Table 2. IP Addressing Table for PCs and Server.


Item
Device IPv4 Address Subnet Mask Default Gateway DNS
No.
1. main-pc01 192.168.10.2 255.255.255.0 192.168.10.1 192.168.10.3
2. main-pc02 192.168.10.4 255.255.255.0 192.168.10.1 192.168.10.3
3. kcc-pc01 192.168.20.3 255.255.255.0 192.168.20.1 192.168.10.3
4. kcc-pc02 192.168.20.2 255.255.255.0 192.168.20.1 192.168.10.3
5. palma-pc01 192.168.30.3 255.255.255.0 192.168.30.1 192.168.10.3
6. palma-pc02 192.168.30.2 255.255.255.0 192.168.30.1 192.168.10.3
7. Web Server 192.168.10.3 255.255.255.0 192.168.10.1 192.168.10.3

Figure 1. Network topology for Laboratory Exercise 3 using Packet Tracer.

Page 2 of 12
Step 2: Configure the PCs (hosts) with IPv4 address, Subnet Mask, and DNS according to the IP
addressing table given above.

• To assign an IP address in main-pc01, click on main-pc01.


• Then, go to desktop and IP configuration and there you will set IPv4
configuration.
• Fill IPv4 address, subnet mask, and DNS.
• Repeat the same procedure with other PCs to configure them thoroughly.

Figure 2. PC IPv4 Configuration.

Step 3: Configure the Server-PT with IPv4 address, Subnet Mask, and DNS according to the IP
addressing table given above. Additional configuration for HTTP, HTTPS, and Domain Name
System (DNS).

• Rename the Display Name of Server-PT to Web Server (usm.edu.ph).


• To assign an IP address in Server-PT, click on Server-PT.
• Then, go to desktop and IP configuration and there you will set IPv4
configuration.
• Fill IPv4 address, subnet mask, and DNS.

Figure 3. Server-PT IPv4 Configuration.

• To enable the Server-PT services, such as HTTP and HTTPS, click on Services
and select the HTTP menu, as shown below.

Page 3 of 12
Figure 4. Server-PT Services for HTTP and HTTPS Configuration.

• To enable the DNS services, click on the DNS menu and fill in the necessary
information: Name: usm.edu.ph, Type: A Record, Address: 192.168.10.3. Then,
click the Add button and ensure that the On option is selected in the DNS
service section, as shown below.

Figure 5. Server-PT Services for DNS Configuration.

Page 4 of 12
Step 4: Configure router with IP address and subnet mask.

Table 3. Router Information and Configuration.


Item Display IPv4
Device Hostname Interface Subnet Mask
No. Name Addressing
1. 2911 MAIN main GigabitEthernet0/0 192.168.10.1 255.255.255.0
Router Serial0/0/0 10.0.0.1 255.255.255.252
Serial0/0/1 10.1.0.1 255.255.255.252
2. 2911 KCC kcc GigabitEthernet0/0 192.168.20.1 255.255.255.0
Router Serial0/0/0 10.0.0.2 255.255.255.252
3. 2911 PALMA palma GigabitEthernet0/0 192.168.30.1 255.255.255.0
Router Serial0/0/1 10.1.0.2 255.255.255.252

Table 4. Static Routing Information and Configuration


Item Display
Device Hostname Static Routes
No. Name
1. 2911 MAIN main 192.168.20.0<space>255.255.255.0<space>10.0.0.2
Router 10.0.0.0<space>255.255.255.252<space>10.0.0.2
192.168.30.0<space>255.255.255.0<space>10.1.0.2
10.1.0.0<space>255.255.255.252<space>10.1.0.2
2. 2911 KCC kcc 192.168.10.0<space>255.255.255.0<space>10.0.0.1
Router 10.0.0.0<space>255.255.255.252<space>10.0.0.1
192.168.30.0<space>255.255.255.0<space>10.0.0.1
10.1.0.0<space>255.255.255.252<space>10.0.0.1
3. 2911 PALMA palma 192.168.20.0<space>255.255.255.0<space>10.1.0.1
Router 10.0.0.0<space>255.255.255.252<space>10.1.0.1
192.168.10.0<space>255.255.255.0<space>10.1.0.1
10.1.0.0<space>255.255.255.252<space>10.1.0.1

• Now, you will configure the three routers using the command-line interface (CLI)
by clicking on the PCs connected via console cables. From the desktop, select
Terminal, as shown in the image below.

Figure 6. Terminal connection for router configuration.

Page 5 of 12
• Change the hostname of three (3) routers with MAIN to (main), KCC to (kcc), and
PALMA to (palma).
• Assign the appropriate IPv4 addresses based on the IP addressing for the Gigabit
Ethernet and Serial interfaces, as shown in Table 3 above.
• Add manually the static routes of each routers following the Table 4 above.

Step 4.1. How to configure the hostname of the Router.

SUMMARY STEPS
1. configure terminal
2. hostname
3. end
4. write memory

DETAILED STEPS
Command Purpose

Step 1 configure terminal Enters global configuration mode, when


using the console port.
Example:
Router> enable
Router# configure terminal

Step 2 hostname name Specifies the name for the router.

Example:
Router (config)# hostname main

Step 3 end Returns to privileged EXEC mode.

Example:
main(config)# end

Step 4 write memory Save the entire configuration.

Example:
main# write memory

Step 4.2. How to configure the IPv4 Address of WAN Serial Interface.

SUMMARY STEPS
1. configure terminal
2. interface serial slot/port
3. ip address ip-address mask
4. no shutdown
5. exit
6. end
7. write memory

DETAILED STEPS
Command Purpose

Step 1 configure terminal Enters global configuration mode,


when using the console port.
Example:
main> enable
main# configure terminal

Step 2 interface serial slot/port Enters the configuration mode for a


Serial interface on the router.

Example: Note: Serial WAN interfaces depend


main(config)# interface serial0/0/0 on the slots used for module insertion.

Page 6 of 12
The Cisco 2911 features four slots—0,
1, 2, and 3. It's crucial to verify the
specific slot utilized for installing the
HWIC-2T.

Step 3 ip address ip-address mask Sets the IP address and subnet mask
for the specified Serial interface.
Example:
main(config-if)# ip address 10.0.0.1 255.255.255.252

Step 4 no shutdown Enables the Serial interface, changing


its state from administratively down to
Example: administratively up.
main(config-if)# no shutdown

Step 5 exit Exits configuration mode for the Serial


interface and returns to global
Example: configuration mode.
main(config-if)# exit

Step 6 end Returns to privileged EXEC mode.

Example:
main(config)# end

Step 7 write memory Save the entire configuration.

Example:
mainr# write memory

Step 4.3. How to configure the IPv4 Address of LAN Gigabit Ethernet.

SUMMARY STEPS
1. configure terminal
2. interface gigabitethernet slot/port
3. ip address ip-address mask
4. no shutdown
5. exit
6. end
7. write memory

DETAILED STEPS
Command Purpose

Step 1 configure terminal Enters global configuration mode,


when using the console port.
Example:
main> enable
main# configure terminal

Step 2 interface gigabitethernet slot/port Enters the configuration mode for a


Gigabit Ethernet interface on the
router.
Example:
main(config)# interface gigabitethernet 0/0 Note: Gigabit Ethernet interfaces
depend on the ports used to connect
end devices. The Cisco 2911
includes three Gigabit Ethernet
ports—0, 1, and 2. It's essential to
verify which ports are used for
connecting the copper straight-
through cable to the end devices.

Step 3 ip address ip-address mask Sets the IP address and subnet mask
for the specified Gigabit ethernet
Example: interface.

Page 7 of 12
main(config-if)# ip address 192.168.10.1 255.255.255.0

Step 4 no shutdown Enables the Gigabit ethernet,


changing its state from
Example: administratively down to
main(config-if)# no shutdown administratively up.

Step 5 exit Exits configuration mode for the


Gigabit ethernet interface and
Example: returns to global configuration mode.
main(config-if)# exit

Step 6 end Returns to privileged EXEC mode.

Example:
main(config)# end

Step 7 write memory Save the entire configuration.

Example:
mainr# write memory

• Repeat the same procedure for the other routers to complete their configuration.
• Verify the configuration using the ping tool, which allows you to test connectivity
between the router and the PC, as illustrated in the table below.

MAIN Router

main#ping 192.168.10.2

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms

KCC Router

kcc#ping 192.168.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms

PALMA Router

palma#ping 192.168.30.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.30.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms

Step 4.4. How to configure the Static Route of the router.

SUMMARY STEPS
1. configure terminal
2. ip route
3. end
4. write memory

DETAILED STEPS
Command Purpose

Step 1 configure terminal Enters global


configuration
Example: mode, when using
main> enable the console port.

Page 8 of 12
main# configure terminal

Step 2 ip route Specifies the


routing table of the
Example: network such
main(config)# ip route 192.168.20.0<space>255.255.255.0<space>10.0.0.2<press enter> network id, subnet
main(config)# ip route 10.0.0.0<space>255.255.255.252<space>10.0.0.2<press enter>
main(config)# ip route 192.168.30.0<space>255.255.255.0<space>10.1.0.2<press enter>
mask, and the next
main(config)# ip route 10.1.0.0<space>255.255.255.252<space>10.1.0.2<press enter> hop.

Step 3 end Returns to


privileged EXEC
Example: mode.
main(config)# end

Step 4 write memory Save the entire


configuration.
Example:
main# write memory

• Repeat the same procedure for the other routers to complete their configuration.
• To validate your configuration, issue the command show running-config as shown
below to verify that your static routes have been saved.

MAIN Router
main#show running-config
Building configuration...

Current configuration : 1003 bytes


!
hostname main
!
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 10.0.0.1 255.255.255.252
!
interface Serial0/0/1
ip address 10.1.0.1 255.255.255.252
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.20.0 255.255.255.0 10.0.0.2
ip route 10.0.0.0 255.255.255.252 10.0.0.2
ip route 192.168.30.0 255.255.255.0 10.1.0.2
ip route 10.1.0.0 255.255.255.252 10.1.0.2
!
end

main#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


C 10.0.0.0/30 is directly connected, Serial0/0/0
L 10.0.0.1/32 is directly connected, Serial0/0/0
C 10.1.0.0/30 is directly connected, Serial0/0/1
L 10.1.0.1/32 is directly connected, Serial0/0/1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0
S 192.168.20.0/24 [1/0] via 10.0.0.2
S 192.168.30.0/24 [1/0] via 10.1.0.2
main#

KCC Router
kcc#sh run
Building configuration...

Page 9 of 12
Current configuration : 1020 bytes
!
hostname kcc
!
interface GigabitEthernet0/0
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.0.0.2 255.255.255.252
clock rate 2000000
!
ip classless
ip route 192.168.10.0 255.255.255.0 10.0.0.1
ip route 10.0.0.0 255.255.255.252 10.0.0.1
ip route 192.168.30.0 255.255.255.0 10.0.0.1
ip route 10.1.0.0 255.255.255.252 10.0.0.1
!
end

kcc#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


C 10.0.0.0/30 is directly connected, Serial0/0/0
L 10.0.0.2/32 is directly connected, Serial0/0/0
S 10.1.0.0/30 [1/0] via 10.0.0.1
S 192.168.10.0/24 [1/0] via 10.0.0.1
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0
L 192.168.20.1/32 is directly connected, GigabitEthernet0/0
S 192.168.30.0/24 [1/0] via 10.0.0.1
kcc#

PALMA Router
palma#sh run
Building configuration...

Current configuration : 1022 bytes


!
!
hostname palma
!
interface GigabitEthernet0/0
ip address 192.168.30.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/1
ip address 10.1.0.2 255.255.255.252
clock rate 2000000
!
ip classless
ip route 192.168.20.0 255.255.255.0 10.1.0.1
ip route 10.0.0.0 255.255.255.252 10.1.0.1
ip route 10.1.0.0 255.255.255.252 10.1.0.1
ip route 192.168.10.0 255.255.255.0 10.1.0.1
!
end

palma#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


S 10.0.0.0/30 [1/0] via 10.1.0.1
C 10.1.0.0/30 is directly connected, Serial0/0/1
L 10.1.0.2/32 is directly connected, Serial0/0/1
S 192.168.10.0/24 [1/0] via 10.1.0.1
S 192.168.20.0/24 [1/0] via 10.1.0.1
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/0
L 192.168.30.1/32 is directly connected, GigabitEthernet0/0
palma#

Page 10 of 12
Step 5: Verifying the network by pinging the IP address of any PC. You will use the ping command
to do so.
• First, click on kcc-pc01 then Go to the command prompt
• Then type ping <IP address of targeted node>
• As we can see in the below image we are getting replies which means the
connection is working very fine.

Example: ping 192.168.30.2 and 192.168.10.2

Figure 7. Successful ping test results.

Step 5.1. Verifying if the Server-PT Services configuration is correct.


• First, click on kcc-pc01 then Go to the web browser
• Then type the web address https://usm.edu.ph
• As shown in the image below, the browser displays the landing page, indicating that
our web server has been successfully set up and configured.

Figure 8. A landing page of https://usm.edu.ph

Page 11 of 12
Step 5.2. Simulation.
• Add a Simple PDU and click from kcc-pc01 to palma-pc02. If the configuration is
correct, you will see a successful "last status" as shown in the image below. If the
result shows failure, please review and verify all configurations of the routers,
switch, and PCs, as outlined in the steps above.

Figure 8. Successful Simple PDU test results.

Reference(s):

o Cisco Systems, Inc. (2015). Cisco 3900 Series, Cisco 2900 Series, and Cisco 1900 Series Integrated
Services Routers Generation 2 Software Configuration Guide.
https://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration/guide/Softwar
e_Configuration.pdf
o GeeksforGeeks. (2024, May 6). Implementation of Static Routing in Cisco 2 Router Connections.
GeeksforGeeks. https://www.geeksforgeeks.org/implementation-of-static-routing-in-cisco-2-
router-connections
o GeeksforGeeks. (2024, July 16). Types of Routing. GeeksforGeeks.
https://www.geeksforgeeks.org/types-of-routing

Page 12 of 12

You might also like