You are on page 1of 47

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

RAMAPURAM PART, VADAPALANI,


CHENNAI-600026

18CSC202J - Computer Communications Lab

Submitted By:

Student Name : NILADRI GHOSHAL

Register No : RA2011003040003

Section : CSE-A

Year : II year

July 2022

Department of Computer Science & Engineering


BONAFIDECERTIFICATE

This is to certify that bonafide record work for 18CSC202J- Computer-


Communications Lab done by

Name : NILADRI GHOSHAL


Reg. no. : RA2011003040003

of Second Year B.Tech degree in Computer Science and Engineering, in SRM


Institute of Science and Technology, Vadapalani, Chennai during the academic year
2021 - 2022.

Faculty In-charge Head of the Department


Dr. S. Manohar Dr. S. Prasanna Devi
Asst. Prof. (O.G) H.O.D
Department of CSE Department Of CSE

Submitted for University Examination held on at

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY, Vadapalani.

Internal Examiner-I Internal Examiner-II


EXP. EXPERIM PAGE SIGN
DATE
NO ENT NO.
NAME
08.03.2022 IP Addressing-IPV4 ( 32 bit : a.b.c.d ) / IPV6 ( 128bit ) 01
1
15.03.2022 Sub netting ( VLSM- Variable Length Subnet Mask ) 04
2
27.05.2022 LAN Configuration using Straight Through 07
cable and Demonstration of Peer to Peer
3 Network ( Cross Over Cable )
29.03.2022 Router Configuration (Creating password and 10
4 configuration interfaces)
05.04.2022 Basic Switch Configuration 12
5
21.04.2022 Static and Default routing 14
6
30.04.2022 Demonstration of RIPV1 with 3 Routers 19
7
20.05.2022 Demonstration of RIPV2 with 3 Routers 23
8 (SUBNETTING)
27.05.2022 Demonstration of Route Summarization using 29
9 EIGRP Protocol
03.06.2022 Demonstration of Single Area OSPF 33
10
10.06.2022 Demonstration of Multi Area OSPF 37
11
Experiment No. : 1
Date: 08.03.2022

IP Addressing - IPV4 / IPV6


AIM
To study the IP addressing of IPV4

PROCEDURE
IPV4 - Internet Protocol Version 4
IPV6 - Internet Protocol Version 6

IP Addressing
|
| |
IPV4 IPV6
(32 bits) (128 bits)
a.b.c.d abcd.efgh
8 bits.8 bits.8 bits.8 bits (0-F)(0-F)(0-F)(0-F):(0-F)(0-F)(0-F)(0-F)

An IP address is an address used in order to uniquely identify a device on an IP network.


The address is made up of 32 binary bits, which can be divided into a network portion and
host portion with the help of a subnet mask.

The 32 binary bits are broken into four octets (1 octet = 8 bits). Each octet is converted to
decimal and separated by a period (dot). For this reason, an IP address is said to be
expressed in dotted decimal format (for example, 172.16.81.100). The value in each octet
ranges from 0 to 255 decimal, or 00000000 - 11111111 binary.

IPV4:
— 00000000→0 128 x 100 = 50 %
Class A — 256
— 0 1 1 1 1 1 1 1 → 127

— 1 0 0 0 0 0 0 0 → 128 64 x 100 = 25 %
Class B — 256
— 1 0 1 1 1 1 1 1 → 191

— 1 1 0 0 0 0 0 0 → 128 32 x 100 = 12.5 %


Class C — 256
— 1 1 0 1 1 1 1 1 → 191

1
— 1 1 1 0 0 0 0 0 → 192 16 x 100 = 6.25 %
Class D — 256
— 1 1 1 0 1 1 1 1 → 223

— 1 1 1 1 0 0 0 0 → 224 16 x 100 = 6.25 %


Class E — 256
— 1 1 1 1 1 1 1 1 → 255

Range of IPV4 address :


Class A 1.0 0.0 to 127.255.255.255
Class B 128.0 0.0 to 191.255.255.255
Class C 192.0 0.0 to 223.255.255.255
Class D 224.0 0.0 to 239.255.255.255
Class E 240.0 0.0 to 255.255.255.255

Example :
1. 249.255.205.0 - Class E
2. 255.255.255.255 - Class D

2
Class A, B and C addresses are divided into 2 parts: Network ID and Host ID

The address classes of IPV4 Protocol

3
Experiment No. : 2
Date: 15.03.2022

Subnetting ( VLSM- Variable Length Subnet Mask )


