0% found this document useful (0 votes)
9 views69 pages

Data Communication Networking & OS Linux Training

This document outlines the Competency Based Training and Assessment (CBTA) for Air Traffic Safety Electronics Personnel (ATSEP) focusing on Data Communication Networking and Linux Operating System. It includes a training quality policy, version control, and a detailed practical exercise module designed to equip trainees with essential networking skills and knowledge. The practical exercises cover various topics such as network configuration, IP addressing, and the use of simulation tools like Packet Tracer.

Uploaded by

KSHITIJ
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)
9 views69 pages

Data Communication Networking & OS Linux Training

This document outlines the Competency Based Training and Assessment (CBTA) for Air Traffic Safety Electronics Personnel (ATSEP) focusing on Data Communication Networking and Linux Operating System. It includes a training quality policy, version control, and a detailed practical exercise module designed to equip trainees with essential networking skills and knowledge. The practical exercises cover various topics such as network configuration, IP addressing, and the use of simulation tools like Packet Tracer.

Uploaded by

KSHITIJ
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

As per ICAO DOC 9868

and DOC 10057

2025

Competency Based Training and Assessment for


ATSEP
Non-PLI Training
On
Data Communication Networking and OS
Linux
MODULE-3
Practical Exercise

AAI/ANS/CNS/CATC/2025/CBTA-Non PLI/Data
Communication Networking/OS Linux/Mod-3 सी.ए.टी.सी., प्रयागराज
/Ver.1.0
CATC, PRAYAGRAJ
Module-1
Data Communication Networking and OS Linux

Training Quality Policy

“To develop the human


resources for the aviation
industry, ensuring conformity of
the processes, by adapting the
best practices within industry
and building higher skills and
standards in training.”
Module-1
Data Communication Networking and OS Linux
Module-1
Data Communication Networking and OS Linux
Version Control

Module Doc No. AAI/CATC/CNS/DCN/OS LINUX/NPLI


Version 1.0 1. Sh. Hasan Ashraf, AGM (CNS), CATC
Developed by 2. Sh. Narendra Patel,AGM(CNS),CATC
3. Sh. Devendra Kumar Tiwari, AGM(CNS),CATC
4. Sh. Kumar Raunak , AM(CNS),Kolkata
Version 1.0 1. Sh. Govinda Gupta, AGM (CNS), CATC
vetted by 2. Sh. Praveen Kumar Singh, AGM(CNS), CATC
3. Sh. Hasan Ashraf, AGM (CNS), CATC
Period of vetted Ver. 11th April 2025 to 12th April 2025
1.0
Maintained By CDRC, CATC, PRAYAGRAJ
Version Number Modified By Date Date
Modified approved
Ver 1.0
Module-1
Data Communication Networking and OS Linux
Module-1
Data Communication Networking and OS Linux
Preface
This “Data Communication Networking and OS Linux NPLI Training” handout
conforms to the standards and recommended practices of International Civil Aviation Organization
(ICAO) vide Doc. 9868 (PANS Training) Part IV Chapter 3 for ATSEP and Doc. 10057 (Manual on
Air Traffic Safety Electronics Personnel- Competency Based Training and Assessment).

With pleasure, I authenticate this handout and make it available for imparting NPLI training
course on “Data Communication Networking and OS Linux” for ATSEPs in AAI.

The course content has been approved by CHQ of AAI. It is hoped that the trainee ATSEPs
will find it informative, interesting and better in presentation.

I am sure that the trainees will carry a sense of pride in undergoing this CBTA based NPLI
Training course of ICAO standard.

This handout on “Data Communication Networking and OS Linux” is specifically


designed and developed to equip the ATSEPs with requisite competencies required to
understand Introduction to Data Communication, TCP/IP, Classification of networks, Network
devices with basic configuration in switch and router, Loop avoidance in LAN, IP Addressing &
Subnetting, IP Routing and configuration of static and dynamic routing, VLAN, VLAN Trunking and
inter VLAN routing and configure VLAN in switch and Inter VLAN routing, IP Multicast, Different
protocol, Access Control List, NAT, VPN Linux operating system, Linux command and Introduction
to cyber security.

This handout is intended to be kept up to date. It will be amended periodically as new


technological developments are made in the field of Data communication networking and cyber.

For the development and presentation of this module as per ICAO Doc 10057, I would like
to appreciate the meticulous and excellent work done by the course developers.

Errors, if any or suggestions, if brought to the notice of undersigned would be highly


commendable as it will serve to improve this module and contribute to our objective of achieving
excellence in the field of ATSEP training.

GM (CNS)/ Head of ATSEP training


CATC, PRAYAGRAJ-211012
Dated: 15th April. 2025
Module-1
Data Communication Networking and OS Linux
Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
TABLE OF CONTENTS

Group-A

Practical Exercise: ---------------------------------------------------------------------------------------Page No


