This assignment will allow you to test your knowledge regarding network management in Linux/Unix. You will be asked to carry out tasks that correspond with gathering/configuring networking features in...
















This assignment will allow you to test your knowledge regarding network management in Linux/Unix. You will be asked to carry out tasks that correspond with gathering/configuring networking features in Linux/Unix by implementing the commands that we went over in our lecture. Ensure you start recording your shell by entering the script command before starting the assignment. Please ensure that only relevant commands are in the output of the script file. You should use one script command for the entire assignment.














Note: There are questions in this document in addition to the script output so be sure to answer them in full when submitting this assignment.





























Task 1: Gathering Information About IP/MAC Address (6 Marks)




















1.














Use the ip command to retrieve

ONLY


IPv6 (No IPv4 included) information about all network interfaces (1 Mark)















2.














Use the ip command to retrieve

ONLY


IPv4 (No IPv6 included) information about all network interfaces (1 Mark)















Fill out the following table with the information you retrieved from ethernet interface #1 (Not the loopback interface): (4 Marks)






























































Interface Name

















MAC Address

















IP Address (IPv4)

















IP Address (IPv6)













































































Task 2: Configuring IP Address (3 Marks)

















1.














Add the following IP address to ethernet interface #1: (1 Mark)














a.














192.168.2.110














2.














Run the ip command to confirm that the address has been added (1 Mark)














3.














Delete that IP address from the interface (1 Mark)

















Task 3: Setting a Static IP Address (5 Marks)

















1.














Set a static IP address with the following information: (2 Marks)




































































dhcp4

















dhcp6

















addresses

















gateway4

















addresses

















no

















no

















192.168.0.203/24

















192.168.0.1

















[8.8.8.8,8.8.4.4]

















2.














Apply the static IP address (1 Mark)














3.














Use the ip command to view the new static IP address (1 Mark)














4.














Remove the static ip address entry and make sure it has gone away by using the ip command (1 Mark)

















Task 4: Viewing the Routing Table (4 Marks)




















1.














Use the route command to view your routing table (2 Marks)














2.














Using that information, where would a packet that is destined for your local network go to first (IP address)? (2 Marks)

















Task 5: Using the SS and Dig to View Open Connections (7 Marks)




















1.














Open up a web browser on your virtual machine and browse to













www.cambriancollege.ca








(1 Mark)















2.














Use the dig command to find the IP address associated with cambriancollege.ca (1 Mark)














3.














Run the ss command along with grep to find only rows that contain the IP address found in the previous step (1 Mark)














4.














Fill out the following information (Hint: Use /etc/services to find port #) (4 Marks)






























































Source Port

















Destination Port (Actual Port Number)

















Source IP Address

















Destination IP Address













































































Task 6: Using the IPTables Firewall (Part 1) (5 Marks)

















1.














Use the iptables command to create a firewall rule with the following information: (2 Marks)




































































Destination IP

















Protocol

















Table

















Chain

















Action

















Your IP

















ICMP

















Filter

















Output

















Drop

















2.














Send a ping request to “localhost” (1 Mark)














3.














Does this work? Why or why not? (1 Mark)














4.














Delete the iptables rule you just created (1 Mark)

















Task 7: Using the IPTables Firewall (Part 2) (4 Marks)

















1.














Use the iptables command to create a firewall rule with the following information: (2 Marks)










































































Source IP

















Destination IP

















Destination Port

















Table

















Chain

















Action

















Your IP

















54.39.163.38

















443

















Filter

















Output

















Drop

















2.














Try browsing to the following website on your virtual machine: (1 Mark)














a.

















www.cambriancollege.ca




















3.














Does this work? Why or why not? (1 Mark)


























Bonus Task: Use TCPDump to View Filtered Traffic (4 Marks)




















1.














Use the TCPDump command to view only HTTPS traffic (1 Mark)














2.














Browse to













www.cambriancollege.ca








in your web browser (1 Mark)















3.














Exit out of the TCPDump command and fill out the following information (1 Mark)
























































Packets Captured

















Packets Received by Filter

















Packets Dropped by Kernel






















































































4.














Explain the packets dropped value (1 Mark)














Mar 20, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here