CSE412 - Lab Manual (Fall22)
CSE412 - Lab Manual (Fall22)
What is a LAN?
A LAN is a high-speed data network that covers a relatively small geographic area. It typically
connects workstations, personal computers, printers, servers, and other devices. LANs offer
computer users many advantages, including shared access to devices and applications, file
exchange between connected users, and communication between users via electronic mail and
other applications.
LAN protocols function at the lowest two layers of the OSI reference model i.e. between the
physical layer and the data link layer. Figure 1 illustrates how several popular LAN protocols
map to the OSI reference model.
LAN Devices:
1. NIC (Network Interface Card): Also called Network Adapter. It connects a host to a
network medium. It provides the physical interface between computer and cabling. It
prepares data, sends data, and controls the flow of data. It can also receive and translate data
into bytes for the CPU to understand. Contain unique MAC Address to control data
communication.
4. Switch: A network switch or switching hub is a computer networking device that connects
network segments. The term commonly refers to a network bridge that processes and routes
data at the Data link layer (layer 2) of the OSI model. Switches that additionally process data
at the network layer (layer 3 and above) are often referred to as Layer 3 switches or
multilayer switches.
5. Bridge: A network bridge connects multiple network segments at the data link layer (Layer
2) of the OSI model. In Ethernet networks, the term bridge formally means a device that
behaves according to the IEEE802.1 standard. A bridge and switch are very much alike; a
switch being a bridge with numerous ports. Bridges can analyze incoming data packets to
determine if the bridge is able to send the given packet to another segment of the network.
6. Router: A router is an electronic device that interconnects two or more computer networks,
and selectively interchanges packets of data between them. Each data packet contains
address information that a router can use to determine if the source and destination are on
the same network, or if the data packet must be transferred from one network to another.
Where multiple routers are used in a large collection of interconnected networks, the routers
exchange information about target system addresses, so that each router can build up a table
showing the preferred paths between any two systems on the interconnected networks.
7. Gate Way: A gateway is a hardware device that acts as a "gate" between two networks. A
gate way may contain devices such as protocol translators, impedance matching devices, rate
converters, fault isolators, or signal translators as necessary to provide system
interoperability.
1. Cross Over Cable: Diagram shows how to prepare Cross Over Connection.
2. Straight Through Cable: Diagram shows how to prepare Straight Through Connection.
Concept of Network IP Address
Rules for Class full addressing:
1. Format of IP address IPv4 is made up of four parts, in the pattern as w.x.y.z. Each part
has 8 binary bits and the values in decimal can range from 0 to 255.
2. IP addresses are divided into different classes. These classes determine the maximum
number of hosts per network ID. Only three classes are actually used for network
connectivity. The following table lists all of the address class.
4. Default Subnet mask it is used to identify the network part from the host part. Put binary one
for the parts that represent network part and zero for the part that represent host part.
a) Class A: 255.0.0.0
b) Class B: 255.255.0.0
c) Class C: 255.255.255.0
d) We can’t have mix of 1s and 0s in subnet mask. Only consecutive 1s is followed by
consecutive 0s.
Supernetting
In Supernetting, an organisation can combine several class C blocks to create a large range of
addresses.
Introduction to Packet Tracer
Packet Tracer is a protocol simulator developed by Dennis Frezzo and his team at Cisco
Systems. Packet Tracer (PT) is a powerful and dynamic tool that displays the various protocols
used in networking, in either Real Time or Simulation mode.
Step 4: Building the Topology – Connecting the Hosts to Hubs and Switches
• Adding a Hub or Switch: Select a hub or a switch by clicking once on Hubs/Switches and
once on a Generic hub/Switch.
• Connect Host to Hub/Switch by first choosing Connections.
• Click once on the Copper Straight-through cable.
To implement this practical following network topology is required to be configured using the
commands learned in previous practical. After configuring the given network a packet should be
ping from any one machine to another.
Topology
router0(config-if)#exit
router0(config)#exit
router0#show running-config
Static Routing:
A router can learn about remote networks in one of two ways:
1. Manually, from configured static routes
2. Automatically, from a dynamic routing protocol
Static routes are commonly used when routing from a network to a stub network. A stub
network is a network accessed by a single route.
Procedure
To implement this practical following network topology is required to be configured using the
commands learned in previous practical. After configuring the given network a packet should
be ping from any one machine to another.
Topology
Router1 Configuration Command
Router1>en
Router1#config t
Router1(config)#interface f0/0
Router1(config-if)#ip address 172.16.1.1 255.255.255.0
Router1(config-if)#no shut
Router1(config-if)#interface s2/0
Router1(config-if)#ip address 172.16.2.2 255.255.255.0
Router1(config-if)#no shut
Router1(config-if)#interface s3/0
Router1(config-if)#clock rate 64000
Router1(config-if)#ip address 192.168.1.2 255.255.255.0
Router1(config-if)#no shut
Router1(config-if)#exit
Router1(config)#exit
Router1#copy run start
Router1#config t
Router1(config)#ip route 172.16.3.0 255.255.255.0 172.16.2.1
Router1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.1
Router1(config)#exit
Router1#copy run start
RIP versions:
• RIP version 1
The original specification of RIP uses Classful routing. The periodic routing updates do
not carry subnet information, lacking support for variable length subnet masks (VLSM).
In other words, all subnets in a network class must have the same size.
• RIP version 2
Due to the deficiencies of the original RIP specification, RIP version 2 (RIPv2) was
developed. It included the ability to carry subnet information, thus supporting Classless
Inter-Domain Routing (CIDR).
The wildcard mask can be configured as the inverse of a subnet mask. Key points:
• 0 (Decimal – octet format) Wildcard mask indicates that corresponding octet in network
address must be matched exactly.
• 255 (Decimal – octet format) Wildcard mask indicates that we don’t care about
corresponding octet in network address.
For example
The area area-id refers to the OSPF area. An OSPF area is a group of routers that share link-
state information.
Implementation of EIGRP using Packet Tracer
Procedure
To implement this practical following network topology is required to be configured using the
EIGRP commands. After configuring the given network a packet should be ping from any one
machine to another.
Topology
Configure EIGRP on the R1 Router:
The router will begin to send EIGRP update messages out each interface belonging to the
172.16.0.0 network. EIGRP updates will be sent out of the FastEthernet0/0 and Serial0/0/0
interfaces because they are both on subnets of the 172.16.0.0 network.
Step 3: Configure the router to advertise the 192.168.10.4/30 network attached to the
Serial0/0/1 interface.
Use the wildcard-mask option with the network command to advertise only the subnet and not
the entire 192.168.10.0 classful network.
R1(config-router)# network 192.168.10.4 0.0.0.3
When you are finished with the EIGRP configuration for R1, return to privileged EXEC mode
and save the current configuration to NVRAM.