Exercise No:-1 Familiarization With Packet Tracer------------------------------------------------------02
Exercise No:-2 Basic switch and Router configuration--------------------------------------------------20
Exercise No:-3 IP Routing-----------------------------------------------------------------------------------24
Exercise No:-4 Dynamic Routing --------------------------------------------------------------------------26
Exercise No:-5 VLAN----------------------------------------------------------------------------------------29
Exercise No:-6 VLAN Layer--------------------------------------------------------------------------------29
Exercise No:-7 Network Analyzer tool--------------------------------------------------------------------32
Exercise No:-8 HSRP----------------------------------------------------------------------------------------33
Exercise No:-9 DHCP----------------------------------------------------------------------------------------35
Exercise No:-10 DNS----------------------------------------------------------------------------------------38

Group-B
Linux:----------------------------------------------------------------------------------------------------------43

Annexure-A
Practices Exercise --------------------------------------------------------------------------------------------53

Civil Aviation Training College, India Page 1


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Group-A
(Data Communication & Networking)
Exercise No. 1:- Familiarization With Packet Tracer

Objective: The Objective of this practical exercise is to become familiar with


creating topologies in Packet Tracer.

Packet Tracer – Creating a New Topology

What is 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. This includes layer 2 protocols such as
Ethernet and PPP, layer 3 protocols such as IP, ICMP, and ARP and layer 4
protocols such as TCP and UDP. Routing protocols can also be traced.

Version: This is based on Packet Tracer 5.0.

Step 1: Start Packet Tracer

Civil Aviation Training College, India Page 2


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 2: Selection of Devices and Connections
We will begin building our network topology by selecting devices and the media connecting them. Several
types of devices and network connections can be used. For this exercise, we will keep it simple by using
End Devices, Switches, Hubs, and Connections.

Single click on each group of devices and connections to display the various choices. The devices you see
may differ slightly.

Civil Aviation Training College, India Page 3


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 3: Building the Topology – Adding Hosts
Single click on the End Devices.

Single click on the Generic host.

Move the cursor into the topology area. You will notice that it turns into a plus “+” sign.

Single click in the topology area and it copies the device.

Add three more hosts in the same way.

Civil Aviation Training College, India Page 4


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 4: Building the Topology – Connecting the Hosts to Hubs and Switches
a) Adding a Hub

Select a hub, by clicking once on Hubs and once on a Generic hub.

Add the hub by moving the plus sign “+” below PC0 and PC1 and click once.

Connect PC0 to Hub0 by first choosing Connections.

Click once on the Copper Straight-through cable.

Civil Aviation Training College, India Page 5


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Perform the following steps to connect PC0 to Hub0:
1. Click once on PC0
2. Choose FastEthernet
3. Drag the cursor to Hub0
4. Click once on Hub0 and choose Port 0
5. Notice that green link light will appear on both the PC0 Ethernet NIC and the Hub0 Port 0 showing
that the link is active.

1 2 3 4 5

Repeat the steps above for PC1 connecting it to Port 1 on Hub0. (The actual hub port you choose does not
matter.)

Civil Aviation Training College, India Page 6


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
b) Adding a Switch

Select a switch, by clicking once on Switches and once on a 2950-24 switch.

Add the switch by moving the plus sign “+” below PC2 and PC3 and click once.

Connect PC2 to Hub0 by first choosing Connections.

Click once on the Copper Straight-through cable.

Civil Aviation Training College, India Page 7


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Perform the following steps to connect PC2 to Switch0:
1. Click once on PC2
2. Choose FastEthernet
3. Drag the cursor to Switch0
4. Click once on Switch0 and choose FastEthernet0/1
5. Notice the green link light will appear on PC2 Ethernet NIC and amber light will appear on
Switch0 FastEthernet0/1 port.
The switch port is temporarily not forwarding frames, while it goes through the stages for the
Spanning Tree Protocol (STP) process.
6. After about 30 seconds, the amber light will turn to green indicating that the port has entered the
forwarding stage. Frames can now be forwarded out of the switch port.

Note: Spanning Tree Protocol (STP) will be discussed later.

1 2 3 4 5 6

Repeat the steps mentioned above for PC3 connecting it to port FastEtherent0/2 of switch0. (The actual switch
port you choose does not matter.)

Move the cursor over the green link light to view the port number. Fa means FastEthernet, 100 Mbps Ethernet.

Civil Aviation Training College, India Page 8


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 5: Configuring IP Addresses and Subnet Masks on the Hosts
To communicate between the hosts, we need to configure IP Addresses and Subnet Masks on the
devices.

Click once on PC0.

Choose the Config tab and click on Settings. H e r e , you can change the name of PC0. You can also enter
a Gateway IP Address, also known as the default gateway and the DNS Server IP Address. We will discuss
this later, but the value in “default gateway address”, would be the IP address of the local router. If you want,
you can enter the Gateway IP Address [Link] and DNS Server IP Address [Link], although it will
not be used in this lab.

Civil Aviation Training College, India Page 9


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Click on Interface and then FastEthernet. Add the IP Address as [Link]. Click once in the Subnet
Mask field to enter the default Subnet Mask. You can leave this as [Link].