AIM
To study how subnetting works.

PROCEDURE
IPV4 - Internet Protocol Version 4

Class A - 0
Class B - 10
Class C - 110
Class D - 1110
Class E - 1111

CLASS A

CLASS B

CLASS C

CLASS D

CLASS E

4
IP Addresses :

1. 100.128.191.255
Class A [within the range of 0 to 127]
Network ID - 100
Host ID - 128.191.255

2. 180.191.192.240
Class B [within the range of 128 to 191]
Network ID - 180.191
Host ID - 192.240

3. 192.168.1.100
Class C [within the range of 192 to 223 ]
Network ID - 192.168.1
Host ID - 100

4. 230.128.192.240
Class D [within the range of 192 to 223 ]
Network ID - NO NET ID
Host ID - NO HOST ID
It is a multicast address.

IPV4 - 174.31.3.224 ← Class B


IPV6 - fe80::d563:9f21:2a79:510d % 11

SUBNET MASK :

Default subnet address

5
Given an address from a block of addresses, we can find
the network address by AND-ing with a mask

6
Experiment No. : 3
Date: 27.05.2022

LAN Configuration using straight through and cross over cables


AIM
To perform LAN configuration using straight through and Crossover cables and test the
connection.

THEORY
RJ45 interface is the most common twisted-pair connector for Ethernet cables (CAT5e or
CAT6 - UTP Cable) and networks. “RJ” means “registered jack”, which is a standardized
telecommunication network interface for connecting voice and data equipment to a
service provided by a local exchange carrier or long distance carrier.

PROCEDURE
1. Take a LAN cable 586B/category-6, by using a shield-cutter cut the shield over the
wire, strip the cable jacket about 1.5 inch down from the end.
2. Spread the four pairs of twisted wire apart. You can use the pull string to strip the
jacket farther down if you need to, then cut the pull string.
3. Untwist the wire pairs and neatly align them in the T568B orientation. Be sure not
to untwist them any farther down the cable than where the jacket begins; we want
to leave as much of the cable twisted as possible.
4. Cut the wires as straight as possible, about 0.5 inch above the end of the jacket and
carefully insert the wires all the way into the modular connector, making sure that
each wire passes through the appropriate guides inside the connector.
5. Push the connector inside the crimping tool and squeeze the crimper all the way
down.
6. Repeat steps 1-5 for the other end of the cable.
7. To make sure you've successfully terminated each end of the cable, use a cable
tester to test each pin.

RJ45 Connector VS. RJ11 Connector

7
Straight Through and Crossover Cable

Patch cable/Straight through cable wiring Scheme

8
Crossover

9
Experiment No. : 4
Date: 29.03.2022

Router Configuration(Creating password and configuration interfaces)


AIM
To create a password and configuring interface in router configuration.

COMMANDS
ROUTER1:
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable password 2206
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable secret cclab
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#exit
Router>en
Password:
Router#show running-config

10
OUTPUT:

RESULT
Thus, the password was created and configured successfully.

11
Experiment No. : 5
Date: 05.04.2022
Basic Switch Configuration
AIM
To setup basic switch configuration using VLAN

COMMANDS
Switch 1:
Switch>en
Switch#conf t
Switch(config)#hostname S1
S1(config)#enable password 2206
S1(config)#exit
S1#conf t
S1(config)#enable secret cclab
S1(config)#exit
S1#exit
S1>en
Password:
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#VLAN 20
S1(config-vlan)#Name SRMCSE
S1(config-vlan)#exit
S1(config)#VLAN 30
S1(config-vlan)#Name SRMIST
S1(config-vlan)#exit
S1(config)#interface fa 0/1
S1(config-if)#switchport access VLAN 20
S1(config)#interface fa 1/1
S1(config-if)#switchport access VLAN 30
S1#show VLAN
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 2/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router#copy running-config startup-config
Router#show running-config

12
OUTPUT

Result
Thus, Switches were configured successfully.

13
Experiment No. : 6
Date: 21.04.2022

Static and Default routing


AIM
To configure router using Static and default routing

PROCEDURE
CLI COMMANDS:
In router R1,
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
R1(config)#exit
R1#copy running-config startup-config

In router R2,
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface fa0/0
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int serial 2/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
R2(config)#exit
R2#copy running-config startup-config

14
Device IP Address Subnet Mask Default Gateway

PC0 192.168.1.2 255.255.255.0 192.168.1.1

PC1 192.168.1.3 255.255.255.0 192.168.1.1

