Uploaded by yesagarsagar

COMPUTER NETWORK LAB DA 2

advertisement
School of Information Technology and Engineering
Fall Semester 2021-22
M.Tech (Software Engineering)
SWE2002 Computer Networks Lab
NAME: GOVIND SAGAR
REGISTRATION NO: 20MIS0151
FACAULTY: JAYALAKSHMI P
1. Study and test the functionality of basic networking commands in the laboratory.
A.) PING
i) What is the IP address of www.vit.ac.in?
→ [136.233.9.13]
ii) Check whether TCP/IP is properly installed and functioning in your system.
➔ YES TCP/IP IS PROPERLY INSTALLED IN MY PC AS , I AM GETTING PACKETS SEND AND RECIVED
PROPERLY .
iii) Indicate what percentage of packets sent resulted in a successful response. For the packets from
which you received a response, write down the minimum, average and maximum round trip times in
milliseconds.
➔ Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), 100 % successful response.
➔ Minimum = 106ms, Maximum = 120ms, Average = 113ms
iv) Increase or Decrease the Time Interval between Packets. Write the response.
➔
➔
➔
➔
➔
➔
➔
➔
➔
➔
➔
C:\Windows\system32>ping -w 120 vit.ac.in
Pinging vit.ac.in [136.233.9.13] with 32 bytes of data:
Reply from 136.233.9.13: bytes=32 time=107ms TTL=49
Reply from 136.233.9.13: bytes=32 time=97ms TTL=49
Reply from 136.233.9.13: bytes=32 time=107ms TTL=49
Request timed out.
Ping statistics for 136.233.9.13:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
➔ Minimum = 97ms, Maximum = 107ms, Average = 103ms
v) Send 6 packets .Indicate what percentage of the packets resulted in a successful response.
→ C:\Windows\system32>PING -n 7 www.vit.ac.in
Pinging vit.ac.in [136.233.9.13] with 32 bytes of data:
Reply from 136.233.9.13: bytes=32 time=111ms TTL=48
Reply from 136.233.9.13: bytes=32 time=102ms TTL=48
Reply from 136.233.9.13: bytes=32 time=97ms TTL=48
Reply from 136.233.9.13: bytes=32 time=113ms TTL=48
Reply from 136.233.9.13: bytes=32 time=102ms TTL=48
Reply from 136.233.9.13: bytes=32 time=105ms TTL=48
Reply from 136.233.9.13: bytes=32 time=110ms TTL=48
Ping statistics for 136.233.9.13:
Packets: Sent = 7, Received = 7, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 97ms, Maximum = 113ms, Average = 105ms
vi) Change Ping Packet Size of 512, 1024 bytes of data. Write the response
A) PING WITH 512 BYTES:
C:\Users\yesag>ping -l 512 www.vit.ac.in
Pinging vit.ac.in [136.233.9.13] with 512 bytes of data:
Reply from 136.233.9.13: bytes=512 time=175ms TTL=49
Reply from 136.233.9.13: bytes=512 time=167ms TTL=49
Reply from 136.233.9.13: bytes=512 time=375ms TTL=49
Reply from 136.233.9.13: bytes=512 time=179ms TTL=49
Ping statistics for 136.233.9.13:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 167ms, Maximum = 375ms, Average = 224ms
B) PING WITH 1024 BYTES:
C:\Users\yesag>ping -l 1024 www.vit.ac.in
Pinging vit.ac.in [136.233.9.13] with 1024 bytes of data:
Reply from 136.233.9.13: bytes=1024 time=221ms TTL=49
Reply from 136.233.9.13: bytes=1024 time=162ms TTL=49
Reply from 136.233.9.13: bytes=1024 time=247ms TTL=49
Reply from 136.233.9.13: bytes=1024 time=149ms TTL=49
Ping statistics for 136.233.9.13:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 149ms, Maximum = 247ms, Average = 194ms
vii) For some of the hosts, you may not have received any responses for the packets you have sent.
What are the reasons for not getting a response?
FOR SOME HOST WE MAY NOT RECEIVE ANY RESPONSE DUE TO INAVAILABILITY(NOT ) OF THAT
HOST OR THAT HOST MAY NOT PRESENT.
FOR EXAMPLE:
C:\Users\yesag>PING www.20mis0151.ac.in
Ping request could not find host www.20mis0151.ac.in. Please check the name and try again.
B.) IPCONFIG
i) What is the MAC address of the network interface card of your system?
24-4B-FE-BC-3C-9C
ii) What is the IP address of your system?
192.168.103.211
** iii) Find out all the network interfaces connected to your system
C:\Users\yesag>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f564:aa23:811d:21c1%9
IPv4 Address. . . . . . . . . . . : 192.168.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
iv) Display the Network Settings of Specific Interface
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz
Physical Address. . . . . . . . . : AC-12-03-EF-4B-D8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::f564:aa23:811d:21c1%9(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 18 August 2021 15:05:43
Lease Expires . . . . . . . . . . : 19 August 2021 16:52:14
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 95162883
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-79-53-B0-24-4B-FE-BC-3C-9C
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
C.) HOSTNAME
i) Find the name of your system?
GOVINSAGA
ii) What is the significance of the name?
THAT MY NAME ACTUALLY, GOVIND SAGAR. I REMOVED LAST CHARACTERS AND JOINED THEM AS
MY PC NAME.
FROM MY PC NAME ACTUALLY MY HOST NAME COMES.
D.) NETSTAT
i) List Various Listening Ports.
C:\Users\yesag>netstat -a
Active Connections
Proto Local Address
TCP 0.0.0.0:135
Foreign Address
GOVINSAGA:0
State
LISTENING
TCP 0.0.0.0:445
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:808
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:1042
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:1043
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:2343
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:3306
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:3580
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:5040
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9001
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9012
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9013
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:12177
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:33060
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49664
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49665
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49666
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49667
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49668
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49703
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49704
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49705
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49706
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:59110
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:59111
GOVINSAGA:0
LISTENING
ii) List TCP Ports connections
C:\Users\yesag>netstat -q
Active Connections
Proto Local Address
TCP 0.0.0.0:135
Foreign Address
GOVINSAGA:0
State
LISTENING
TCP 0.0.0.0:445
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:808
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:1042
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:1043
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:2343
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:3306
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:3580
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:5040
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9001
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9012
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:9013
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:12177
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:33060
GOVINSAGA:0
LISTENING
TCP 0.0.0.0:49664
GOVINSAGA:0
LISTENING
TCP 127.0.0.1:49685
GOVINSAGA:49690
ESTABLISHED
TCP 127.0.0.1:49699
GOVINSAGA:49700
ESTABLISHED
TCP 127.0.0.1:49700
GOVINSAGA:49699
ESTABLISHED
TCP 127.0.0.1:49701
GOVINSAGA:49702
ESTABLISHED
TCP 127.0.0.1:49702
GOVINSAGA:49701
ESTABLISHED
TCP 127.0.0.1:49716
GOVINSAGA:49715
ESTABLISHED
TCP 127.0.0.1:49717
GOVINSAGA:65001
ESTABLISHED
TCP 127.0.0.1:49718
GOVINSAGA:1043
ESTABLISHED
TCP 127.0.0.1:49720
GOVINSAGA:9012
ESTABLISHED
TCP 127.0.0.1:49721
GOVINSAGA:0
TCP 127.0.0.1:49721
GOVINSAGA:63502
TCP 127.0.0.1:54787
GOVINSAGA:0
TCP 127.0.0.1:63502
GOVINSAGA:49721
TCP 127.0.0.1:65001
GOVINSAGA:0
TCP 127.0.0.1:65001
GOVINSAGA:49717
TCP 192.168.153.211:139 GOVINSAGA:0
LISTENING
ESTABLISHED
LISTENING
ESTABLISHED
LISTENING
ESTABLISHED
LISTENING
TCP 192.168.153.211:49410 20.198.162.76:https ESTABLISHED
TCP 192.168.153.211:50112 104.17.210.204:https ESTABLISHED
TCP 192.168.153.211:50139 151.101.154.137:https ESTABLISHED
TCP 192.168.153.211:50140 20.44.229.112:https TIME_WAIT
TCP 192.168.153.211:50180 ionos:https
TCP 192.168.153.211:60498 t-bs:https
ESTABLISHED
ESTABLISHED
TCP 192.168.153.211:60499 20.44.229.112:https ESTABLISHED
TCP 192.168.153.211:60501 a-0001:https
ESTABLISHED
TCP 192.168.153.211:60502 a-0001:https
FIN_WAIT_1
TCP 192.168.153.211:60514 13.107.6.254:https
FIN_WAIT_1
TCP 192.168.153.211:60515 102.133.79.249:https ESTABLISHED
TCP 192.168.153.211:61547 ce1:https
ESTABLISHED
TCP 192.168.153.211:61592 172.67.73.70:https
ESTABLISHED
TCP 192.168.153.211:63756 del11s10-in-f16:https ESTABLISHED
TCP 0.0.0.0:49410
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49673
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49690
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49694
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49695
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49696
GOVINSAGA:0
BOUND
TCP 0.0.0.0:49698
GOVINSAGA:0
BOUND
iii) List UDP Ports connections
C:\Users\yesag>netstat -q
UDP 0.0.0.0:500
*:*
UDP 0.0.0.0:2343
*:*
UDP 0.0.0.0:4500
*:*
UDP 0.0.0.0:5000
*:*
UDP 0.0.0.0:5001
*:*
UDP 0.0.0.0:5050
*:*
UDP 0.0.0.0:5353
*:*
UDP 0.0.0.0:5353
*:*
UDP 0.0.0.0:5353
*:*
UDP 0.0.0.0:5355
*:*
UDP 0.0.0.0:6000
*:*
UDP 0.0.0.0:6001
*:*
UDP 0.0.0.0:12177
*:*
UDP 0.0.0.0:12177
*:*
UDP 0.0.0.0:12177
*:*
UDP 0.0.0.0:49664
*:*
UDP 0.0.0.0:49668
*:*
UDP 127.0.0.1:1900
*:*
UDP 127.0.0.1:10010
*:*
UDP 127.0.0.1:49666
*:*
UDP 127.0.0.1:49667
*:*
UDP 127.0.0.1:54303
*:*
UDP 192.168.153.211:137 *:*
UDP 192.168.153.211:138 *:*
UDP 192.168.153.211:1900 *:*
UDP 192.168.153.211:5353 *:*
UDP 192.168.153.211:5353 *:*
UDP 192.168.153.211:54302 *:*
UDP [::]:500
*:*
UDP [::]:4500
*:*
UDP [::]:5353
*:*
UDP [::]:5353
*:*
UDP [::]:5355
*:*
UDP [::]:12177
*:*
UDP [::]:12177
*:*
UDP [::]:12177
*:*
UDP [::]:12177
*:*
UDP [::]:49665
*:*
UDP [::]:49669
*:*
UDP [::1]:1900
*:*
UDP [::1]:5353
*:*
UDP [::1]:5353
*:*
UDP [::1]:54301
*:*
UDP [fe80::f564:aa23:811d:21c1%9]:1900 *:*
UDP [fe80::f564:aa23:811d:21c1%9]:54300 *:*
iv) List all the LISTENING Connections
C:\Users\yesag>netstat -an
Active Connections
Proto Local Address
Foreign Address
State
TCP 0.0.0.0:135
0.0.0.0:0
LISTENING
TCP 0.0.0.0:445
0.0.0.0:0
LISTENING
TCP 0.0.0.0:808
0.0.0.0:0
LISTENING
TCP 0.0.0.0:1042
0.0.0.0:0
LISTENING
TCP 0.0.0.0:1043
0.0.0.0:0
LISTENING
TCP 0.0.0.0:49704
0.0.0.0:0
LISTENING
TCP 0.0.0.0:49705
0.0.0.0:0
LISTENING
TCP 0.0.0.0:49706
0.0.0.0:0
LISTENING
TCP 0.0.0.0:59110
0.0.0.0:0
LISTENING
TCP 0.0.0.0:59111
0.0.0.0:0
LISTENING
TCP 127.0.0.1:1043
127.0.0.1:49708
ESTABLISHED
TCP 127.0.0.1:1043
127.0.0.1:49718
ESTABLISHED
TCP 127.0.0.1:7777
0.0.0.0:0
TCP 127.0.0.1:9012
127.0.0.1:49720
TCP 127.0.0.1:9487
0.0.0.0:0
TCP 127.0.0.1:9487
127.0.0.1:49707
TCP 127.0.0.1:13010
0.0.0.0:0
LISTENING
TCP 127.0.0.1:13030
0.0.0.0:0
LISTENING
TCP 127.0.0.1:13031
0.0.0.0:0
LISTENING
TCP 127.0.0.1:49674
0.0.0.0:0
LISTENING
LISTENING
ESTABLISHED
LISTENING
ESTABLISHED
TCP 127.0.0.1:49685
0.0.0.0:0
TCP 127.0.0.1:49685
127.0.0.1:49690
ESTABLISHED
TCP 127.0.0.1:49685
127.0.0.1:49694
ESTABLISHED
TCP 127.0.0.1:49685
127.0.0.1:49695
ESTABLISHED
v) Find the statistics of all protocols.
C:\Users\yesag>netstat -s
IPv4 Statistics
Packets Received
= 15748
Received Header Errors
=0
Received Address Errors
=0
Datagrams Forwarded
=0
Unknown Protocols Received
=0
Received Packets Discarded
= 305
Received Packets Delivered
= 19849
Output Requests
= 17637
Routing Discards
=0
Discarded Output Packets
= 34
Output Packet No Route
= 12
Reassembly Required
=0
Reassembly Successful
=0
Reassembly Failures
=0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created
=0
IPv6 Statistics
Packets Received
= 12206
LISTENING
Received Header Errors
=0
Received Address Errors
=0
Datagrams Forwarded
=0
Unknown Protocols Received
=0
Received Packets Discarded
=3
Received Packets Delivered
= 12978
Output Requests
= 10380
Routing Discards
=0
Discarded Output Packets
= 25
Output Packet No Route
=7
Reassembly Required
=0
Reassembly Successful
=0
Reassembly Failures
=0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created
=0
ICMPv4 Statistics
Received Sent
Messages
Errors
294
311
0
0
Destination Unreachable 282
Time Exceeded
0
0
Parameter Problems
0
Source Quenches
Redirects
Echos
0
0
0
Echo Replies
4
Timestamp Replies
0
0
8
Timestamps
299
4
8
0
0
0
0
Address Masks
0
Address Mask Replies
0
0
Router Solicitations
0
0
0
Router Advertisements
0
0
ICMPv6 Statistics
Received Sent
Messages
Errors
53
99
0
0
Destination Unreachable 5
Packet Too Big
0
Time Exceeded
6
0
0
0
Parameter Problems
0
Echos
0
0
Echo Replies
0
0
0
MLD Queries
0
0
MLD Reports
0
0
MLD Dones
0
0
Router Solicitations
0
Router Advertisements
8
8
0
Neighbor Solicitations 13
57
Neighbor Advertisements 27
Redirects
0
Router Renumberings
28
0
0
0
TCP Statistics for IPv4
Active Opens
= 516
Passive Opens
= 75
Failed Connection Attempts
= 31
Reset Connections
= 102
Current Connections
= 53
Segments Received
= 15531
Segments Sent
= 7021
Segments Retransmitted
=0
TCP Statistics for IPv6
Active Opens
= 170
Passive Opens
=3
Failed Connection Attempts
Reset Connections
= 45
= 24
Current Connections
=6
Segments Received
= 9248
Segments Sent
= 5982
Segments Retransmitted
=0
UDP Statistics for IPv4
Datagrams Received = 352977
No Ports
Receive Errors
= 311
=0
Datagrams Sent
= 6631
UDP Statistics for IPv6
Datagrams Received = 3883
No Ports
Receive Errors
Datagrams Sent
=1
=0
= 2632
vi) Display Kernel IP routing table.
C:\Users\yesag>netstat -rn
===========================================================================
Interface List
8...24 4b fe bc 3c 9c ......Realtek PCIe GbE Family Controller
13...ac 12 03 ef 4b d9 ......Microsoft Wi-Fi Direct Virtual Adapter
10...ae 12 03 ef 4b d8 ......Microsoft Wi-Fi Direct Virtual Adapter #2
9...ac 12 03 ef 4b d8 ......Intel(R) Wi-Fi 6 AX201 160MHz
1...........................Software Loopback Interface 1
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination
0.0.0.0
127.0.0.0
Netmask
Gateway
Interface Metric
0.0.0.0 192.168.153.21 192.168.153.211
255.0.0.0
On-link
127.0.0.1 255.255.255.255
127.0.0.1 331
On-link
127.255.255.255 255.255.255.255
192.168.153.0 255.255.255.0
55
127.0.0.1 331
On-link
127.0.0.1 331
On-link 192.168.153.211 311
192.168.153.211 255.255.255.255
On-link 192.168.153.211 311
192.168.153.255 255.255.255.255
On-link 192.168.153.211 311
224.0.0.0
240.0.0.0
On-link
127.0.0.1 331
224.0.0.0
240.0.0.0
On-link 192.168.153.211 311
255.255.255.255 255.255.255.255
On-link
127.0.0.1 331
255.255.255.255 255.255.255.255
On-link 192.168.153.211 311
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination
1 331 ::1/128
9 311 fe80::/64
Gateway
On-link
On-link
9 311 fe80::f564:aa23:811d:21c1/128
On-link
1 331 ff00::/8
On-link
9 311 ff00::/8
On-link
===========================================================================
Persistent Routes:
None
vii) By simply opening a browser connection to HTTP (port 80) server (while still offline!) what will be
status of netstat command?
C:\Users\yesag>netstat
Active Connections
Proto Local Address
Foreign Address
State
TCP 127.0.0.1:1043
GOVINSAGA:49708
ESTABLISHED
TCP 127.0.0.1:1043
GOVINSAGA:49718
ESTABLISHED
TCP 127.0.0.1:9012
GOVINSAGA:49720
ESTABLISHED
TCP 127.0.0.1:9487
GOVINSAGA:49707
ESTABLISHED
TCP 127.0.0.1:49685
GOVINSAGA:49690
ESTABLISHED
TCP 127.0.0.1:49685
GOVINSAGA:49694
ESTABLISHED
TCP 127.0.0.1:49685
GOVINSAGA:49695
ESTABLISHED
TCP 127.0.0.1:49685
GOVINSAGA:49696
ESTABLISHED
TCP 127.0.0.1:49685
GOVINSAGA:49698
ESTABLISHED
TCP 127.0.0.1:49690
GOVINSAGA:49685
ESTABLISHED
TCP 127.0.0.1:49694
GOVINSAGA:49685
ESTABLISHED
TCP 127.0.0.1:49695
GOVINSAGA:49685
ESTABLISHED
TCP 127.0.0.1:49696
GOVINSAGA:49685
ESTABLISHED
TCP 127.0.0.1:49698
GOVINSAGA:49685
ESTABLISHED
TCP 127.0.0.1:49699
GOVINSAGA:49700
ESTABLISHED
TCP 127.0.0.1:49700
GOVINSAGA:49699
ESTABLISHED
TCP 127.0.0.1:49701
GOVINSAGA:49702
ESTABLISHED
TCP 127.0.0.1:49702
GOVINSAGA:49701
ESTABLISHED
TCP 127.0.0.1:49707
GOVINSAGA:9487
ESTABLISHED
TCP 127.0.0.1:49708
GOVINSAGA:1043
ESTABLISHED
TCP 127.0.0.1:49709
GOVINSAGA:49710
ESTABLISHED
TCP 127.0.0.1:49710
GOVINSAGA:49709
ESTABLISHED
TCP 127.0.0.1:49711
GOVINSAGA:49712
ESTABLISHED
TCP 127.0.0.1:49712
GOVINSAGA:49711
ESTABLISHED
TCP 127.0.0.1:49713
GOVINSAGA:49714
ESTABLISHED
TCP 127.0.0.1:49714
GOVINSAGA:49713
ESTABLISHED
TCP 127.0.0.1:49715
GOVINSAGA:49716
ESTABLISHED
TCP 127.0.0.1:49716
GOVINSAGA:49715
ESTABLISHED
TCP 127.0.0.1:49717
GOVINSAGA:65001
ESTABLISHED
TCP 127.0.0.1:49718
GOVINSAGA:1043
ESTABLISHED
TCP 127.0.0.1:49720
GOVINSAGA:9012
ESTABLISHED
TCP 127.0.0.1:49721
GOVINSAGA:63502
ESTABLISHED
TCP 127.0.0.1:63502
GOVINSAGA:49721
ESTABLISHED
TCP 127.0.0.1:65001
GOVINSAGA:49717
ESTABLISHED
TCP 192.168.153.211:49680 142.250.193.14:https TIME_WAIT
TCP 192.168.153.211:52192 104.16.6.49:https
TIME_WAIT
TCP 192.168.153.211:52426 172.217.166.233:https TIME_WAIT
TCP 192.168.153.211:52530 142.250.193.193:https TIME_WAIT
TCP 192.168.153.211:55259 172.217.27.161:https TIME_WAIT
TCP 192.168.153.211:55770 52.98.57.162:https
ESTABLISHED
TCP 192.168.153.211:55776 117.18.232.200:https CLOSE_WAIT
TCP 192.168.153.211:56487 142.250.193.193:https TIME_WAIT
TCP 192.168.153.211:57006 157.240.239.60:https TIME_WAIT
TCP 192.168.153.211:58149 216.58.221.46:https TIME_WAIT
TCP 192.168.153.211:62480 172.217.167.13:https TIME_WAIT
TCP 192.168.153.211:65125 20.42.65.84:https
FIN_WAIT_1
TCP [::1]:49669
GOVINSAGA:49670
ESTABLISHED
TCP [::1]:49670
GOVINSAGA:49669
ESTABLISHED
TCP [::1]:49671
GOVINSAGA:49672
ESTABLISHED
TCP [::1]:49672
GOVINSAGA:49671
ESTABLISHED
TCP [::1]:49678
GOVINSAGA:49679
ESTABLISHED
TCP [::1]:49679
GOVINSAGA:49678
ESTABLISHED
viii) Display Service name with PID.
C:\Users\yesag>netstat -o -f
Active Connections
Proto Local Address
Foreign Address
TCP 127.0.0.1:1043
GOVINSAGA:49708
ESTABLISHED
3864
TCP 127.0.0.1:1043
GOVINSAGA:49718
ESTABLISHED
3864
TCP 127.0.0.1:9012
GOVINSAGA:49720
ESTABLISHED
3656
TCP 127.0.0.1:9487
GOVINSAGA:49707
ESTABLISHED
5064
TCP 127.0.0.1:49685
GOVINSAGA:49690
ESTABLISHED
6256
TCP 127.0.0.1:49685
GOVINSAGA:49694
ESTABLISHED
6256
TCP 127.0.0.1:49685
GOVINSAGA:49695
ESTABLISHED
6256
TCP 127.0.0.1:49685
GOVINSAGA:49696
ESTABLISHED
6256
TCP 127.0.0.1:49685
GOVINSAGA:49698
ESTABLISHED
6256
TCP 127.0.0.1:49690
GOVINSAGA:49685
ESTABLISHED
5588
TCP 127.0.0.1:49694
GOVINSAGA:49685
ESTABLISHED
6892
TCP 127.0.0.1:49695
GOVINSAGA:49685
ESTABLISHED
6892
TCP 127.0.0.1:49696
GOVINSAGA:49685
ESTABLISHED
6892
TCP 127.0.0.1:49698
GOVINSAGA:49685
ESTABLISHED
6892
TCP 127.0.0.1:49699
GOVINSAGA:49700
ESTABLISHED
6380
E.) TRACEROUTE or TRACERT
State
PID
i) Write the function of this command
Traceroute is a network diagnostic tool used to track in real-time the pathway taken by a packet on
an IP network from source to destination, reporting the IP addresses of all the routers it pinged in
between. Traceroute also records the time taken for each hop the packet makes during its route to
the destination.
The tracert command is a Command Prompt command that's used to show several details about the
path that a packet takes from the computer or device you're on to whatever destination you specify.
F.) NSLOOKUP
i) What is the IP address and name of the machine www.google.com?
C:\Users\yesag>nslookup www.google.com
Server: RTK_GW
Address: 192.168.1.1
Non-authoritative answer:
Name: www.google.com
Addresses: 2404:6800:4002:821::2004
142.250.182.100
G.) ARP
i) How do you show the full ARP table for your machine? Capture a printout of what it is. Explain each
column of what is printed.
C:\Users\yesag>arp -a
Interface: 192.168.1.3 --- 0x9
Internet Address
192.168.1.1
192.168.1.255
Physical Address
f8-c4-f3-77-7d-95
ff-ff-ff-ff-ff-ff
Type
dynamic
static
224.0.0.22
01-00-5e-00-00-16
static
224.0.0.251
01-00-5e-00-00-fb
static
224.0.0.252
01-00-5e-00-00-fc
static
224.77.77.77
01-00-5e-4d-4d-4d
static
01-00-5e-7f-ff-fa
static
239.255.255.250
255.255.255.255
ff-ff-ff-ff-ff-ff
static
H.) PATHPING
i) Execute the pathping command and write the difference w.r.t trarcert command.
C:\Users\yesag>pathping www.google.com
Tracing route to www.google.com [142.250.194.100]
over a maximum of 30 hops:
0 GOVINSAGA [192.168.1.3]
1 RTK_GW [192.168.1.1]
2 abts-mh-dynamic-001.33.169.122.airtelbroadband.in [122.169.33.1]
3 aes-static-249.51.22.125.airtel.in [125.22.51.249]
4 116.119.73.30
5 142.250.161.56
6 142.251.66.171
7 142.251.52.225
8 del12s04-in-f4.1e100.net [142.250.194.100]
Computing statistics for 200 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0
GOVINSAGA [192.168.1.3]
0/ 100 = 0% |
1 2ms
0/ 100 = 0%
0/ 100 = 0% RTK_GW [192.168.1.1]
0/ 100 = 0% |
2 11ms
0/ 100 = 0%
[122.169.33.1]
0/ 100 = 0% abts-mh-dynamic-001.33.169.122.airtelbroadband.in
0/ 100 = 0% |
3 9ms
0/ 100 = 0%
0/ 100 = 0% aes-static-249.51.22.125.airtel.in [125.22.51.249]
0/ 100 = 0% |
4 20ms
0/ 100 = 0%
0/ 100 = 0% 116.119.73.30
0/ 100 = 0% |
5 18ms
0/ 100 = 0%
0/ 100 = 0% 142.250.161.56
0/ 100 = 0% |
6 19ms
0/ 100 = 0%
0/ 100 = 0% 142.251.66.171
0/ 100 = 0% |
7 ---
100/ 100 =100% 100/ 100 =100% 142.251.52.225
0/ 100 = 0% |
8 19ms
0/ 100 = 0%
0/ 100 = 0% del12s04-in-f4.1e100.net [142.250.194.100]
Trace complete.
C:\Users\yesag>
➔ The main difference between tracert and pathping is that tracert helps to find the actual
path from the source to the destination device while pathping is a command that provides
information about network latency and network loss at intermediate hops between the
source and the destination devices
I) GETMAC
i) Write the MAC of your device
C:\Users\yesag>getmac
Physical Address Transport Name
=================== ==========================================================
24-4B-FE-BC-3C-9C Media disconnected
AC-12-03-EF-4B-D8 \Device\Tcpip_{68A01CEA-2847-4ABE-A01F-3D3C9DAE99B7}
Download