Also notice, here you can also change the Bandwidth (speed) and Duplex of the Ethernet NIC (Network
Interface Card). The default is Auto (auto-negotiation), which means the NIC will negotiate with the hub or
switch. The bandwidth and/or duplex can be manually set by removing the check from the Auto box and by
choosing the specific option.

Bandwidth - Auto

If the host is connected to a hub or a switch port which can support 100 Mbps, then the Ethernet NIC on
the host will choose 100 Mbps (Fast Ethernet). Otherwise, if the hub or switch port can only support 10
Mbps, then the Ethernet NIC on the host will automatically choose 10 Mbps (Ethernet).

Duplex - Auto

Hub: If the host is connected to a hub, then the Ethernet NIC on the host will choose Half Duplex.

Switch: If the host is connected to a switch, and the switch port is configured as Full Duplex (or
Autonegotiation), then the Ethernet NIC on the host will choose Full Duplex. If the switch port is configured
as Half Duplex, then the Ethernet NIC on the host will choose Half Duplex. (Full Duplex is a much more
efficient option.)

The information is automatically saved when entered.

Civil Aviation Training College, India Page 10


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
To close this dialog box, click the “X” in the upper right.

Repeat these steps for the other hosts. Use the information below for IP Addresses and Subnet Masks.

Host IP Address Subnet Mask


PC0 [Link] [Link]
PC1 [Link] [Link]
PC2 [Link] [Link]
PC3 [Link] [Link]

Verify the information

To verify the information that you entered, move the Select tool (arrow) over each host.

Deleting a Device or Link

To delete a device or link, choose the Delete tool and click on the item you wish to delete.

Civil Aviation Training College, India Page 11


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 6: Connecting Hub0 to Switch0
To connect like-devices, like a Hub and a Switch, we will use a Cross-over cable. Click once the Cross-over
Cable from the Connections options.

Move the Connections cursor over Hub0 and click once.

Select Port 5 (actual port does not matter).

Civil Aviation Training College, India Page 12


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Move the Connections cursor to Switch0.

Click once on Switch0 and choose FastEthernet0/4 (actual port does not matter).

The link light for switch port FastEthernet0/4 will first appear as amber and will eventually change to green as
the Spanning Tree Protocol transitions the port to forwarding.

Civil Aviation Training College, India Page 13


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 7: Verifying Connectivity in Realtime Mode
Be sure you are in Realtime mode.

Select the Add Simple PDU tool which are used to ping devices.

Click once on PC0, then once on PC3.

The PDU Last Status should show as Successful.

Civil Aviation Training College, India Page 14


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Resetting the Network
At this point, we want to reset the network. Whenever you want to reset the network and begin the
simulation again, perform the following tasks:

Click Delete in the PDU area.

Now, select Power Cycle Devices and confirm the action.

Waiting for Spanning Tree Protocol (STP)


Note: Because Packet Tracer also simulates the Spanning Tree Protocol, at times, the switch may show
amber lights on its interfaces. You need to wait for the lights to turn green on the switches before they will
forward any Ethernet frames.

Civil Aviation Training College, India Page 15


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 8: Verifying Connectivity in Simulation Mode
Be sure you are in Simulation mode.

Deselect all filters (All/None) and select only ICMP.

2
Civil Aviation Training College, India Page 16
Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Select the Add Simple PDU tool used to ping devices.

Click once on PC0, then once on PC3.

Continue clicking Capture/Forward button until the ICMP ping is completed. You should see the ICMP
messages move between the hosts, hubs and switches. The PDU Last Status should show as Successful.
Click on Clear Event List if you do not want to look at the events or click Preview Previous Events, if you
do. For this exercise, it does not matter.

Civil Aviation Training College, India Page 17


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step 9: Saving the Topology
Perform the following steps to save the topology (uses .pkt file extension).

Opening Existing Topologies

Civil Aviation Training College, India Page 18


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Opening Existing PT Topologies

Civil Aviation Training College, India Page 19


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No. 2: - Switch & Router Configuration

Objective: The objective of this practical exercise is to configure basic settings


on a Cisco switch and Router.
.
NETWORK DIAGRAM:

Lab instructions:
A new switch or router purchased from Cisco contains no default configuration in
it. You need to configure the switch or router with setup mode using the setup mode
or from scratch using the command line interface (CLI) before connecting it in your
network environment. It is very important to know the basic Cisco switch or router
configuration commands to improve the performances and the security of your
internetwork.

This lab exercise will test your ability to configure basic settings on a cisco switch
and router.

Civil Aviation Training College, India Page 20


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Solution:-

Configure of Switch (SW1):


1. Configure Switch hostname.
Switch>en
Switch#config t
Switch(config)#hostname CATC
CATC(config)#

2. Configure the password for privileged mode access as "cisco"


CATC(config)#enable secret CNS

3. Configure CONSOLE access [...]


CATC(config)#line con 0
CATC(config-line)# password aai
CATC(config-line)# login

4. Configure TELNET access [...]


CATC(config)# line vty 0 15
CATC(config-line)# password dcn
CATC(config-line)# login

5. Configure the IP address of the switch as [Link]/8 and it's default


gateway IP ([Link]).

