0% found this document useful (0 votes)
5 views8 pages

Lab7 CCN

This lab handout outlines the objectives and procedures for configuring a router to connect different networks using PCs. Students will learn to set up router interfaces, assign IP addresses, and ensure communication between workstations. The exercise culminates in connecting three PCs to a router and configuring them with a Class C IP address scheme.

Uploaded by

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

Lab7 CCN

This lab handout outlines the objectives and procedures for configuring a router to connect different networks using PCs. Students will learn to set up router interfaces, assign IP addresses, and ensure communication between workstations. The exercise culminates in connecting three PCs to a router and configuring them with a Class C IP address scheme.

Uploaded by

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

DEPARTMENT OF ELECTRONICS ENGINEERING

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO


COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

Name: hanifa Roll No: 21tl056

Score: Signature of the Lab Tutor: Date:

OBJECTIVES
#. Of
# Topic CLO Taxonomy level
Lectures
To understand how router works and basic
7 3 1,2 C2, P2
configuration of router using console connection.

OUTCOME(S)
a. An ability to apply knowledge of math, science, and PLO1: Engineering
engineering Knowledge:
RUBRICS:
Performance Exceeds Meets Does not meet
Score
Metric expectation (4-5) expectations (2-3) expectations (0-1)
Applies the Applies the
appropriate relevant
Fails to apply
knowledge knowledge and relevant
and concepts concept to the knowledge and
to the problem problem, possibly concepts to
Knowledge and with accuracy in a roundabout the
application and way; understands problem;
[PLO1] proficiency; the major points misunderstands
shows precise of the knowledge, or fails to
understanding with possible recall critical
of these misunderstanding points.
knowledge and or failure to recall
concepts. minor points;
Total Score

PERFORMANCE OBJECTIVE
Upon successful completion of this experiment, the student will be able to learn:

(i) To configure the interfaces of a router for communication between user of


different networks.
DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

EQUIPMENT

 Two PCs
 one Router
 Two cross-over cables

DISCUSSION

Router is a device which is used to connect different networks together. In this lab we will
connect two different networks with a router using Pc and try to communicate these pcs
via router.

Setup a network similar to the one in the diagram. Any router that meets the interface
requirements may be used. And follow the steps required to achieve this lab activity.
DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

Step 1: Configuring Router interfaces

For Router0
Press Enter to Start

Router>
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router0
Router0(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Router0(config)#int fa0/0
Router0(config-if)#ip address 192.168.1.254 255.255.255.0
Router0(config-if)#no shut

%LINK-3-UPDOWN: Interface fastEthernet0, changed state to up Router0(config-


if)#^Z

a. Why we have assigned ip address of which class and how many host ip address it has?

• Class A: Very large networks (16.7 million hosts).


• Class B: Medium networks (65,534 hosts).
• Class C: Small networks (254 hosts).
• Class D: Used for multicasting.
• Class E: Reserved for future use or experiments.

If you're assigned an IP address, it will typically be from Class A, B, or C, depending on your


organization's network size. For example, a small office would likely use a Class C IP range.

Router0#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router0(config)#int fa0/1
Router0(config-if)#ip address 192.168.2.254 255.255.255.0
Router0(config-if)#no shut
%LINK-3-UPDOWN: Interface fastEthernet0, changed state to up

Step 2: Configuring the work stations


DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

Configure the workstations with the proper IP address, subnet mask, and default gateway.
a. The configuration for the host connected to the Router0 with fa0/0 interface is:
IP Address: 192.168.1.1
IP subnet mask: 255.255.255.0
Default gateway: 192.168.1.254

Configure the workstations with the proper IP address, subnet mask, and default gateway.
a. The configuration for the host connected to the Router0 with fa0/1 is:
IP Address: 192.168.2.1
IP subnet mask: 255.255.255.0
Default gateway: 192.168.2.254

a. Why the hosts have been assigned the default gateway addresses?

Hosts use default gateway addresses to:

1. Route Traffic: Forward packets outside the local network.


2. Enable Subnet Communication: Connect different subnets.
3. Simplify Configuration: Avoid specific routing for every destination.
4. Access the Internet: Serve as the connection point for Internet access.
5. Provide Fallback: Handle traffic without specific destination routes.

Step 3: Check the interface status

Router1#sh ip int brief

Interface IP-Address OK? Method Status Protocol


Fa0/0 192.168.1.254 YES unset up up
Fa0/1 192.168.2.254 YES unset up up

Step 4: Check the routing table entries

Router0#sh ip route
Router1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user
static route

Gateway of last resort is not set

192.168.1.0/24 is subnetted, 1 subnets


DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

C 192.168.1.0 is directly connected, fa0/0 192.168.2.0/24 is


subnetted, 1 subnets
C 192.168.2.0 is directly connected, fa0/1

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user
static route

Gateway of last resort is not set

192.168.1.0/24 is subnetted, 1 subnets


C 192.168.1.0 is directly connected, fa0/0 192.168.2.0/24 is
subnetted, 1 subnets
C 192.168.2.0 is directly connected, fa0/1

Ping PC-1 to PC-0


C:>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=60ms TTL=241


Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241

Ping statistics for 192.168.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms

Lab Exercise:
Submit a lab by performing a simple task, details are as under:
I. Connect three pcs with router using crossover cable
DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

II. Configure router interfaces with three different networks using class C IP address
scheme.
DEPARTMENT OF ELECTRONICS ENGINEERING
MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3
DEPARTMENT OF ELECTRONICS ENGINEERING

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO


COMPUTER COMMUNICATION & NETWORKING
(2nd Semester, 3rd Year) LAB HANDOUT # 3

FINAL CHECK LIST

1. Return all equipment and materials to their proper storage area.


2. Submit your answers to question, before the next laboratory.

You might also like