Lab WS
Lab WS
Information Technology
TELECOM NETWORK MANAGMENT: CSIWZG582
Laboratory Work Sheet – I
1. Lab Exercise:
Open the linux terminal and execute the following basic networking
tools and utilities. Make your observations and record the output of
each command.
1. ifconfig
Observe the details that are displayed and record
o Number of interfaces that are shown.
o IP address and MAC address of the respective interfaces.
o Other statistical information.
o What is Subnet Mask of each interface and its significance.
Output:
IP Address and MAC Address of the Respective
Interfaces
ens5:
o IP Address: 172.31.6.245
o MAC Address: 0a:7b:c0:f4:54:a3
lo (Loopback):
o IP Address: 127.0.0.1
o MAC Address: Not applicable (loopback interface does not
use MAC addresses).
o RX packets: 22,760
o RX bytes: 31,603,089 (31.6 MB)
o TX packets: 5,344
o TX bytes: 1,409,015 (1.4 MB)
o RX errors: 0
o TX errors: 0
lo (Loopback):
o RX packets: 353
o RX bytes: 29,963 (29.9 KB)
o TX packets: 353
o TX bytes: 29,963 (29.9 KB)
o RX errors: 0
o TX errors: 0
Output:
I tried to ping IP address of the en5 interface of the machine
which is 172.31.6.245, If we use the command ping 172.31.6.245
in our Linux terminal, we will be sending ICMP Echo Request
packets to the IP address of the node itself, which is the same IP
address assigned to the ens5 interface of your machine.
The Ping utility is a command-line tool used to test the reachability of
a host on an Internet Protocol (IP) network. It operates by sending
Internet Control Message Protocol (ICMP) Echo Request messages to
the target host and waiting for Echo Reply.
Observations:
Bytes Sent:
o This shows the round-trip time from the sender to the receiver
and back. The response times here are quite low, indicating a
fast local connection.
When pinging a valid address (like your own IP), you receive replies
indicating the connection is operational, along with timing and TTL
data.
When pinging an invalid IP or a non-existent domain, We don’t see
any outcome on the terminal as shown in the below screenshot the
terminal does not move ahead and while pining in non existent
domain it says ‘ping: nonexistent.domain: Name or service not
known’.
> IP :
>domain:
- Server Information:
This indicates the DNS server used for the query. Here, it is a local
resolver with the address 127.0.0.53.
- Non-authoritative Answer:
We can see Non-authoritative answer here, which means the
information was obtained from a DNS server's cache rather than
directly from the authoritative DNS server for the domain.
Final A record:
This describes the final resolved name and its associated type A
record, which points to the IP address 23.37.86.46. This specifies
that the domain ultimately resolves to an IPv4 address.
4. dig www.abc.com (or any other website)
o What does “dig” stand for and why it being used in
networking?
o Make a query for one website and record the output of the
command such as IP addresses, query time etc.
o Observe for any other additional details.
Output:
- Additional details:
* Header Information:
Flags:
OPT PSEUDOSECTION:
Contains details regarding the extension mechanisms for DNS (EDNS). It includes:
o version: 0 referring to the EDNS version being used.
o udp: 65494, indicating the maximum UDP packet size for this query.
Question Section:
It shows the question asked, specifically looking for the A record of www.dell.com.
Answer Section:
It details the CNAME chain leading to the final A record, providing insight into how
DNS resolves the requested domain name.
Server Information:
The DNS server that answered the query was 127.0.0.53 (typically a local resolver
on the machine).
Timestamp:
The query was executed on: Sat Oct 26 17:45:03 UTC 2024.
Message Size:
The total size of the response message is 230 bytes, which gives an indication of
the overhead associated with DNS responses.
1. CNAME Chains:
2. Final A Record:
3. IP Address Information:
6. netstat
o Observe the details displayed like the list of open
connections.
Output:
The output from the netstat command provides a snapshot of active
internet connections and UNIX domain sockets on a Linux terminal.
Connections:
i. First Connection:
Protocol: TCP
Local Address: ip-172-31-6-245.ap-:679
Foreign Address: ip-172-31-7-195.ap-:nfs
State: ESTABLISHED
Output:
The command netstat -i focuses on network interfaces, providing relevant
interface statistics rather than detailed connection information.
Observed Connections:
1. TCP Connection:
o Local Address: ip-172-31-6-245.ap-:679
o Foreign Address: ip-172-31-7-195.ap-:nfs
o State: ESTABLISHED
o This indicates that a TCP connection to an NFS (Network File
System) share is active.
2. TCP6 Connection:
o Local Address: ip-172-31:ms-wbt-server
o Foreign Address: ec2-3-7-172-124.a:40520
o State: ESTABLISHED
o This suggests communication with a service over IPv6.
Output:
Observation:
Observations:
The observed entries indicate the local network hosts and their
corresponding MAC addresses, facilitating direct packet delivery in
the network.