Note: This configuration is required when any host from different network
want to telnet to SW1.
CATC(config)# int vlan1

Civil Aviation Training College, India Page 21


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
CATC(config-if)# ip address [Link] [Link]

CATC(config)# ip default-gateway [Link]

Note: 1. Verify console protection from console PC

2. Verify telnet application from LAN PCs.

Router configuration:

1. Configure Router hostname :

Router >en
Router #config t
Router (config)#hostname CATC
CATC(config)#

2. Configure the password for privileged mode access as "cisco"


CATC(config)#enable secret 1234

3. Configure CONSOLE access [...]


CATC(config)#line con 0
CATC(config-line)# password 4567
CATC(config-line)# login
4. Configure TELNET access [...]
CATC(config)# line vty 0 15
CATC(config-line)# password 4321
CATC(config-line)# login

Civil Aviation Training College, India Page 22


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
5. Configure the IP address at the interface of the router:

CATC(config)#int f0/0
CATC(config-if)#ip add [Link] [Link]
CATC(config-if)#no shut
CATC(config)#int f0/1
CATC(config-if)#ip add [Link] [Link]
CATCconfig-if)#no shut

Note: 1. Verify console protection from console PC

2. Verify telnet application from network PCs.

3. Verify telnet application from different network PCs.

Civil Aviation Training College, India Page 23


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No3: Static Routing
Configure the following network by Static Routing.

Solution:
Configure Router (R1):
R1>en
R1#config t
R1(config)#int f0/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#no shut
R1(config)#int se2/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#no shut
R1(config)#ip route [Link] [Link] [Link]
R1(config)#ip route [Link] [Link] [Link]
R1(config)#ip route [Link] [Link] [Link]

Civil Aviation Training College, India Page 24


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Configure Router(R2):
R2>en
R2#config t
R2(config)#int se2/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#int f0/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#int se3/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#ip route [Link] [Link] [Link]
R2(config)#ip route [Link] [Link] [Link]

Configure Router (R3):


R3>en
R3#config t
R3(config)#int se2/0
R3(config-if)#ip add [Link] [Link]
R3(config-if)#no shut
R3(config)#int f0/0
R3(config-if)#ip add [Link] [Link]
R3(config-if)#no shut
R3(config)#ip route [Link] [Link] [Link]
R3(config)#ip route [Link] [Link] [Link]
R3(config)#ip route [Link] [Link] [Link]

Civil Aviation Training College, India Page 25


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No4: Dynamic Routing RIPV2
Configure the following network by Dynamic Routing RIPV2.

Solution:
Configure R1:
R1>en
R1#config t
R1(config)#int f0/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#no shut
R1(config)#int se2/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#no shut
R1(config)#router rip
R1(config-router)#network [Link]
R1(config-router)#network [Link]
R1(config-router)#ver 2
R1(config-router)#no auto-summary

Civil Aviation Training College, India Page 26


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Configure R2:
R2>en
R2#config t
R2(config)#int se2/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#int f0/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#int se3/0
R2(config-if)#ip add [Link] [Link]
R2(config-if)#no shut
R2(config)#router rip
R2(config-router)#network [Link]
R2(config-router)#network [Link]
R2(config-router)#network [Link]
R2(config-router)#ver 2
R2(config-router)#no auto-summary

Configure R3:
R3>en
R3#config t
R3(config)#int se2/0
R3(config-if)#ip add [Link] [Link]
R3(config-if)#no shut
R3(config)#int f0/0
R3(config-if)#ip add [Link] [Link]
R3(config-if)#no shut

Civil Aviation Training College, India Page 27


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
R3(config)#router rip
R3(config-router)#network [Link]
R3(config-router)#network [Link]
R3(config-router)#ver 2
R3(config-router)#no auto-summary

Civil Aviation Training College, India Page 28


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No 5: Configure the Inter VLAN communication using router.

R1

Configure CNS Switch:


Switch(config)#vlan 2
Switch(config-vlan)#name CNS
Switch(config)#vlan 3
Switch(config-vlan)#name HR
Switch(config)#Int f0
Switch(config-if)#switchport access vlan 2
Switch(config)#Int f1
Switch(config-if)#switchport access vlan 2
Switch(config)#Int f2
Switch(config-if)#switchport access vlan 2
Switch(config)#Int f3
Switch(config-if)#switchport mode trunk

Configure HR Switch:

Civil Aviation Training College, India Page 29


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Switch(config)#vlan 2
Switch(config-vlan)#name CNS
Switch(config)#vlan 3
Switch(config-vlan)#name HR
Switch(config)#Int f0
Switch(config-if)#switchport access vlan 3
Switch(config)#Int f1
Switch(config-if)#switchport access vlan 3
Switch(config)#Int f3
Switch(config-if)#switchport mode trunk
Switch(config)#Int f4
Switch(config-if)#switchport access vlan 2

Configure Router:
R1(config)#Int f0/0
R1(config-if)#no shut down
R1(config-if)#int f0/0.1
R1(config-subif)#encapsulation dot1q 2
R1(config-subif)#ip add [Link] [Link]
R1(config-if)#int f0/0.2
R1(config-subif)#encapsulation dot1q 3
R1(config-subif)#ip add [Link] [Link]