PC2 192.168.2.2 255.255.255.0 192.168.2.1

PC3 192.168.2.3 255.255.255.0 192.168.2.1

15
16
17
Result
Router was configured using Static and default routing.

18
Experiment No. : 7
Date: 30.04.2022

RIPV1
AIM
To configure a router using RIPV1 protocol.

PROCEDURE
CLI COMMANDS:
In router R1,
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa 0/0
R1(config-if)#ip address 192.168.5.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#^Z
R1#copy running-config startup-config
R1#conf t
R1(config)#interface serial 2/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#^Z
R1#copy running-config startup-config
R1#conf t
R1(config)#router RIP
R1(config-router)#network 192.168.5.0
R1(config-router)#network 10.0.0.0
R1(config-router)#network 192.16.10.0
R1(config-router)#end

IP Address Subnet Mask Default Gateway

PC1 192.168.5.10 255.255.255.10 192.168.5.1

PC2 192.168.5.20 255.255.255.20 192.168.5.1

PC3 192.168.10.10 255.255.255.10 192.168.10.1

PC4 192.168.10.20 255.255.255.20 192.168.10.1

19
In router R2,
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface fa 0/0
R2(config-if)#ip address 192.168.10.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#^Z
R2#copy running-config startup-config
R2#conf t
R2(config)#interface serial 2/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#^Z
R2#copy running-config startup-config
R2#conf t
R2(config)#router RIP
R2(config-router)#network 192.168.5.0
R2(config-router)#network 10.0.0.0
R2(config-router)#network 192.16.10.0
R2(config-router)#end

20
21
Result
Router was configured using RIPV1.

22
Experiment No. : 8
Date: 20.05.2022

RIPV2
AIM
To configure router using RIPV2 protocol

PROCEDURE
CLI COMMANDS:
In router R1,
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa 0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#^Z
R1#copy running-config startup-config
R1#show ip interface brief
R1#conf t
R1(config)#interface serial 3/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#^Z
R1#copy running-config startup-config
R1#conf t
R1(config)#router RIP
R1(config-router)#version 2
R1(config-router)#network 192.168.10.0
R1(config-router)#network 10.0.0.0
R1(config-router)#network 192.168.11.0
R1(config-router)#network 11.0.0.0
R1(config-router)#network 192.168.12.0

In router R2,
Router>en
Router#conf t
Router(config)#hostname R2
R2#conf t
R2(config)#interface serial 3/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shutdown

23
R2(config-if)#^Z
R2#copy running-config startup-config
R2#conf t
R2(config)#interface fa 0/0
R2(config-if)#ip address 192.168.11.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#^Z
R2#copy running-config startup-config
R2#conf t
R2(config)#interface serial 2/0
R2(config-if)#ip address 11.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#^Z
R2#copy running-config startup-config
R2#conf t
R2(config)#router RIP
R2(config-router)#version 2
R2(config-router)#network 192.168.10.0
R2(config-router)#network 10.0.0.0
R2(config-router)#network 192.168.11.0
R2(config-router)#network 11.0.0.0
R2(config-router)#network 192.168.12.0

In router R3,
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface fa 0/0
R3(config-if)#ip address 192.168.12.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#^Z
R3#copy running-config startup-config
R3#show ip interface brief
R3#conf t
R3(config)#interface serial 3/0
R3(config-if)#ip address 11.0.0.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#^Z
R3#copy running-config startup-config
R3#conf t
R3(config)#router RIP
R3(config-router)#version 2
R3(config-router)#network 192.168.10.0

24
R3(config-router)#network 10.0.0.0
R3(config-router)#network 192.168.11.0
R3(config-router)#network 11.0.0.0
R3(config-router)#network 192.168.12.0

25
26
27
Result
Router was configured using RIPV2.

28
Experiment No. : 9
Date: 27.05.2022

EIGRP

AIM
To configure router using EIGRP protocol.

PROCEDURE
CLI COMMANDS:

Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa 0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.248
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 192.168.10.25 255.255.255.248
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router eigrp
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.10.8
R1(config-router)#network 192.168.10.16
R1(config-router)#network 192.168.10.24
R1(config-router)#network 192.168.10.32
R1(config-router)#end
R1#copy running-config startup-config

Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface fa0/0
R2(config-if)#ip address 192.168.10.9 255.255.255.248
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 2/0
R2(config-if)#ip address 192.168.10.26 255.255.255.248
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 3/0
R2(config-if)#ip address 192.168.10.33 255.255.255.248

