In: Computer Science
Here are the tasks for this assignment:
1. Write a bash command line to determine if the server
'syccuxfs01.pcc.edu'
is reachable from the syccuxas01.pcc.edu server.
2. As you have read, TCP/IP messages are passed from one device
to another
until the message reaches its destination.
Write a bash command line that will verify that no more than two
(2)
network devices are used to pass messages from the
syccuxas01.pcc.edu
server to the www.pcc.edu server.
3. Write a bash command line that will list all of the processes
on this
server that have established a network connection to IP
address
181.31.171.254
Answer 1
***********
nc -z syccuxas01.pcc.edu 80 2>/dev/null; echo Success
Answer 2
**********
ping -c 2 www.pcc.edu ; echo $?
Where
0 means host reachable >0 means unreachable
Answer 3
***********
sudo netstat -anp | grep 181.31.171.254
As i have no established connection with the given ip i have shown with my loopback ip in above
if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)