Civil Aviation Training College, India Page 30


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No 6: Configure the Inter VLAN communication using Layer-3 Switch.

Configuration of Switch:

Switch>
Switch#config t
Switch(config)#VLAN2
Switch(config-VLAN)#name CNS
Switch(config)#VLAN3
Switch(config-VLAN)#name HR
Switch(config)#Int f0/1
Switch(config-if)#switchport access vlan 2
Switch(config)#Int f0/2
Switch(config-if)#switchport access vlan 2
Switch(config)#Int f0/3
Switch(config-if)#switchport access vlan 3
Switch(config)#Int f0/4
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#int vlan2
Switch(config-if)#ip add [Link] [Link]
Switch(config-if)#no shut
Switch(config)#int vlan3
Switch(config-if)#ip add [Link] [Link]

Civil Aviation Training College, India Page 31


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#ip routing

Exercise No 7: Network Analyzer tool.


Task: Familiarization of Wireshark network analyzer tools by wireshark application

Civil Aviation Training College, India Page 32


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No 8: Configure HSRP. All IPs are considered classful.

VIP VIP

Step1: Configure IP Address to all the interfaces of the router and host.
Step2: Configure Routing by RIPV2.
Step3: Configure HSRP
Router R1 Configuration:
R1(Config)#int f0/0
R1(config-if)#standby 7 ip [Link]
R1(config-if)# standby 7 preempt
R1(config-if)# standby 7 priority 100
Router R2 Configuration:
R2(Config)#int f0/0
R2(config-if)# standby 7 ip [Link]
R2(config-if)# standby 7 preempt
R2(config-if)# standby 7 priority 105
Router R3 Configuration:
R3(Config)#int f0/0
R3(config-if)#standby 7 ip [Link]
R3(config-if)# standby 7 preempt
R3(config-if)# standby 7 priority 100

Router R4 Configuration:
R2(Config)#int f0/0
R2(config-if)# standby 7 ip [Link]

Civil Aviation Training College, India Page 33


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
R2(config-if)# standby 7 preempt
R2(config-if)# standby 7 priority 105

Civil Aviation Training College, India Page 34


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No 9: Configuration of DHCP server in a network.

OBJECTIVE: Connect Networking devices as per the diagram.


Change the DHCP setting to a specific network range
Configure the clients to obtain an IP address via DHCP

Step1: Click on Server.


Step2: Click on Config.

Civil Aviation Training College, India Page 35


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Step3: Click on DHCP Application.

Step4:
1. On DHCP Server
2. Pool Name: CATC
3. Default gateway:[Link] (As per client site)
4. Start IP Address:[Link]
5. Subnet Mask:[Link]
6. Minimum Number of user:512
7. Click Add and Save.

Civil Aviation Training College, India Page 36


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________

Configure Router R1:


At the router Interface f0/0 given following
command
R1(config-if)#ip helper-address [Link]

.Verify the IP configuration of each connected PC.

Civil Aviation Training College, India Page 37


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Exercise No 10: Creating a network to understand the HTTP(Web) server and DNS
service operation.

[Link]

[Link]

F0/1
[Link]

Civil Aviation Training College, India Page 38


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
CONFIGURATION FOR LOCAL DNS:
Step1: Select DNS service
Step2: Select on DNS service
Step3: Select Type and choose NS Record
Step4: Name:com Address:root, then Add and Save
Step5: Select Type and choose A Record.
Step6: Name:root Address:50.0.02 , then Add and Save

Civil Aviation Training College, India Page 39


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
CONFIGURATION FOR ROOT DNS:
Step1: Select DNS service
Step2: Select on DNS service
Step3: Select Type and choose A Record.
Step4: Name: [Link] Address: [Link] , then Add and Save

CONFIGURATION FOR ROOT DNS:

Civil Aviation Training College, India Page 40


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
TEST THE CONFIGURATION: Open the web browser in PC [Link] and type the following address in
address bar. [Link]. See the result and analyze the use of DNS service.

Civil Aviation Training College, India Page 41


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Configure Link aggregation protocol (PAgP)

Switch0 configuration:

Switch0>enable
Switch0#configure terminal
switch0(config)#int range fa0/3-4
switch0(config-if-range)#channel-group 1 mode desirable
switch0(config-if-range)#exit
switch0(config)#interface port-channel 1
switch0(config-if)#switchport mode trunk

Switch1 configuration:

Switch1>enable
Switch1#configure terminal
switch1(config)#int range fa0/3-4
switch1(config-if-range)#channel-group 1 mode desirable
switch1(config-if-range)#exit
switch1(config)#interface port-channel 1
switch1(config-if)#switchport mode trunk

Civil Aviation Training College, India Page 42


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Group-B
LINUX

Task 1:

a) Make two directory named under /home


b) Make a file DCN1 under/ home/< dir>/
c) Check the file permission & change its permission of the owner with 755
d) Copy the file under /tmp & move the file in /home/<dir2>.
e) Change the name of the file DCN1 to DCN2.