29
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router eigrp
R2(config-router)#network 192.168.10.0
R2(config-router)#network 192.168.10.8
R2(config-router)#network 192.168.10.16
R2(config-router)#network 192.168.10.24
R2(config-router)#network 192.168.10.32
R2(config-router)#end
R2#copy running-config startup-config

Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface fa 0/0
R3(config-if)#ip address 192.168.10.17 255.255.255.248
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 2/0
R3(config-if)#ip address 192.168.10.34 255.255.255.248
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router eigrp
R3(config-router)#network 192.168.10.0
R3(config-router)#network 192.168.10.8
R3(config-router)#network 192.168.10.16
R3(config-router)#network 192.168.10.24
R3(config-router)#network 192.168.10.32
R3(config-router)#end
R3#copy running-config startup-config

Device IP Address Subnet Mask Default Gateway

PC0 192.168.10.2 255.255.255.248 192.168.10.1

PC1 192.168.10.3 255.255.255.248 192.168.10.1

30
PC2 192.168.10.4 255.255.255.248 192.168.10.1

PC3 192.168.10.10 255.255.255.248 192.168.10.9

PC4 192.168.10.11 255.255.255.248 192.168.10.9

PC5 192.168.10.18 255.255.255.248 192.168.10.17

PC6 192.168.10.19 255.255.255.248 192.168.10.17

31
Result
Router was configured using EIGRP.

32
Experiment No. : 10
Date: 03.06.2022
OSPF Single Area

AIM
To configure router using OSPF Single Area protocol.

PROCEDURE
CLI COMMANDS:

Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#end
R1#copy running-config startup-config

Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int fa 0/0
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 2/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 3/0
R2(config-if)#ip address 11.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router ospf 10
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
R2(config-router)#network 10.0.0.0 0.255.255.255 area 0
R2(config-router)#network 11.0.0.0 0.255.255.255 area 0

33
R2(config-router)#end
R2#copy running-config startup-config

Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface fa 0/0
R3(config-if)#ip address 192.168.3.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 2/0
R3(config-if)#ip address 11.0.0.2 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router ospf 10
R3(config-router)#network 192.168.3.0 0.0.0.255 area 0
R3(config-router)#network 11.0.0.0 0.255.255.255 area 0
R3(config-router)#end
R3#copy running-config startup-config

Device IP Address Subnet Mask Default Gateway

PC0 192.168.1.2 255.255.255.0 192.168.1.1

PC1 192.168.1.3 255.255.255.0 192.168.1.1

PC2 192.168.2.2 255.255.255.0 192.168.2.1

PC3 192.168.2.3 255.255.255.0 192.168.2.1

PC4 192.168.3.2 255.255.255.0 192.168.3.1

34
PC5 192.168.3.3 255.255.255.0 192.168.3.1

35
Result
Router was configured using OSPF Single Area.

36
Experiment No. : 11
Date: 10.06.2022

OSPF Multi Area


AIM
To configure router for OSPF Multi Area

PROCEDURE
CLI COMMANDS:
In router 1,
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface fa 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#end
R1#copy running-config startup-config

In router 2,
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int fa0/0
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int serial 2/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int serial 3/0
R2(config-if)#ip address 11.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router ospf 10
R2(config-router)#network 192.168.2.0 0.0.0.255 area 1

37
R2(config-router)#network 10.0.0.0 0.255.255.255 area 0
R2(config-router)#network 11.0.0.0 0.255.255.255 area 2
R2(config-router)#end
R2#copy running-config startup-config

In router 3,
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface fa 0/0
R3(config-if)#ip address 192.168.3.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int serial 2/0
R3(config-if)#ip address 11.0.0.2 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router ospf 10
R3(config-router)#network 192.168.3.0 0.0.0.255 area 2
R3(config-router)#network 11.0.0.0 0.255.255.255 area 2
R3(config-router)#end
R3#copy running-config startup-config

38
39
40
41
42
Device IP Address Subnet Mask Default Gateway

PC0 192.168.1.2 255.255.255.0 192.168.1.1

PC1 192.168.1.3 255.255.255.0 192.168.1.1

PC2 192.168.2.2 255.255.255.0 192.168.2.1

PC3 192.168.2.3 255.255.255.0 192.168.2.1

PC4 192.168.3.2 255.255.255.0 192.168.3.1

PC5 192.168.3.3 255.255.255.0 192.168.3.1

Result
Router was configured using OSPF Multiple Area.

43

You might also like