STEPS OF Task 1:

a) Make two directory named under /home

# cd /home //To change the directory to home directory.


# mkdir dir1 dir2 //To make two directories
b) Make a file DCN1 under/ home/< dir>/

# cd /home/dir1 //To change directory.


# touch DCN1 //To create a file named DCN1
c) Check the file permission & change its permission of the owner with 755

# cd /home/dir1 //To change directory.


# ls -latr //To list the files.
# chmod 755 DCN1 //To change the file permission.
d) Copy the file under /tmp & move the file in /home/<dir2>.

# cd /home/dir1 // To change directory.


# cp -p DCN1 /tmp //To copy DCN1 file to tmp directory.
#mv DCN1 /home/dir2 //To move DCN1 file to tmp directory.
e) Change the name of the file DCN1 to DCN2

# cd /home/dir2 // To change directory.


# mv DCN1 DCN2 //To change the file name.

Civil Aviation Training College, India Page 43


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________

Task 2:

a) Create a directory under /home


b) Create three files under /home/<dir>
c) Check the size of the directory
d) Make the tar file of the directory & zip it.
e) Copy the zip file to /tmp dir
f) Unzip & extract the contents.
g) Remove the tar file from /tmp.

STEPS OF Task 2:

a) Create a directory under your home directory (e.g :/ home/ New User)

#cd /home /New User //To change the directory.


#mkdir dir1 //To make a directory under home directory.
b) Create three files under /home/<dir>

#cd /home/New User /dir1 //To change the directory


#touch file1 file2 file3 //To create three files under /home/New User /dir1 directory
c) Check the size of the directory

#cd /home/New User /dir1 //To change the directory


#du -h //To check the size of directory. ‘-h’ for human readable format.
d) Make the tar file of the directory & zip it.

#cd /home /New User //To change the directory.


#tar -zcvf [Link] dir1 //To tar and zip.

e) Copy the zip file to /tmp directory

Go to home directory and execute the following commands:


#cp -p [Link] /tmp //To copy the tar and zip file to /tmp directory.
f) Unzip & extract the contents.

#cd /tmp //To change the directory.


#tar -zxvf [Link] //To unzip and untar the tar and zip file.
g) Remove the tar file from /tmp.

Civil Aviation Training College, India Page 44


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
#rm -f [Link] //To remove the file.

Task 3:

Use date command to set date to 07:30 Hrs 10/03/2024.


Using date command format output as
a) ddmmyyyy
b) mmddyyyy
c) dd/mm/yyyy
d) dd/mm/yy

STEPS OF Task 3:
Use date command to set date to 07:30 Hrs 10/03/2024.
Using date command format output as

# date //To check the current date and time


a) ddmmyyyy

#date “+%d%m%Y” //To view the date in ddmmyyyy format.


b) mmddyyyy

#date “+%m%d%Y” //To view the date in mmddyyyy format.


c) dd/mm/yyyy

#date “+%d/%m%Y” //To view the date in dd/mm/yyyy format.


d) dd/mm/yy

#date “+%d/%m/%y” //To view the date in dd/mm/yy format.

Civil Aviation Training College, India Page 45


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Task 4:

Use find command to search a file in a given path:


a) By type
b) By size
c) By name

STEPS OF Task 4:
Use find command to search a file in a given path:
a) By type

#find / -type f -print //To find the files inside ‘/’ directory. ‘f’ means to search by file type.
Similarly, ‘d’ means directory and ‘l’ means link file.
b) By size

#find /home -size +10c //To find files and directories of size greater than 10 bytes inside
home directory.
#find /home -size +1G // To find files and directories of size greater than 1 Gb inside home
directory.
c) By name

#find / -name file1 //To find a file named ‘file1’ inside ‘/’ directory.

Civil Aviation Training College, India Page 46


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________

Task 5:

Use grep, tail, and head command to:

a) Search a string from a given file[s]/directory


b) Show first 15 lines of the file
c) Show last 20 files of the file

STEPS OF Task 5:
Use grep, tail, and head command to:

a) Search a string from a given file[s]/directory

#ls -l|grep ab //To list all files having ‘ab’ pattern.


#cat file1|grep the* //To search for ‘the’ pattern inside file1
b) Show first 15 lines of the file

#head -n 15 filename //To show first 15 lines of a file.


c) Show last 20 files of the file

#tail -n 20 filename //To list last 20 lines of a file.

Task 6:

a) Create a directory with the name CATC1 & CATC2 under/ home
b) Make a file with the name ‘file1’ under under /home/CATC1
c) Write some contents under the file
d) Insert a USB drive in the system
e) Mount it under/mnt
f) Copy ‘file1’ file into pendrive & restore this file in /CATC2
g) Remove the pen drive properly

Civil Aviation Training College, India Page 47


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
STEPS OF Task 6:

a) Create a directory with the name CATC1 & CATC2 under/ home

#mkdir /home/CATC1 /home/CATC2 //To make two directories inside home directiory.
b) Make a file with the name ‘file1’ under under /home/CATC1

#cd /home/CATC1 //To change the directory.


#touch file1 //To create a file named ‘file1’.
c) Write some contents under the file

#vi file1 //To write some content in ‘file1’ using vi editor.


d) Insert a USB drive in the system.

#fdisk -l //To list the device partition. (output will be like /dev/sdb1 ********)
e) Mount it under/mnt.

#mount /dev/sdb1 /mnt //To mount the external device partition to /mnt directory.
f) Copy ‘file1’ file into pendrive & restore this file in /CATC2

#cp -p /home/CATC1/file1 /mnt //To copy ‘file1’ from CATC1 directory to /mnt directory i.e.
the pendrive..
#cd /mnt
#cp -p file1 /home/CATC2 //To copy the file from pendrive. to CATC2 directory.
g) Remove the pen drive properly

#umount /mnt //To unmount the pendrive.

Task 7:

a) Create a user with the name cns & password root1


b) Create a groupuser with the name naa
c) Add cns into naa
d) Log in with this user cns with the above-mentioned password.
e) Create a directory with the name CATC4 under /home/cns
f) Create a file with the name DCN3 under /home/cns/CATC4/ with some contents.
g) Check the feature (creation/modification date and time) of the file with ls –al.
h) Now change the permission for group user as r—for naa (group user), Owner (CNS) has
permission rwx & others have r--

Civil Aviation Training College, India Page 48


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
STEPS OF Task 7:

a) Create a user with the name cns & password root1

#useradd cns //To create a user with name as cns.


#id cns //To check if cns user created or not
#passwd cns //To set the password of ‘cns’ user. Enter password as root1 for cns user in
prompt.
b) Create a groupuser with the name naa

#groupadd naa //To create a group with name ‘naa’.


c) Add cns into naa

#usermod -G naa cns //To add cns user in ‘naa’ group.


d) Log in with this user cns with the above-mentioned password.

#su – cns //To switch user to ‘cns’ user. Enter the password root1.
e) Create a directory with the name CATC4 under /home/cns

[cns@localhost ~]$mkdir /home/cns /CATC4 //To create a directory named ‘CATC4’ under
/home/cns directory of cns user.
f) Create a file with the name DCN3 under /home/cns/CATC4/ with some contents.

#[cns@localhost ~]$touch /home/cns/CATC4/DCN3 //To make a file named ‘DCN3’ under


/home/cns/CATC4 directory of cns user.
g) Check the feature (creation/modification date and time) of the file with ls –al.

#[cns@localhost ~]$ cd /home/cns


#[cns@localhost ~]$ls -al //To list all the files inside the directory
h) Now change the permission for group user as r—for naa (group user), Owner (CNS) has
permission rwx & others have r—

#[cns@localhost ~]$chmod 744 /home/cns/CATC4 //To set the given permission for the
file[CATC4].

Task 8: Refer section “vi editor” for this task.

a) Create a file named file2 by vi command and write some text in the file
b) Edit the document by inserting & deleting a line, words, & characters

Civil Aviation Training College, India Page 49


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
c) Copy another line & undo it
d) Save the file
e) Continue with the same document & put additional information on the same document
f) Now save it & quit

STEPS OF Task 8: Refer section “vi editor” for this task.

a) Create a file named file2 by vi command and write some text in the file.
#vi /home/file2 //To create file2 under home directory. Use vi commands to write some text
in file.
b) Edit the document by inserting & deleting a line,words & characters
c) Copy another line & undo it
d) Save the file
e) Continue with the same document & put additional information on the same document
f) Now save it & quit.

Task 9:

Create schedule tasks as follows:


a) Create a dir under /home with name CATC5 and file with some contents with name file4 under
/home/CATC5/
b) Create a program to take a copy of file4 as tar and zipped file with name as backup_file4.[Link]
and to move file4 under /tmp.
c) Create a program to execute the above task mentioned in point (b) daily at 04:30 IST.

STEPS OF Task 9:

Create schedule tasks as follows:


a) Create a dir under /home with name CATC5 and file with some contents with name file4
under /home/CATC5/

#mkdir /home/CATC5 //To make a directory ‘CATC5’ under home directory.

Civil Aviation Training College, India Page 50


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
#cd /home/CATC5 //To change directory to CATC5
#vi file4 //To create and add some content in file4 using vi editor.
b) Create a program to take a copy of file4 as tar and zipped file with name as
backup_file4.[Link] and to move file4 under /tmp.

#touch /home/script //To create a file named script under home directory.
#chmod 777 /home/script //To change the permission of script file so, that it becomes an
executable file.
#vi /home/script //To open script file with vi editor.
Write down following content in the script file:
cd /home/CATC5
tar -zcvf backup_file4.[Link] file4
mv file4 /tmp

c) Create a program to execute the above task mentioned in point (b) daily at 04:30 IST.

#crontab -l //To list all the scheduled cron jobs.


#crontab -e //To edit the cron job. After execution of this command a vi-editor window will
open and the following line:
30 04 * * * /home/script

Task 10:

Assign an IP=[Link] to the eth0 port of a Linux machine.

STEPS OF Task 10:

Assign an IP=[Link] to the eth0 port of a Linux machine.

#cd /etc/sysconfig/network-scripts //To go to network-scripts directory.


#ls //To list the files in this directory.
#vi ifcfg-eth0 //To edit the file ‘ifcfg-eth0’ in the network-scripts directory for assigning the IP to
eth0 port. Edit the IP address field of ifcfg-eth0 with vi and save.
#ifdown eth0 //To shutdown eth0 port.
#ifup eth0 //To up the eth0 interface.
#ifconfig -a //To check the IP address of all the ports.
Note: We executed ifdown and ifup commands above to make the IP change effective.

Civil Aviation Training College, India Page 51


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Task 11:

How to capture the data on eth0 port of a Linux machine.

STEPS OF Task 11:

How to capture the data on eth0 port of a Linux machine.

#tcpdump -i eth0 //To capture the data on eth0 port.

Civil Aviation Training College, India Page 52


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Annexure-A

Practice Exercise(Home Assignment)

Task1.

[Link]
and
[Link]

VLAN 2

[Link] [Link]
VLAN 3

Civil Aviation Training College, India Page 53


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________

Task2. Configure Network

Civil Aviation Training College, India Page 54


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Task3. Configure Network:

Above network configure as a parallel network not Configure HSRP or VRRP


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Task4. Configure Network:

Following practical perform on Cisco Packet tracer ver 7 or 8


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Annexure-A

Configuration to bring Radar data from source station to receiving station Example

Radar data from Station A need to be sent to Station B through FTI IP Circuit.

Configuration of Site A Router


Router_A>ena
Router_A#
Router_A#conf t
Router_A(config)#ip multicast-routing

Router_A(config)#int fa0/1
Router_A(config-if)#description Radar_In
Router_A(config-if)#ip address [Link] [Link]
Router_A(config-if)#ip pim sparse-mode
Router_A(config-if)#ip igmp static-group [Link]
Router_A(config-if)#ip pim neighbor-filter 11
Router_A(config-if)#exit

Router_A(config)#int fa0/0
Router_A(config-if)#description Radar WAN FTI to Site B
Router_A(config-if)#ip address [Link] [Link]

Civil Aviation Training College, India Page 57


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Router_A(config-if)#ip pim sparse-mode
Router_A(config-if)#ip igmp static-group [Link]
Router_A(config-if)#exit

Router_A(config)#interface loopback1
Router_A(config-if)#description RP_for_Radar
Router_A(config-if)# ip address [Link] [Link]
Router_A(config-if)# ip pim sparse-mode
Router_A(config-if)#exit

Router_A(config)#ip pim rp-address [Link] site_A_radar_rp override

Router_A(config)#ip access-list standard 11


Router(config-std-nacl)# deny any
Router(config-std-nacl)#exit

Router_A(config)#ip access-list standard site_A_radar_rp


Router_A(config-std-nacl)#permit host [Link]
Router_A(config-std-nacl)#exit
Router_A(config)#exit
Router_A#wr

Configuration of Site B Router


Router_B>ena
Router_B#
Router_B#conf t
Router_B(config)#ip multicast-routing

Router_B(config)#int fa0/1
Router_B(config-if)#description Site_A Radar to Auto_LAN
Router_B(config-if)#ip address [Link] [Link]
Router_B(config-if)#ip pim sparse-mode

Civil Aviation Training College, India Page 58


Module-3 Practical Exercise
Data Communication Networking, and OS Linux
______________________________
Router_B(config-if)#ip igmp version 2
Router_B(config-if)#ip igmp static-group [Link]
Router_B(config-if)#exit

Router_B(config)#int fa0/0
Router_B(config-if)#description Radar WAN FTI from Site A
Router_B(config-if)#ip address [Link] [Link]
Router_B(config-if)#ip pim sparse-mode
Router_B(config-if)#ip igmp static-group [Link]
Router_B(config-if)#exit

Router_B(config)#ip pim rp-address [Link] site_A_radar_rp override

Router_B(config)#ip access-list standard site_A_radar_rp


Router_B(config-std-nacl)#permit host [Link]
Router_B(config-std-nacl)#exit
Router_B(config)#ip route [Link] [Link] [Link]
Router_B(config)#exit
Router_B#wr

Civil Aviation Training College, India Page 59


ATSEP CBTA
NON-PLI
DATA
COMMUNICATION
NETWORKING AND OS
LINUX

Contents

 Introduction to Network emulation software (CISCO Packet


tracer)
 Basic switch and Router configuration
 IP Routing
 VLAN
 Introduction to Network emulation software (GNS3 )
 Multicasting demo
 Network Analyzer tool
 VRRP
 Switch port security
 Access List
 Firewall
 NAT
 LINUX Commands Exercise
 Annexure-A

AAI/ANS/CNS/CATC/2024/NON-PLI
सी.ए.टी.सी., प्रयागराज TRNG/DATA COMMUNICATION
NETWORKING/OS LINUX/MOD
3/Ver.1.0
C.A.T.C., PRAYAGRAJ

You might also like